Index: runtime/vm/flow_graph_compiler_x64.cc |
diff --git a/runtime/vm/flow_graph_compiler_x64.cc b/runtime/vm/flow_graph_compiler_x64.cc |
index de1b9444fe6ce55892d59d56d716cb7a923f6b59..bf1c3126c28c72f8c3489d86d4ab6c5e266e0811 100644 |
--- a/runtime/vm/flow_graph_compiler_x64.cc |
+++ b/runtime/vm/flow_graph_compiler_x64.cc |
@@ -1128,7 +1128,7 @@ void FlowGraphCompiler::CompileGraph() { |
// Emit function patching code. This will be swapped with the first 13 bytes |
// at entry point. |
- if (is_optimizing()) { |
+ if (is_optimizing() && Compiler::allow_recompilation()) { |
// Leave enough space for patching in case of lazy deoptimization from |
// deferred code. |
__ nop(ShortCallPattern::pattern_length_in_bytes()); |