Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index d648c26e39b7256df8844777c24a151729be3bcb..d299aec2ac5395c2903dfe8e4cd4937b30a94c9f 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -738,7 +738,9 @@ void AstGraphBuilder::Environment::UpdateStateValuesWithCache( |
Node* AstGraphBuilder::Environment::Checkpoint( |
BailoutId ast_id, OutputFrameStateCombine combine) { |
- if (!FLAG_turbo_deoptimization) return nullptr; |
+ if (!builder()->info()->is_deoptimization_enabled()) { |
+ return builder()->jsgraph()->EmptyFrameState(); |
+ } |
UpdateStateValues(¶meters_node_, 0, parameters_count()); |
UpdateStateValuesWithCache(&locals_node_, parameters_count(), locals_count()); |