Index: src/heap-inl.h |
diff --git a/src/heap-inl.h b/src/heap-inl.h |
index f0861b2e7a9546eea1beb74d1991f81349e1f3d3..208b1ad32e4883f244237e6ff085759a266ad664 100644 |
--- a/src/heap-inl.h |
+++ b/src/heap-inl.h |
@@ -245,6 +245,8 @@ MaybeObject* Heap::AllocateRaw(int size_in_bytes, |
result = lo_space_->AllocateRaw(size_in_bytes, NOT_EXECUTABLE); |
} else if (CELL_SPACE == space) { |
result = cell_space_->AllocateRaw(size_in_bytes); |
+ } else if (PROPERTY_CELL_SPACE == space) { |
+ result = property_cell_space_->AllocateRaw(size_in_bytes); |
} else { |
ASSERT(MAP_SPACE == space); |
result = map_space_->AllocateRaw(size_in_bytes); |
@@ -305,7 +307,19 @@ MaybeObject* Heap::AllocateRawCell() { |
isolate_->counters()->objs_since_last_full()->Increment(); |
isolate_->counters()->objs_since_last_young()->Increment(); |
#endif |
- MaybeObject* result = cell_space_->AllocateRaw(JSGlobalPropertyCell::kSize); |
+ MaybeObject* result = cell_space_->AllocateRaw(Cell::kSize); |
+ if (result->IsFailure()) old_gen_exhausted_ = true; |
+ return result; |
+} |
+ |
+ |
+MaybeObject* Heap::AllocateRawJSGlobalPropertyCell() { |
+#ifdef DEBUG |
+ isolate_->counters()->objs_since_last_full()->Increment(); |
+ isolate_->counters()->objs_since_last_young()->Increment(); |
+#endif |
+ MaybeObject* result = |
+ property_cell_space_->AllocateRaw(JSGlobalPropertyCell::kSize); |
if (result->IsFailure()) old_gen_exhausted_ = true; |
return result; |
} |
@@ -407,7 +421,8 @@ AllocationSpace Heap::TargetSpaceId(InstanceType type) { |
ASSERT(type != MAP_TYPE); |
ASSERT(type != CODE_TYPE); |
ASSERT(type != ODDBALL_TYPE); |
- ASSERT(type != JS_GLOBAL_PROPERTY_CELL_TYPE); |
+ ASSERT(type != CELL_TYPE); |
+ ASSERT(type != PROPERTY_CELL_TYPE); |
if (type <= LAST_NAME_TYPE) { |
if (type == SYMBOL_TYPE) return OLD_POINTER_SPACE; |