| Index: src/heap-inl.h
|
| ===================================================================
|
| --- src/heap-inl.h (revision 2377)
|
| +++ src/heap-inl.h (working copy)
|
| @@ -82,6 +82,8 @@
|
| result = code_space_->AllocateRaw(size_in_bytes);
|
| } else if (LO_SPACE == space) {
|
| result = lo_space_->AllocateRaw(size_in_bytes);
|
| + } else if (CELL_SPACE == space) {
|
| + result = cell_space_->AllocateRaw(size_in_bytes);
|
| } else {
|
| ASSERT(MAP_SPACE == space);
|
| result = map_space_->AllocateRaw(size_in_bytes);
|
| @@ -107,17 +109,28 @@
|
| }
|
|
|
|
|
| -Object* Heap::AllocateRawMap(int size_in_bytes) {
|
| +Object* Heap::AllocateRawMap() {
|
| #ifdef DEBUG
|
| Counters::objs_since_last_full.Increment();
|
| Counters::objs_since_last_young.Increment();
|
| #endif
|
| - Object* result = map_space_->AllocateRaw(size_in_bytes);
|
| + Object* result = map_space_->AllocateRaw(Map::kSize);
|
| if (result->IsFailure()) old_gen_exhausted_ = true;
|
| return result;
|
| }
|
|
|
|
|
| +Object* Heap::AllocateRawCell() {
|
| +#ifdef DEBUG
|
| + Counters::objs_since_last_full.Increment();
|
| + Counters::objs_since_last_young.Increment();
|
| +#endif
|
| + Object* result = cell_space_->AllocateRaw(JSGlobalPropertyCell::kSize);
|
| + if (result->IsFailure()) old_gen_exhausted_ = true;
|
| + return result;
|
| +}
|
| +
|
| +
|
| bool Heap::InNewSpace(Object* object) {
|
| return new_space_.Contains(object);
|
| }
|
|
|