| Index: src/heap/heap.cc
|
| diff --git a/src/heap/heap.cc b/src/heap/heap.cc
|
| index ec2a470abb8268897290511a34ea60ec5be12c57..a3323dd4e96d82551a7816ba9d83aac22116782c 100644
|
| --- a/src/heap/heap.cc
|
| +++ b/src/heap/heap.cc
|
| @@ -2524,10 +2524,18 @@ AllocationResult Heap::AllocateTransitionArray(int capacity) {
|
| return array;
|
| }
|
|
|
| -
|
| -void Heap::CreateApiObjects() {
|
| +bool Heap::CreateApiObjects() {
|
| HandleScope scope(isolate());
|
| set_message_listeners(*TemplateList::New(isolate(), 2));
|
| + HeapObject* obj = nullptr;
|
| + {
|
| + AllocationResult allocation = AllocateStruct(INTERCEPTOR_INFO_TYPE);
|
| + if (!allocation.To(&obj)) return false;
|
| + }
|
| + InterceptorInfo* info = InterceptorInfo::cast(obj);
|
| + info->set_flags(0);
|
| + set_noop_interceptor_info(info);
|
| + return true;
|
| }
|
|
|
|
|
| @@ -5576,7 +5584,7 @@ bool Heap::SetUp() {
|
| bool Heap::CreateHeapObjects() {
|
| // Create initial maps.
|
| if (!CreateInitialMaps()) return false;
|
| - CreateApiObjects();
|
| + if (!CreateApiObjects()) return false;
|
|
|
| // Create initial objects
|
| CreateInitialObjects();
|
|
|