Index: src/compiler/js-typed-lowering.cc |
diff --git a/src/compiler/js-typed-lowering.cc b/src/compiler/js-typed-lowering.cc |
index 386518e9bd934f9b3ddfdbb46f3fb659e8409938..05363f288103f747fd0f4f171c608ed9a3e20d04 100644 |
--- a/src/compiler/js-typed-lowering.cc |
+++ b/src/compiler/js-typed-lowering.cc |
@@ -803,9 +803,11 @@ Reduction JSTypedLowering::ReduceJSStoreProperty(Node* node) { |
(OperatorProperties::GetFrameStateInputCount( |
javascript()->ToNumber()) == 1)); |
if (FLAG_turbo_deoptimization) { |
+ Node* frame_state_for_to_number = |
+ NodeProperties::GetFrameStateInput(node, 1); |
value = effect = |
graph()->NewNode(javascript()->ToNumber(), value, context, |
- jsgraph()->EmptyFrameState(), effect, control); |
+ frame_state_for_to_number, effect, control); |
} else { |
value = effect = graph()->NewNode(javascript()->ToNumber(), value, |
context, effect, control); |