Index: src/compiler/bytecode-graph-builder.cc |
diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc |
index dec8194611fdd1b0c4534207928544575764d8e1..843cd5f85808289c3b2b9a177757dff0d68a8edc 100644 |
--- a/src/compiler/bytecode-graph-builder.cc |
+++ b/src/compiler/bytecode-graph-builder.cc |
@@ -363,6 +363,7 @@ bool BytecodeGraphBuilder::Environment::StateValuesAreUpToDate( |
bool BytecodeGraphBuilder::Environment::StateValuesAreUpToDate( |
int output_poke_offset, int output_poke_count) { |
+ if (!builder()->info()->is_deoptimization_enabled()) return true; |
// Poke offset is relative to the top of the stack (i.e., the accumulator). |
int output_poke_start = accumulator_base() - output_poke_offset; |
int output_poke_end = output_poke_start + output_poke_count; |