Flutter Engine
The Flutter Engine
Namespaces | Macros | Functions | Variables
run_vm_tests.cc File Reference
#include "bin/console.h"
#include "bin/crashpad.h"
#include "bin/dartutils.h"
#include "bin/dfe.h"
#include "bin/eventhandler.h"
#include "bin/exe_utils.h"
#include "bin/file.h"
#include "bin/loader.h"
#include "bin/platform.h"
#include "bin/process.h"
#include "bin/snapshot_utils.h"
#include "bin/thread.h"
#include "bin/utils.h"
#include "bin/vmservice_impl.h"
#include "platform/assert.h"
#include "vm/benchmark_test.h"
#include "vm/dart.h"
#include "vm/unit_test.h"

Go to the source code of this file.

Namespaces

namespace  dart
 

Macros

#define CHECK_RESULT(result)
 

Functions

static void dart::PrintUsage ()
 
static Dart_Isolate dart::CreateAndSetupServiceIsolate (const char *script_uri, const char *packages_config, Dart_IsolateFlags *flags, char **error)
 
static Dart_Isolate dart::CreateIsolateAndSetup (const char *script_uri, const char *main, const char *package_root, const char *packages_config, Dart_IsolateFlags *flags, void *data, char **error)
 
static void dart::CleanupIsolateGroup (void *callback_data)
 
static void dart::EmbedderInformationCallback (Dart_EmbedderInformation *info)
 
void dart::ShiftArgs (int *argc, const char **argv)
 
static int dart::Main (int argc, const char **argv)
 
int main (int argc, const char **argv)
 

Variables

const uint8_t kDartVmSnapshotData []
 
const uint8_t kDartVmSnapshotInstructions []
 
const uint8_t kDartCoreIsolateSnapshotData []
 
const uint8_t kDartCoreIsolateSnapshotInstructions []
 
static constexpr const char * dart::kNone = "No Test or Benchmarks"
 
static constexpr const char * dart::kList = "List all Tests and Benchmarks"
 
static constexpr const char * dart::kAllBenchmarks = "All Benchmarks"
 
static const char * dart::run_filter = kNone
 
static const char * dart::kernel_snapshot = nullptr
 
static int dart::run_matches = 0
 

Macro Definition Documentation

◆ CHECK_RESULT

#define CHECK_RESULT (   result)
Value:
if (Dart_IsError(result)) { \
*error = Utils::StrDup(Dart_GetError(result)); \
Dart_ExitScope(); \
Dart_ShutdownIsolate(); \
return nullptr; \
}
DART_EXPORT bool Dart_IsError(Dart_Handle handle)
DART_EXPORT const char * Dart_GetError(Dart_Handle handle)
const uint8_t uint32_t uint32_t GError ** error
GAsyncResult * result

Definition at line 96 of file run_vm_tests.cc.

Function Documentation

◆ main()

int main ( int  argc,
const char **  argv 
)

Definition at line 447 of file run_vm_tests.cc.

447 {
449}
static DART_NORETURN void Exit(int exit_code)
char ** argv
Definition: library.h:9
static int Main(int argc, const char **argv)

Variable Documentation

◆ kDartCoreIsolateSnapshotData

const uint8_t kDartCoreIsolateSnapshotData[]
extern

Definition at line 13 of file snapshot_empty.cc.

◆ kDartCoreIsolateSnapshotInstructions

const uint8_t kDartCoreIsolateSnapshotInstructions[]
extern

Definition at line 14 of file snapshot_empty.cc.

◆ kDartVmSnapshotData

const uint8_t kDartVmSnapshotData[]
extern

Definition at line 11 of file snapshot_empty.cc.

◆ kDartVmSnapshotInstructions

const uint8_t kDartVmSnapshotInstructions[]
extern

Definition at line 12 of file snapshot_empty.cc.