| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index 31cd889cbef1e8aab8c2ab4ad5cab29c5241f661..e073b62b1dbd9257c01ba1b88ab3c73ba40e5652 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -1869,6 +1869,19 @@ MaybeObject* Heap::AllocatePolymorphicCodeCache() {
|
| }
|
|
|
|
|
| +MaybeObject* Heap::AllocateAccessorPair() {
|
| + Object* result;
|
| + { MaybeObject* maybe_result = AllocateStruct(ACCESSOR_PAIR_TYPE);
|
| + if (!maybe_result->ToObject(&result)) return maybe_result;
|
| + }
|
| + AccessorPair* accessors = AccessorPair::cast(result);
|
| + // Later we will have to distinguish between undefined and the hole...
|
| + // accessors->set_getter(the_hole_value(), SKIP_WRITE_BARRIER);
|
| + // accessors->set_setter(the_hole_value(), SKIP_WRITE_BARRIER);
|
| + return accessors;
|
| +}
|
| +
|
| +
|
| const Heap::StringTypeTable Heap::string_type_table[] = {
|
| #define STRING_TYPE_ELEMENT(type, size, name, camel_name) \
|
| {type, size, k##camel_name##MapRootIndex},
|
|
|