Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(679)

Unified Diff: runtime/vm/weak_code.cc

Issue 2997993002: Revert "Reapply "Eliminate dependencies on assemblers and code stubs in precompiled runtime."" (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/stub_code_x64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/weak_code.cc
diff --git a/runtime/vm/weak_code.cc b/runtime/vm/weak_code.cc
index 8a4343e6c39bcbce486fb3a576364ca26d43076a..c750d94155bcdb8fb309c6b91cdf5fc578dcc5db 100644
--- a/runtime/vm/weak_code.cc
+++ b/runtime/vm/weak_code.cc
@@ -60,14 +60,10 @@ bool WeakCodeReferences::IsOptimizedCode(const Array& dependent_code,
void WeakCodeReferences::DisableCode() {
Thread* thread = Thread::Current();
const Array& code_objects = Array::Handle(thread->zone(), array_.raw());
-#if defined(DART_PRECOMPILED_RUNTIME)
- ASSERT(code_objects.IsNull());
- return;
-#else
if (code_objects.IsNull()) {
return;
}
-
+ ASSERT(!FLAG_precompiled_runtime);
UpdateArrayTo(Object::null_array());
// Disable all code on stack.
Code& code = Code::Handle();
@@ -133,7 +129,6 @@ void WeakCodeReferences::DisableCode() {
}
}
}
-#endif // defined(DART_PRECOMPILED_RUNTIME)
}
} // namespace dart
« no previous file with comments | « runtime/vm/stub_code_x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698