Index: src/compiler/js-global-object-specialization.cc |
diff --git a/src/compiler/js-global-object-specialization.cc b/src/compiler/js-global-object-specialization.cc |
index a90aeac9bfde63cf93a932221dc02e2f948c588f..44f9293ce35fd196fab74a75db1a6d749d3bd5ae 100644 |
--- a/src/compiler/js-global-object-specialization.cc |
+++ b/src/compiler/js-global-object-specialization.cc |
@@ -131,9 +131,9 @@ Reduction JSGlobalObjectSpecialization::ReduceJSStoreGlobal(Node* node) { |
DCHECK_EQ(IrOpcode::kJSStoreGlobal, node->opcode()); |
Handle<Name> name = StoreGlobalParametersOf(node->op()).name(); |
Node* value = 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); |
// Retrieve the global object from the given {node}. |
Handle<JSGlobalObject> global_object; |