Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index 959e409500ab66ffe93613f83f68c7d16e3162ec..0d03c33082cb779e368dac55a838a4ff0c80e21f 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -5500,6 +5500,7 @@ void HOptimizedGraphBuilder::VisitObjectLiteral(ObjectLiteral* expr) { |
if (info.CanAccessMonomorphic()) { |
HValue* checked_literal = Add<HCheckMaps>(literal, map); |
DCHECK(!info.IsAccessorConstant()); |
+ info.MarkAsInitializingStore(); |
store = BuildMonomorphicAccess( |
&info, literal, checked_literal, value, |
BailoutId::None(), BailoutId::None()); |
@@ -5741,9 +5742,8 @@ HInstruction* HOptimizedGraphBuilder::BuildStoreNamedField( |
} |
// This is a normal store. |
- instr = New<HStoreNamedField>( |
- checked_object->ActualValue(), field_access, value, |
- transition_to_field ? INITIALIZING_STORE : STORE_TO_INITIALIZED_ENTRY); |
+ instr = New<HStoreNamedField>(checked_object->ActualValue(), field_access, |
+ value, info->StoreMode()); |
} |
if (transition_to_field) { |