Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 9d5fe3c4092cfa0cd5e66a829deee103c3dda9e9..e37a1cee9a48534007617df4bb11b93b01f6bd2e 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -6861,7 +6861,8 @@ HInstruction* HOptimizedGraphBuilder::BuildKeyedGeneric( |
HValue* key, |
HValue* value) { |
if (access_type == LOAD) { |
- HLoadKeyedGeneric* result = New<HLoadKeyedGeneric>(object, key); |
+ HLoadKeyedGeneric* result = |
+ New<HLoadKeyedGeneric>(object, key, PREMONOMORPHIC); |
if (FLAG_vector_ics) { |
Handle<SharedFunctionInfo> current_shared = |
function_state()->compilation_info()->shared_info(); |
@@ -6872,8 +6873,8 @@ HInstruction* HOptimizedGraphBuilder::BuildKeyedGeneric( |
} |
return result; |
} else { |
- return New<HStoreKeyedGeneric>(object, key, value, |
- function_language_mode()); |
+ return New<HStoreKeyedGeneric>(object, key, value, function_language_mode(), |
+ PREMONOMORPHIC); |
} |
} |