| Index: src/heap-inl.h
|
| diff --git a/src/heap-inl.h b/src/heap-inl.h
|
| index e2607466a82fd51bc0d711be65563a327b02a92d..ad6f44f935f1af9349d99f0cc670017a3cd7f192 100644
|
| --- a/src/heap-inl.h
|
| +++ b/src/heap-inl.h
|
| @@ -206,6 +206,11 @@ MaybeObject* Heap::CopyFixedDoubleArray(FixedDoubleArray* src) {
|
| }
|
|
|
|
|
| +MaybeObject* Heap::CopyConstantPoolArray(ConstantPoolArray* src) {
|
| + return CopyConstantPoolArrayWithMap(src, src->map());
|
| +}
|
| +
|
| +
|
| MaybeObject* Heap::AllocateRaw(int size_in_bytes,
|
| AllocationSpace space,
|
| AllocationSpace retry_space) {
|
| @@ -291,40 +296,6 @@ void Heap::FinalizeExternalString(String* string) {
|
| }
|
|
|
|
|
| -MaybeObject* Heap::AllocateRawMap() {
|
| -#ifdef DEBUG
|
| - isolate_->counters()->objs_since_last_full()->Increment();
|
| - isolate_->counters()->objs_since_last_young()->Increment();
|
| -#endif
|
| - MaybeObject* result = map_space_->AllocateRaw(Map::kSize);
|
| - if (result->IsFailure()) old_gen_exhausted_ = true;
|
| - return result;
|
| -}
|
| -
|
| -
|
| -MaybeObject* Heap::AllocateRawCell() {
|
| -#ifdef DEBUG
|
| - isolate_->counters()->objs_since_last_full()->Increment();
|
| - isolate_->counters()->objs_since_last_young()->Increment();
|
| -#endif
|
| - MaybeObject* result = cell_space_->AllocateRaw(Cell::kSize);
|
| - if (result->IsFailure()) old_gen_exhausted_ = true;
|
| - return result;
|
| -}
|
| -
|
| -
|
| -MaybeObject* Heap::AllocateRawPropertyCell() {
|
| -#ifdef DEBUG
|
| - isolate_->counters()->objs_since_last_full()->Increment();
|
| - isolate_->counters()->objs_since_last_young()->Increment();
|
| -#endif
|
| - MaybeObject* result =
|
| - property_cell_space_->AllocateRaw(PropertyCell::kSize);
|
| - if (result->IsFailure()) old_gen_exhausted_ = true;
|
| - return result;
|
| -}
|
| -
|
| -
|
| bool Heap::InNewSpace(Object* object) {
|
| bool result = new_space_.Contains(object);
|
| ASSERT(!result || // Either not in new space
|
|
|