Index: src/compiler/js-native-context-specialization.cc |
diff --git a/src/compiler/js-native-context-specialization.cc b/src/compiler/js-native-context-specialization.cc |
index 50ed04b5b2c64710ebf0c4c6614f3dff4fae6e71..211330ded98d6d6e21453913fa2f9b365a156802 100644 |
--- a/src/compiler/js-native-context-specialization.cc |
+++ b/src/compiler/js-native-context-specialization.cc |
@@ -79,9 +79,9 @@ Reduction JSNativeContextSpecialization::ReduceNamedAccess( |
node->opcode() == IrOpcode::kJSLoadProperty || |
node->opcode() == IrOpcode::kJSStoreProperty); |
Node* receiver = NodeProperties::GetValueInput(node, 0); |
- Node* frame_state = NodeProperties::GetFrameStateInput(node, 1); |
Node* effect = NodeProperties::GetEffectInput(node); |
Node* control = NodeProperties::GetControlInput(node); |
+ Node* frame_state = NodeProperties::FindFrameStateBefore(node); |
// Not much we can do if deoptimization support is disabled. |
if (!(flags() & kDeoptimizationEnabled)) return NoChange(); |
@@ -524,9 +524,9 @@ Reduction JSNativeContextSpecialization::ReduceElementAccess( |
node->opcode() == IrOpcode::kJSStoreProperty); |
Node* receiver = NodeProperties::GetValueInput(node, 0); |
Node* context = NodeProperties::GetContextInput(node); |
- Node* frame_state = NodeProperties::GetFrameStateInput(node, 1); |
Node* effect = NodeProperties::GetEffectInput(node); |
Node* control = NodeProperties::GetControlInput(node); |
+ Node* frame_state = NodeProperties::FindFrameStateBefore(node); |
// Not much we can do if deoptimization support is disabled. |
if (!(flags() & kDeoptimizationEnabled)) return NoChange(); |
@@ -970,9 +970,9 @@ Reduction JSNativeContextSpecialization::ReduceKeyedAccess( |
Reduction JSNativeContextSpecialization::ReduceSoftDeoptimize(Node* node) { |
- Node* frame_state = NodeProperties::GetFrameStateInput(node, 1); |
Node* effect = NodeProperties::GetEffectInput(node); |
Node* control = NodeProperties::GetControlInput(node); |
+ Node* frame_state = NodeProperties::FindFrameStateBefore(node); |
Node* deoptimize = |
graph()->NewNode(common()->Deoptimize(DeoptimizeKind::kSoft), frame_state, |
effect, control); |