Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index fac56495a0048ab66f4678fad43bce600df9050f..91b7246f21ca46aa7f0cf61e7d834385d0738c4a 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -7372,9 +7372,9 @@ void BaseDictionaryShape<Key>::SetEntry(Dictionary* dict, int entry, |
int index = dict->EntryToIndex(entry); |
DisallowHeapAllocation no_gc; |
WriteBarrierMode mode = dict->GetWriteBarrierMode(no_gc); |
- dict->set(index, *key, mode); |
- dict->set(index + 1, *value, mode); |
- dict->set(index + 2, details.AsSmi()); |
+ dict->set(index + Dictionary::kEntryKeyIndex, *key, mode); |
+ dict->set(index + Dictionary::kEntryValueIndex, *value, mode); |
+ dict->set(index + Dictionary::kEntryDetailsIndex, details.AsSmi()); |
} |
@@ -7388,8 +7388,8 @@ void GlobalDictionaryShape::SetEntry(Dictionary* dict, int entry, |
int index = dict->EntryToIndex(entry); |
DisallowHeapAllocation no_gc; |
WriteBarrierMode mode = dict->GetWriteBarrierMode(no_gc); |
- dict->set(index, *key, mode); |
- dict->set(index + 1, *value, mode); |
+ dict->set(index + Dictionary::kEntryKeyIndex, *key, mode); |
+ dict->set(index + Dictionary::kEntryValueIndex, *value, mode); |
PropertyCell::cast(*value)->set_property_details(details); |
} |