40 {
41#if defined(DART_PRECOMPILED_RUNTIME)
43 return;
44#else
45
48
50 return;
51 }
52
54
56 auto disable_code_fun = [&]() {
58 isolate_group->ForEachIsolate(
59 [&](Isolate* isolate) {
60 auto mutator_thread = isolate->mutator_thread();
61 if (mutator_thread == nullptr) {
62 return;
63 }
64 DartFrameIterator iterator(
66 StackFrame*
frame = iterator.NextFrame();
67 while (
frame !=
nullptr) {
69
73 }
74 frame = iterator.NextFrame();
75 }
76 },
77 true);
78
79
82 WeakCodeSet::Iterator it(&
set);
83 while (it.MoveNext()) {
84 code ^=
set.GetKey(it.Current());
86
87 continue;
88 }
90 if (owner.IsFunction()) {
92 } else if (owner.IsClass()) {
94 cls ^= owner.ptr();
95 cls.DisableAllocationStub();
96 continue;
97 } else if (owner.IsNull()) {
99 continue;
100 }
101
102
103
104
105
106
109
110
114 } else {
115
116 if (!
code.IsDisabled()) {
118 code.DisableDartCode();
119 }
120 }
121 }
122
124 };
125
126
127
128 if (are_mutators_stopped) {
129 disable_code_fun();
130 } else {
131 isolate_group->RunWithStoppedMutators(disable_code_fun);
132 }
133
135
136#endif
137}
#define DEBUG_ASSERT(cond)
static IsolateGroup * Current()
@ kAllowCrossThreadIteration
virtual void ReportDeoptimization(const Code &code)=0
virtual void UpdateArrayTo(const WeakArray &array)=0
virtual void ReportSwitchingCode(const Code &code)=0
Dart_NativeFunction function
void DeoptimizeAt(Thread *mutator_thread, const Code &optimized_code, StackFrame *frame)
UnorderedHashSet< CodeTraits, WeakArrayStorageTraits > WeakCodeSet
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 set