5#ifndef RUNTIME_BIN_DARTDEV_ISOLATE_H_
6#define RUNTIME_BIN_DARTDEV_ISOLATE_H_
8#if !defined(DART_PRECOMPILED_RUNTIME)
18#define DART_DEV_ISOLATE_NAME "dartdev"
23class CommandLineOptions;
39 should_run_dart_dev_ = enable;
44 print_usage_error_ =
true;
69 char** package_config_override_,
76 static void DartDevResultCallback(
Dart_Port dest_port_id,
78 static void RunCallback(
uword arg);
79 static void ProcessError(
const char* msg, int32_t exit_code);
82 static char** script_;
83 static char** package_config_override_;
84 static std::unique_ptr<
char*[], void (*)(
char**)> argv_;
85 static intptr_t argc_;
89 const char* packages_file_;
92 DISALLOW_ALLOCATION();
98 static DartDevRunner runner_;
99 static bool should_run_dart_dev_;
100 static bool print_usage_error_;
102 DISALLOW_ALLOCATION();
void Run(Dart_IsolateGroupCreateCallback create_isolate, char **package_config_override_, char **script, CommandLineOptions *dart_options)
DartDev_Result result() const
static bool should_run_dart_dev()
static CStringUniquePtr TryResolveDartDevSnapshotPath()
static void PrintUsageErrorOnRun()
static void set_should_run_dart_dev(bool enable)
static DartDev_Result RunDartDev(Dart_IsolateGroupCreateCallback create_isolate, char **packages_file, char **script, CommandLineOptions *dart_options)
static bool ShouldParseCommand(const char *script_uri)
Dart_Isolate(* Dart_IsolateGroupCreateCallback)(const char *script_uri, const char *main, const char *package_root, const char *package_config, Dart_IsolateFlags *flags, void *isolate_data, char **error)