Index: src/code-stubs-hydrogen.cc |
diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc |
index c6705c3e2d6caef555ec361048bf971d9fd467f9..bdd168b690fb79d57f4333a72c6e2397a34b4ba0 100644 |
--- a/src/code-stubs-hydrogen.cc |
+++ b/src/code-stubs-hydrogen.cc |
@@ -603,7 +603,9 @@ Handle<Code> StringLengthStub::GenerateCode() { |
template <> |
HValue* CodeStubGraphBuilder<KeyedStoreFastElementStub>::BuildCodeStub() { |
BuildUncheckedMonomorphicElementAccess( |
- GetParameter(0), GetParameter(1), GetParameter(2), |
+ GetParameter(StoreIC::kReceiverIndex), |
+ GetParameter(StoreIC::kNameIndex), |
+ GetParameter(StoreIC::kValueIndex), |
casted_stub()->is_js_array(), casted_stub()->elements_kind(), |
STORE, NEVER_RETURN_HOLE, casted_stub()->store_mode()); |
@@ -1028,7 +1030,7 @@ HValue* CodeStubGraphBuilder<StoreGlobalStub>::BuildCodeInitializedStub() { |
Handle<PropertyCell> placeholder_cell = |
isolate()->factory()->NewPropertyCell(placeholer_value); |
- HParameter* value = GetParameter(2); |
+ HParameter* value = GetParameter(StoreIC::kValueIndex); |
if (stub->check_global()) { |
// Check that the map of the global has not changed: use a placeholder map |