| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index f1a0bfa52b133da27ea64e3facf02c319a297924..2babe900b9ef2d15c3d1c7c36fb58d528ce25bfc 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -2408,6 +2408,22 @@ MaybeObject* Heap::AllocateMap(InstanceType instance_type,
|
| }
|
|
|
|
|
| +MaybeObject* Heap::AllocateFillerObject(int size,
|
| + bool double_align,
|
| + AllocationSpace space) {
|
| + HeapObject* allocation;
|
| + { MaybeObject* maybe_allocation = AllocateRaw(size, space, space);
|
| + if (!maybe_allocation->To(&allocation)) return maybe_allocation;
|
| + }
|
| +#ifdef DEBUG
|
| + MemoryChunk* chunk = MemoryChunk::FromAddress(allocation->address());
|
| + ASSERT(chunk->owner()->identity() == space);
|
| +#endif
|
| + CreateFillerObjectAt(allocation->address(), size);
|
| + return allocation;
|
| +}
|
| +
|
| +
|
| MaybeObject* Heap::AllocatePolymorphicCodeCache() {
|
| return AllocateStruct(POLYMORPHIC_CODE_CACHE_TYPE);
|
| }
|
|
|