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 853ec2db901efffc33d949be6be6f8670692e49e..c9af26f273d0569f37f505de218d95a40f9219b4 100644 |
--- a/src/compiler/js-native-context-specialization.cc |
+++ b/src/compiler/js-native-context-specialization.cc |
@@ -136,7 +136,7 @@ Reduction JSNativeContextSpecialization::ReduceJSLoadGlobal(Node* node) { |
Reduction JSNativeContextSpecialization::ReduceJSStoreGlobal(Node* node) { |
DCHECK_EQ(IrOpcode::kJSStoreGlobal, node->opcode()); |
Handle<Name> name = StoreGlobalParametersOf(node->op()).name(); |
- Node* value = NodeProperties::GetValueInput(node, 2); |
+ Node* value = NodeProperties::GetValueInput(node, 0); |
Node* frame_state = NodeProperties::GetFrameStateInput(node, 1); |
Node* effect = NodeProperties::GetEffectInput(node); |
Node* control = NodeProperties::GetControlInput(node); |