| Index: src/profile-generator.cc
|
| diff --git a/src/profile-generator.cc b/src/profile-generator.cc
|
| index 5c763b215db0e1722c875e547b301f5ebeecf91d..10666a2a9ed49433c65bfdb8c240ab7d35b5fb80 100644
|
| --- a/src/profile-generator.cc
|
| +++ b/src/profile-generator.cc
|
| @@ -2709,14 +2709,14 @@ class GlobalObjectsEnumerator : public ObjectVisitor {
|
|
|
| // Modifies heap. Must not be run during heap traversal.
|
| void V8HeapExplorer::TagGlobalObjects() {
|
| - HandleScope scope;
|
| Isolate* isolate = Isolate::Current();
|
| + HandleScope scope(isolate);
|
| GlobalObjectsEnumerator enumerator;
|
| isolate->global_handles()->IterateAllRoots(&enumerator);
|
| const char** urls = NewArray<const char*>(enumerator.count());
|
| for (int i = 0, l = enumerator.count(); i < l; ++i) {
|
| if (global_object_name_resolver_) {
|
| - HandleScope scope;
|
| + HandleScope scope(isolate);
|
| Handle<JSGlobalObject> global_obj = enumerator.at(i);
|
| urls[i] = global_object_name_resolver_->GetName(
|
| Utils::ToLocal(Handle<JSObject>::cast(global_obj)));
|
|
|