#include <compiler_state.h>
Definition at line 34 of file compiler_state.h.
◆ CompilerState()
Definition at line 36 of file compiler_state.h.
45 previous_ =
thread->SetCompilerState(
this);
46 }
bool is_optimizing() const
ThreadStackResource(Thread *T)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap The size limit in megabytes for the Dart VM old gen heap space enable Enable the Impeller renderer on supported platforms Ignored if Impeller is not supported on the platform enable vulkan Enable loading Vulkan validation layers The layers must be available to the application and loadable On non Vulkan this flag does nothing enable vulkan gpu tracing
◆ ~CompilerState()
dart::CompilerState::~CompilerState |
( |
| ) |
|
|
inline |
◆ ArrayClass()
const Class & dart::CompilerState::ArrayClass |
( |
| ) |
|
◆ cha()
CHA & dart::CompilerState::cha |
( |
| ) |
|
|
inline |
◆ ComparableClass()
const Class & dart::CompilerState::ComparableClass |
( |
| ) |
|
Definition at line 45 of file compiler_state.cc.
45 {
46 if (comparable_class_ == nullptr) {
49
50
51
54 Obfuscator obfuscator(
thread, Object::null_string());
56 }
57
61 comparable_class_ = &cls;
62 }
63 return *comparable_class_;
64}
static LibraryPtr CoreLibrary()
static Object & ZoneHandle()
static StringPtr New(Thread *thread, const char *cstr)
static Thread * Current()
IsolateGroup * isolate_group() const
◆ CompoundClass()
const Class & dart::CompilerState::CompoundClass |
( |
| ) |
|
◆ CompoundOffsetInBytesField()
const Field & dart::CompilerState::CompoundOffsetInBytesField |
( |
| ) |
|
Definition at line 152 of file compiler_state.cc.
152 {
153 if (compound_offset_in_bytes_field_ == nullptr) {
156 const auto& field =
158 Symbols::_offsetInBytes()));
160 compound_offset_in_bytes_field_ = &field;
161 }
162 return *compound_offset_in_bytes_field_;
163}
const Class & CompoundClass()
◆ CompoundTypedDataBaseField()
const Field & dart::CompilerState::CompoundTypedDataBaseField |
( |
| ) |
|
Definition at line 165 of file compiler_state.cc.
165 {
166 if (compound_typed_data_base_field_ == nullptr) {
169 const auto& field =
171 Symbols::_typedDataBase()));
173 compound_typed_data_base_field_ = &field;
174 }
175 return *compound_typed_data_base_field_;
176}
◆ Current()
Definition at line 68 of file compiler_state.h.
68 {
70 }
CompilerState & compiler_state()
◆ deopt_id()
intptr_t dart::CompilerState::deopt_id |
( |
| ) |
const |
|
inline |
◆ function()
const Function * dart::CompilerState::function |
( |
| ) |
const |
|
inline |
◆ GetNextDeoptId()
intptr_t dart::CompilerState::GetNextDeoptId |
( |
| ) |
|
|
inline |
Definition at line 61 of file compiler_state.h.
61 {
63 const intptr_t id = deopt_id_;
66 }
static constexpr intptr_t kNone
static intptr_t Next(intptr_t deopt_id)
◆ is_aot()
bool dart::CompilerState::is_aot |
( |
| ) |
const |
|
inline |
◆ is_optimizing()
bool dart::CompilerState::is_optimizing |
( |
| ) |
const |
|
inline |
◆ pass()
◆ pass_state()
◆ ReportCrash()
void dart::CompilerState::ReportCrash |
( |
| ) |
|
Definition at line 178 of file compiler_state.cc.
178 {
179 OS::PrintErr(
"=== Crash occurred when compiling %s in %s mode in %s pass\n",
181 : "unknown function",
184 : "unoptimized JIT",
186 if (
pass_state() !=
nullptr &&
pass()->
id() == CompilerPass::kGenerateCode) {
187 if (
pass_state()->graph_compiler->current_block() !=
nullptr) {
189 pass_state()->graph_compiler->current_block()->ToCString());
190 }
191 if (
pass_state()->graph_compiler->current_instruction() !=
nullptr) {
193 "=== When compiling instruction %s\n",
194 pass_state()->graph_compiler->current_instruction()->ToCString());
195 }
196 }
199 } else {
201 }
202}
const CompilerPass * pass() const
const CompilerPassState * pass_state() const
const Function * function() const
void Print(const char *phase="unknown")
static void static void PrintErr(const char *format,...) PRINTF_ATTRIBUTE(1
FlowGraph * flow_graph() const
◆ set_current_pass()
◆ set_deopt_id()
void dart::CompilerState::set_deopt_id |
( |
int |
value | ) |
|
|
inline |
◆ set_function()
void dart::CompilerState::set_function |
( |
const Function & |
function | ) |
|
|
inline |
◆ set_slot_cache()
void dart::CompilerState::set_slot_cache |
( |
SlotCache * |
cache | ) |
|
|
inline |
Definition at line 73 of file compiler_state.h.
73{ slot_cache_ =
cache; }
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace Enable an endless trace buffer The default is a ring buffer This is useful when very old events need to viewed For during application launch Memory usage will continue to grow indefinitely however Start app with an specific route defined on the framework flutter assets Path to the Flutter assets directory enable service port Allow the VM service to fallback to automatic port selection if binding to a specified port fails trace Trace early application lifecycle Automatically switches to an endless trace buffer trace skia Filters out all Skia trace event categories except those that are specified in this comma separated list dump skp on shader Automatically dump the skp that triggers new shader compilations This is useful for writing custom ShaderWarmUp to reduce jank By this is not enabled to reduce the overhead purge persistent cache
◆ should_clone_fields()
bool dart::CompilerState::should_clone_fields |
( |
| ) |
|
|
inline |
◆ should_trace()
bool dart::CompilerState::should_trace |
( |
| ) |
const |
|
inline |
◆ ShouldTrace() [1/2]
static bool dart::CompilerState::ShouldTrace |
( |
| ) |
|
|
inlinestatic |
Definition at line 84 of file compiler_state.h.
bool should_trace() const
static CompilerState & Current()
◆ ShouldTrace() [2/2]
Definition at line 40 of file compiler_state.cc.
40 {
43}
static bool ShouldPrint(const Function &function, uint8_t **compiler_pass_filter=nullptr)
◆ slot_cache()
SlotCache * dart::CompilerState::slot_cache |
( |
| ) |
const |
|
inline |
◆ StringBaseInterpolate()
const Function & dart::CompilerState::StringBaseInterpolate |
( |
| ) |
|
Definition at line 81 of file compiler_state.cc.
81 {
82 if (interpolate_ == nullptr) {
85
86 const Class& cls =
90 zone, cls.LookupFunctionAllowPrivate(Symbols::Interpolate()));
92 }
93 return *interpolate_;
94}
static ClassPtr LookupCoreClass(const String &class_name)
◆ StringBaseInterpolateSingle()
const Function & dart::CompilerState::StringBaseInterpolateSingle |
( |
| ) |
|
Definition at line 66 of file compiler_state.cc.
66 {
67 if (interpolate_single_ == nullptr) {
70
71 const Class& cls =
75 zone, cls.LookupFunctionAllowPrivate(Symbols::InterpolateSingle()));
77 }
78 return *interpolate_single_;
79}
◆ StructClass()
const Class & dart::CompilerState::StructClass |
( |
| ) |
|
◆ TypedDataClass()
const Class & dart::CompilerState::TypedDataClass |
( |
| ) |
|
◆ TypedListGetFloat32()
const Function & dart::CompilerState::TypedListGetFloat32 |
( |
| ) |
|
◆ TypedListGetFloat32x4()
const Function & dart::CompilerState::TypedListGetFloat32x4 |
( |
| ) |
|
◆ TypedListGetFloat64()
const Function & dart::CompilerState::TypedListGetFloat64 |
( |
| ) |
|
◆ TypedListGetFloat64x2()
const Function & dart::CompilerState::TypedListGetFloat64x2 |
( |
| ) |
|
◆ TypedListGetInt32x4()
const Function & dart::CompilerState::TypedListGetInt32x4 |
( |
| ) |
|
◆ TypedListSetFloat32()
const Function & dart::CompilerState::TypedListSetFloat32 |
( |
| ) |
|
◆ TypedListSetFloat32x4()
const Function & dart::CompilerState::TypedListSetFloat32x4 |
( |
| ) |
|
◆ TypedListSetFloat64()
const Function & dart::CompilerState::TypedListSetFloat64 |
( |
| ) |
|
◆ TypedListSetFloat64x2()
const Function & dart::CompilerState::TypedListSetFloat64x2 |
( |
| ) |
|
◆ TypedListSetInt32x4()
const Function & dart::CompilerState::TypedListSetInt32x4 |
( |
| ) |
|
◆ UnionClass()
const Class & dart::CompilerState::UnionClass |
( |
| ) |
|
The documentation for this class was generated from the following files: