Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Enumerations | Variables
main_options.h File Reference
#include "bin/dartutils.h"
#include "bin/dfe.h"
#include "platform/globals.h"
#include "platform/growable_array.h"
#include "platform/hashmap.h"

Go to the source code of this file.

Classes

class  dart::bin::Options
 

Namespaces

namespace  dart
 
namespace  dart::bin
 

Macros

#define STRING_OPTIONS_LIST(V)
 
#define BOOL_OPTIONS_LIST(V)
 
#define SHORT_BOOL_OPTIONS_LIST(V)
 
#define DEBUG_BOOL_OPTIONS_LIST(V)    V(force_load_elf_from_memory, force_load_elf_from_memory)
 
#define ENUM_OPTIONS_LIST(V)
 
#define CB_OPTIONS_LIST(V)
 
#define STRING_OPTION_GETTER(flag, variable)    static const char* variable() { return variable##_; }
 
#define BOOL_OPTION_GETTER(flag, variable)    static bool variable() { return variable##_; }
 
#define SHORT_BOOL_OPTION_GETTER(short_name, long_name, variable)    static bool variable() { return variable##_; }
 
#define ENUM_OPTIONS_GETTER(flag, type, variable)    static type variable() { return variable##_; }
 
#define CB_OPTIONS_DECL(callback)    static bool callback(const char* arg, CommandLineOptions* vm_options);
 
#define STRING_OPTION_DECL(flag, variable)   static const char* variable##_;
 
#define BOOL_OPTION_DECL(flag, variable)   static bool variable##_;
 
#define SHORT_BOOL_OPTION_DECL(short_name, long_name, variable)    static bool variable##_;
 
#define ENUM_OPTION_DECL(flag, type, variable)   static type variable##_;
 
#define OPTION_FRIEND(flag, variable)   friend class OptionProcessor_##flag;
 
#define SHORT_BOOL_OPTION_FRIEND(short_name, long_name, variable)    friend class OptionProcessor_##long_name;
 
#define ENUM_OPTION_FRIEND(flag, type, variable)    friend class OptionProcessor_##flag;
 

Enumerations

enum  dart::bin::SnapshotKind {
  dart::bin::kCore , dart::bin::kApp , dart::bin::kAppJIT , dart::bin::kAppAOTAssembly ,
  dart::bin::kAppAOTElf , dart::bin::kVMAOTAssembly , dart::bin::kNone , dart::bin::kKernel ,
  dart::bin::kAppJIT
}
 
enum  dart::bin::VerbosityLevel { dart::bin::kError , dart::bin::kWarning , dart::bin::kInfo , dart::bin::kAll }
 

Variables

static constexpr const char * dart::bin::DEFAULT_VM_SERVICE_SERVER_IP = "localhost"
 
static constexpr int dart::bin::DEFAULT_VM_SERVICE_SERVER_PORT = 8181
 
static constexpr int dart::bin::INVALID_VM_SERVICE_SERVER_PORT = -1
 

Macro Definition Documentation

◆ BOOL_OPTION_DECL

#define BOOL_OPTION_DECL (   flag,
  variable 
)    static bool variable##_;

Definition at line 181 of file main_options.h.

◆ BOOL_OPTION_GETTER

