| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index e641991cc574e4bae49535e929991adda6f51a7d..87d0cbbaa0eec85bc88752868a888776501de208 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -6209,7 +6209,7 @@ static void InitializeGCOnce() {
|
| MarkCompactCollector::Initialize();
|
| }
|
|
|
| -bool Heap::SetUp(bool create_heap_objects) {
|
| +bool Heap::SetUp() {
|
| #ifdef DEBUG
|
| allocation_timeout_ = FLAG_gc_interval;
|
| #endif
|
| @@ -6300,17 +6300,6 @@ bool Heap::SetUp(bool create_heap_objects) {
|
| }
|
| }
|
|
|
| - if (create_heap_objects) {
|
| - // Create initial maps.
|
| - if (!CreateInitialMaps()) return false;
|
| - if (!CreateApiObjects()) return false;
|
| -
|
| - // Create initial objects
|
| - if (!CreateInitialObjects()) return false;
|
| -
|
| - native_contexts_list_ = undefined_value();
|
| - }
|
| -
|
| LOG(isolate_, IntPtrTEvent("heap-capacity", Capacity()));
|
| LOG(isolate_, IntPtrTEvent("heap-available", Available()));
|
|
|
| @@ -6321,6 +6310,18 @@ bool Heap::SetUp(bool create_heap_objects) {
|
| return true;
|
| }
|
|
|
| +bool Heap::CreateHeapObjects() {
|
| + // Create initial maps.
|
| + if (!CreateInitialMaps()) return false;
|
| + if (!CreateApiObjects()) return false;
|
| +
|
| + // Create initial objects
|
| + if (!CreateInitialObjects()) return false;
|
| +
|
| + native_contexts_list_ = undefined_value();
|
| + return true;
|
| +}
|
| +
|
|
|
| void Heap::SetStackLimits() {
|
| ASSERT(isolate_ != NULL);
|
|
|