| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 753c80e5bb4db517c0815dfee109e550448d3ad5..1b40b0b0442f84e2b9a04e515171dabb3be0cac2 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -7745,6 +7745,30 @@ static inline uint32_t ObjectAddressForHashing(void* object) {
|
| return value & MemoryChunk::kAlignmentMask;
|
| }
|
|
|
| +static inline Handle<Object> MakeEntryPair(Isolate* isolate, uint32_t index,
|
| + Handle<Object> value) {
|
| + Handle<Object> key = isolate->factory()->Uint32ToString(index);
|
| + Handle<FixedArray> entry_storage =
|
| + isolate->factory()->NewUninitializedFixedArray(2);
|
| + {
|
| + entry_storage->set(0, *key, SKIP_WRITE_BARRIER);
|
| + entry_storage->set(1, *value, SKIP_WRITE_BARRIER);
|
| + }
|
| + return isolate->factory()->NewJSArrayWithElements(entry_storage,
|
| + FAST_ELEMENTS, 2);
|
| +}
|
| +
|
| +static inline Handle<Object> MakeEntryPair(Isolate* isolate, Handle<Name> key,
|
| + Handle<Object> value) {
|
| + Handle<FixedArray> entry_storage =
|
| + isolate->factory()->NewUninitializedFixedArray(2);
|
| + {
|
| + entry_storage->set(0, *key, SKIP_WRITE_BARRIER);
|
| + entry_storage->set(1, *value, SKIP_WRITE_BARRIER);
|
| + }
|
| + return isolate->factory()->NewJSArrayWithElements(entry_storage,
|
| + FAST_ELEMENTS, 2);
|
| +}
|
|
|
| #undef TYPE_CHECKER
|
| #undef CAST_ACCESSOR
|
|
|