#define BOOL_OPTION_GETTER (   flag,
  variable 
)     static bool variable() { return variable##_; }

Definition at line 121 of file main_options.h.

122 { return variable##_; }

◆ BOOL_OPTIONS_LIST

#define BOOL_OPTIONS_LIST (   V)
Value:
V(version, version_option) \
V(compile_all, compile_all) \
V(disable_service_origin_check, vm_service_dev_mode) \
V(disable_service_auth_codes, vm_service_auth_disabled) \
V(deterministic, deterministic) \
V(trace_loading, trace_loading) \
V(short_socket_read, short_socket_read) \
V(short_socket_write, short_socket_write) \
V(disable_exit, exit_disabled) \
V(preview_dart_2, nop_option) \
V(suppress_core_dump, suppress_core_dump) \
V(enable_service_port_fallback, enable_service_port_fallback) \
V(disable_dart_dev, disable_dart_dev) \
V(no_dds, disable_dds) \
V(long_ssl_cert_evaluation, long_ssl_cert_evaluation) \
V(bypass_trusting_system_roots, bypass_trusting_system_roots) \
V(delayed_filewatch_callback, delayed_filewatch_callback) \
V(mark_main_isolate_as_system_isolate, mark_main_isolate_as_system_isolate) \
V(no_serve_devtools, disable_devtools) \
V(serve_devtools, enable_devtools) \
V(no_serve_observatory, disable_observatory) \
V(serve_observatory, enable_observatory) \
V(print_dtd, print_dtd) \
V(sound_null_safety, sound_null_safety)
#define V(name)
Definition raw_object.h:124

Definition at line 35 of file main_options.h.

◆ CB_OPTIONS_DECL

#define CB_OPTIONS_DECL (   callback)     static bool callback(const char* arg, CommandLineOptions* vm_options);

Definition at line 140 of file main_options.h.

◆ CB_OPTIONS_LIST

#define CB_OPTIONS_LIST (   V)
Value:
V(ProcessEnvironmentOption) \
V(ProcessEnableVmServiceOption) \
V(ProcessObserveOption) \
V(ProcessVMDebuggingOptions)

Definition at line 79 of file main_options.h.

◆ DEBUG_BOOL_OPTIONS_LIST

#define DEBUG_BOOL_OPTIONS_LIST (   V)     V(force_load_elf_from_memory, force_load_elf_from_memory)

Definition at line 66 of file main_options.h.

◆ ENUM_OPTION_DECL

#define ENUM_OPTION_DECL (   flag,
  type,
  variable 
)    static type variable##_;

Definition at line 193 of file main_options.h.

◆ ENUM_OPTION_FRIEND

#define ENUM_OPTION_FRIEND (   flag,
  type,
  variable 
)     friend class OptionProcessor_##flag;

Definition at line 248 of file main_options.h.

◆ ENUM_OPTIONS_GETTER

#define ENUM_OPTIONS_GETTER (   flag,
  type,
  variable 
)     static type variable() { return variable##_; }

Definition at line 134 of file main_options.h.

135 { return variable##_; }

◆ ENUM_OPTIONS_LIST

#define ENUM_OPTIONS_LIST (   V)
Value:
V(snapshot_kind, SnapshotKind, gen_snapshot_kind) \
V(verbosity, VerbosityLevel, verbosity)

Definition at line 74 of file main_options.h.

◆ OPTION_FRIEND

#define OPTION_FRIEND (   flag,
  variable 
)    friend class OptionProcessor_##flag;

Definition at line 235 of file main_options.h.

◆ SHORT_BOOL_OPTION_DECL

#define SHORT_BOOL_OPTION_DECL (   short_name,
  long_name,
  variable 
)     static bool variable##_;

Definition at line 188 of file main_options.h.

◆ SHORT_BOOL_OPTION_FRIEND

#define SHORT_BOOL_OPTION_FRIEND (   short_name,
  long_name,
  variable 
)     friend class OptionProcessor_##long_name;

Definition at line 243 of file main_options.h.

◆ SHORT_BOOL_OPTION_GETTER

#define SHORT_BOOL_OPTION_GETTER (   short_name,
  long_name,
  variable 
)     static bool variable() { return variable##_; }

Definition at line 129 of file main_options.h.

130 { return variable##_; }

◆ SHORT_BOOL_OPTIONS_LIST

#define SHORT_BOOL_OPTIONS_LIST (   V)
Value:
V(h, help, help_option) \
V(v, verbose, verbose_option)
SkScalar h

Definition at line 62 of file main_options.h.

◆ STRING_OPTION_DECL

#define STRING_OPTION_DECL (   flag,
  variable 
)    static const char* variable##_;

Definition at line 177 of file main_options.h.

◆ STRING_OPTION_GETTER

#define STRING_OPTION_GETTER (   flag,
  variable 
)     static const char* variable() { return variable##_; }

Definition at line 116 of file main_options.h.

117 { return variable##_; }

◆ STRING_OPTIONS_LIST

#define STRING_OPTIONS_LIST (   V)
Value:
V(packages, packages_file) \
V(snapshot, snapshot_filename) \
V(snapshot_depfile, snapshot_deps_filename) \
V(depfile, depfile) \
V(depfile_output_filename, depfile_output_filename) \
V(root_certs_file, root_certs_file) \
V(root_certs_cache, root_certs_cache) \
V(namespace, namespc) \
V(write_service_info, vm_write_service_info_filename)

Definition at line 20 of file main_options.h.