Index: src/compiler/js-type-feedback.cc |
diff --git a/src/compiler/js-type-feedback.cc b/src/compiler/js-type-feedback.cc |
index 689e4aca58e2e6be22026ff820295b2527c76a46..1a218c228e8226ec588c28b0a3578a0755d4e402 100644 |
--- a/src/compiler/js-type-feedback.cc |
+++ b/src/compiler/js-type-feedback.cc |
@@ -173,7 +173,7 @@ Reduction JSTypeFeedbackSpecializer::ReduceJSLoadNamed(Node* node) { |
return ReduceJSLoadNamedForGlobalVariable(node); |
} |
- if (!FLAG_turbo_deoptimization) return NoChange(); |
+ if (mode() != kDeoptimizationEnabled) return NoChange(); |
Node* frame_state_before = GetFrameStateBefore(node); |
if (frame_state_before == nullptr) return NoChange(); |
@@ -245,7 +245,7 @@ Reduction JSTypeFeedbackSpecializer::ReduceJSLoadNamedForGlobalVariable( |
return NoChange(); |
} |
- if (FLAG_turbo_deoptimization) { |
+ if (mode() == kDeoptimizationEnabled) { |
// Handle lookups in the script context. |
{ |
Handle<ScriptContextTable> script_contexts( |