Index: runtime/vm/flow_graph_compiler_arm.cc |
diff --git a/runtime/vm/flow_graph_compiler_arm.cc b/runtime/vm/flow_graph_compiler_arm.cc |
index 3c3b1eaf591f4e498de46c44eb68e4e9a45c0f59..abd726a5a65a06deee891ec1d7af11d6e6a903b2 100644 |
--- a/runtime/vm/flow_graph_compiler_arm.cc |
+++ b/runtime/vm/flow_graph_compiler_arm.cc |
@@ -1109,7 +1109,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; |