Index: src/profile-generator.cc |
diff --git a/src/profile-generator.cc b/src/profile-generator.cc |
index e41ebfa4ef6ed6f362933b3a03a0dfc647a2ff81..522676c34ab3735c47b239990216e892504720bd 100644 |
--- a/src/profile-generator.cc |
+++ b/src/profile-generator.cc |
@@ -2166,15 +2166,16 @@ void V8HeapExplorer::ExtractInternalReferences(JSObject* js_obj, |
String* V8HeapExplorer::GetConstructorName(JSObject* object) { |
- if (object->IsJSFunction()) return HEAP->closure_symbol(); |
+ Heap* heap = object->GetHeap(); |
+ if (object->IsJSFunction()) return heap->closure_symbol(); |
String* constructor_name = object->constructor_name(); |
- if (constructor_name == HEAP->Object_symbol()) { |
+ if (constructor_name == heap->Object_symbol()) { |
// Look up an immediate "constructor" property, if it is a function, |
// return its name. This is for instances of binding objects, which |
// have prototype constructor type "Object". |
Object* constructor_prop = NULL; |
- LookupResult result; |
- object->LocalLookupRealNamedProperty(HEAP->constructor_symbol(), &result); |
+ LookupResult result(heap->isolate()); |
+ object->LocalLookupRealNamedProperty(heap->constructor_symbol(), &result); |
if (result.IsProperty()) { |
constructor_prop = result.GetLazyValue(); |
} |