Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index b6199831f007633fecaf7c87f28432a18fe6b380..fd4cc351af8b07d7fad9c547bfce99f04586b708 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -4495,7 +4495,7 @@ HInstruction* HOptimizedGraphBuilder::BuildStoreNamedField( |
AddStoreMapConstant(heap_number, isolate()->factory()->heap_number_map()); |
Add<HStoreNamedField>(heap_number, HObjectAccess::ForHeapNumberValue(), |
value); |
- instr = New<HStoreNamedField>(checked_object, |
+ instr = New<HStoreNamedField>(checked_object->ActualValue(), |
heap_number_access, |
heap_number); |
} else { |
@@ -4509,7 +4509,9 @@ HInstruction* HOptimizedGraphBuilder::BuildStoreNamedField( |
} |
} else { |
// This is a normal store. |
- instr = New<HStoreNamedField>(checked_object, field_access, value); |
+ instr = New<HStoreNamedField>(checked_object->ActualValue(), |
+ field_access, |
+ value); |
} |
if (transition_to_field) { |