| Index: src/profile-generator.cc
|
| diff --git a/src/profile-generator.cc b/src/profile-generator.cc
|
| index 3f4e935b04b6df12c987259b4c2dc1e071be1d73..b31b77b42f2d43762f7cb141a2f46167c743f140 100644
|
| --- a/src/profile-generator.cc
|
| +++ b/src/profile-generator.cc
|
| @@ -1710,8 +1710,7 @@ HeapEntry* V8HeapExplorer::AddEntry(HeapObject* object) {
|
| object->IsFixedDoubleArray() ||
|
| object->IsByteArray() ||
|
| object->IsExternalArray()) {
|
| - const char* tag = objects_tags_.GetTag(object);
|
| - return AddEntry(object, HeapEntry::kArray, tag != NULL ? tag : "");
|
| + return AddEntry(object, HeapEntry::kArray, "");
|
| } else if (object->IsHeapNumber()) {
|
| return AddEntry(object, HeapEntry::kHeapNumber, "number");
|
| }
|
| @@ -2635,7 +2634,10 @@ const char* V8HeapExplorer::GetStrongGcSubrootName(Object* object) {
|
|
|
| void V8HeapExplorer::TagObject(Object* obj, const char* tag) {
|
| if (IsEssentialObject(obj)) {
|
| - objects_tags_.SetTag(obj, tag);
|
| + HeapEntry* entry = GetEntry(obj);
|
| + if (entry->name()[0] == '\0') {
|
| + entry->set_name(tag);
|
| + }
|
| }
|
| }
|
|
|
|
|