Index: src/deoptimizer.cc |
diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc |
index c1df93769ee8f8ad6ec6c939cb9931fc4626073f..2b39ff6965e89a1290c03d1af0ea33c20c2c963a 100644 |
--- a/src/deoptimizer.cc |
+++ b/src/deoptimizer.cc |
@@ -1841,7 +1841,8 @@ Handle<Object> Deoptimizer::MaterializeNextHeapObject() { |
object->set_elements(FixedArrayBase::cast(*elements)); |
for (int i = 0; i < length - 3; ++i) { |
Handle<Object> value = MaterializeNextValue(); |
- object->FastPropertyAtPut(i, *value); |
+ FieldIndex index = FieldIndex::ForPropertyIndex(object->map(), i); |
+ object->FastPropertyAtPut(index, *value); |
} |
break; |
} |
@@ -3406,7 +3407,8 @@ Handle<Object> SlotRefValueBuilder::GetNext(Isolate* isolate, int lvl) { |
object->set_elements(FixedArrayBase::cast(*elements)); |
for (int i = 0; i < length - 3; ++i) { |
Handle<Object> value = GetNext(isolate, lvl + 1); |
- object->FastPropertyAtPut(i, *value); |
+ FieldIndex index = FieldIndex::ForPropertyIndex(object->map(), i); |
+ object->FastPropertyAtPut(index, *value); |
} |
return object; |
} |