Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 54a522506287259d83a7684002e5ad1fac33fc07..7ee6081026b7c58a786a3e3a5985a69259b1f787 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -10059,7 +10059,9 @@ void HOptimizedGraphBuilder::BuildEmitInObjectProperties( |
HConstant(isolate()->factory()->one_pointer_filler_map(), |
Representation::Tagged())); |
for (int i = copied_fields; i < inobject_properties; i++) { |
- HObjectAccess access = HObjectAccess::ForJSObjectOffset(i); |
+ ASSERT(boilerplate_object->IsJSObject()); |
+ int property_offset = boilerplate_object->GetInObjectPropertyOffset(i); |
+ HObjectAccess access = HObjectAccess::ForJSObjectOffset(property_offset); |
AddStore(object_properties, access, value_instruction); |
} |
} |