| Index: runtime/vm/weak_code.cc
|
| diff --git a/runtime/vm/weak_code.cc b/runtime/vm/weak_code.cc
|
| index fa111743c464836b326cb05e179454465f781d6c..3177ba63f90ebb6cd97653a801646fc9ff919cbb 100644
|
| --- a/runtime/vm/weak_code.cc
|
| +++ b/runtime/vm/weak_code.cc
|
| @@ -8,6 +8,7 @@
|
|
|
| #include "vm/code_generator.h"
|
| #include "vm/code_patcher.h"
|
| +#include "vm/compiler.h"
|
| #include "vm/object.h"
|
| #include "vm/stack_frame.h"
|
|
|
| @@ -60,6 +61,7 @@ void WeakCodeReferences::DisableCode() {
|
| if (code_objects.IsNull()) {
|
| return;
|
| }
|
| + ASSERT(Compiler::allow_recompilation());
|
| UpdateArrayTo(Object::null_array());
|
| // Disable all code on stack.
|
| Code& code = Code::Handle();
|
|
|