| Index: src/profile-generator.cc
|
| ===================================================================
|
| --- src/profile-generator.cc (revision 5888)
|
| +++ src/profile-generator.cc (working copy)
|
| @@ -1295,8 +1295,8 @@
|
| } else if (object->IsJSObject()) {
|
| return AddEntry(object,
|
| HeapEntry::kObject,
|
| - collection_->GetName(
|
| - JSObject::cast(object)->constructor_name()),
|
| + collection_->GetName(GetConstructorNameForHeapProfile(
|
| + JSObject::cast(object))),
|
| children_count,
|
| retainers_count);
|
| } else if (object->IsString()) {
|
| @@ -2769,6 +2769,12 @@
|
| sorted_entries->Sort(SortUsingEntryValue);
|
| }
|
|
|
| +
|
| +String* GetConstructorNameForHeapProfile(JSObject* object) {
|
| + if (object->IsJSFunction()) return Heap::closure_symbol();
|
| + return object->constructor_name();
|
| +}
|
| +
|
| } } // namespace v8::internal
|
|
|
| #endif // ENABLE_LOGGING_AND_PROFILING
|
|
|