| Index: src/profile-generator.cc
|
| diff --git a/src/profile-generator.cc b/src/profile-generator.cc
|
| index 07426f293992dab657bcdd02101b1fe265142d73..79efff2a387cd884e35b980228706ed06b8fdc3d 100644
|
| --- a/src/profile-generator.cc
|
| +++ b/src/profile-generator.cc
|
| @@ -1993,13 +1993,15 @@ void V8HeapExplorer::ExtractReferences(HeapObject* obj) {
|
| void V8HeapExplorer::ExtractClosureReferences(JSObject* js_obj,
|
| HeapEntry* entry) {
|
| if (js_obj->IsJSFunction()) {
|
| - HandleScope hs;
|
| + HandleScope hs(heap_->isolate());
|
| JSFunction* func = JSFunction::cast(js_obj);
|
| Context* context = func->context();
|
| ZoneScope zscope(Isolate::Current(), DELETE_ON_EXIT);
|
| SerializedScopeInfo* serialized_scope_info =
|
| context->closure()->shared()->scope_info();
|
| - ScopeInfo<ZoneListAllocationPolicy> zone_scope_info(serialized_scope_info);
|
| + ScopeInfo<ZoneListAllocator> zone_scope_info(
|
| + serialized_scope_info,
|
| + ZoneListAllocator(heap_->isolate()->zone()));
|
| int locals_number = zone_scope_info.NumberOfLocals();
|
| for (int i = 0; i < locals_number; ++i) {
|
| String* local_name = *zone_scope_info.LocalName(i);
|
|
|