| Index: runtime/vm/weak_code.cc
|
| diff --git a/runtime/vm/weak_code.cc b/runtime/vm/weak_code.cc
|
| index 7c817d03ab8843fdd9c34869e75e3b5c926fb9b6..6c654054772b5ebee3633669496b77f2e7c8c951 100644
|
| --- a/runtime/vm/weak_code.cc
|
| +++ b/runtime/vm/weak_code.cc
|
| @@ -14,6 +14,8 @@
|
|
|
| namespace dart {
|
|
|
| +DECLARE_FLAG(bool, precompilation);
|
| +
|
| bool WeakCodeReferences::HasCodes() const {
|
| return !array_.IsNull() && (array_.Length() > 0);
|
| }
|
| @@ -67,7 +69,7 @@ void WeakCodeReferences::DisableCode() {
|
| if (code_objects.IsNull()) {
|
| return;
|
| }
|
| - ASSERT(Compiler::allow_recompilation());
|
| + ASSERT(!FLAG_precompilation);
|
| UpdateArrayTo(Object::null_array());
|
| // Disable all code on stack.
|
| Code& code = Code::Handle();
|
|
|