Index: runtime/vm/flow_graph_compiler_arm64.cc |
diff --git a/runtime/vm/flow_graph_compiler_arm64.cc b/runtime/vm/flow_graph_compiler_arm64.cc |
index d1e5a717ec73ad3760f32ff4ac2acf49a4360243..57c9fd643a9d88c5807ad93135ef027c26029bc7 100644 |
--- a/runtime/vm/flow_graph_compiler_arm64.cc |
+++ b/runtime/vm/flow_graph_compiler_arm64.cc |
@@ -1110,7 +1110,7 @@ void FlowGraphCompiler::CompileGraph() { |
ASSERT(assembler()->constant_pool_allowed()); |
GenerateDeferredCode(); |
- if (is_optimizing()) { |
+ if (is_optimizing() && Compiler::allow_recompilation()) { |
// Leave enough space for patching in case of lazy deoptimization from |
// deferred code. |
for (intptr_t i = 0; |