Commit c1c74411 authored by Michael Lippautz's avatar Michael Lippautz Committed by Commit Bot

[object-stats] Fix duplicate entries

bug: v8:7266
Change-Id: I8241301c9652e70c88b35ebd057af107a1c05687
Reviewed-on: https://chromium-review.googlesource.com/880622Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#50788}
parent 195a74a1
...@@ -362,11 +362,11 @@ void ObjectStatsCollectorImpl::RecordVirtualJSObjectDetails(JSObject* object) { ...@@ -362,11 +362,11 @@ void ObjectStatsCollectorImpl::RecordVirtualJSObjectDetails(JSObject* object) {
if (object->HasFastProperties()) { if (object->HasFastProperties()) {
PropertyArray* properties = object->property_array(); PropertyArray* properties = object->property_array();
RecordSimpleVirtualObjectStats(object, properties, RecordSimpleVirtualObjectStats(object, properties,
ObjectStats::PROPERTY_ARRAY_TYPE); ObjectStats::OBJECT_PROPERTY_ARRAY_TYPE);
} else { } else {
NameDictionary* properties = object->property_dictionary(); NameDictionary* properties = object->property_dictionary();
RecordHashTableVirtualObjectStats(object, properties, RecordHashTableVirtualObjectStats(
ObjectStats::PROPERTY_DICTIONARY_TYPE); object, properties, ObjectStats::OBJECT_PROPERTY_DICTIONARY_TYPE);
} }
// Elements. // Elements.
FixedArrayBase* elements = object->elements(); FixedArrayBase* elements = object->elements();
......
...@@ -42,10 +42,10 @@ ...@@ -42,10 +42,10 @@
V(NATIVE_CONTEXT_TYPE) \ V(NATIVE_CONTEXT_TYPE) \
V(NOSCRIPT_SHARED_FUNCTION_INFOS_TYPE) \ V(NOSCRIPT_SHARED_FUNCTION_INFOS_TYPE) \
V(NUMBER_STRING_CACHE_TYPE) \ V(NUMBER_STRING_CACHE_TYPE) \
V(OBJECT_PROPERTY_ARRAY_TYPE) \
V(OBJECT_PROPERTY_DICTIONARY_TYPE) \
V(OBJECT_TO_CODE_TYPE) \ V(OBJECT_TO_CODE_TYPE) \
V(OTHER_CONTEXT_TYPE) \ V(OTHER_CONTEXT_TYPE) \
V(PROPERTY_ARRAY_TYPE) \
V(PROPERTY_DICTIONARY_TYPE) \
V(PROTOTYPE_USERS_TYPE) \ V(PROTOTYPE_USERS_TYPE) \
V(REGEXP_MULTIPLE_CACHE_TYPE) \ V(REGEXP_MULTIPLE_CACHE_TYPE) \
V(RETAINED_MAPS_TYPE) \ V(RETAINED_MAPS_TYPE) \
......
...@@ -63,8 +63,8 @@ const CATEGORIES = new Map([ ...@@ -63,8 +63,8 @@ const CATEGORIES = new Map([
'NATIVE_CONTEXT_TYPE', 'NATIVE_CONTEXT_TYPE',
'ONE_BYTE_INTERNALIZED_STRING_TYPE', 'ONE_BYTE_INTERNALIZED_STRING_TYPE',
'ONE_BYTE_STRING_TYPE', 'ONE_BYTE_STRING_TYPE',
'PROPERTY_ARRAY_TYPE', 'OBJECT_PROPERTY_ARRAY_TYPE',
'PROPERTY_DICTIONARY_TYPE', 'OBJECT_PROPERTY_DICTIONARY_TYPE',
'SHORT_EXTERNAL_INTERNALIZED_STRING_TYPE', 'SHORT_EXTERNAL_INTERNALIZED_STRING_TYPE',
'SHORT_EXTERNAL_ONE_BYTE_INTERNALIZED_STRING_TYPE', 'SHORT_EXTERNAL_ONE_BYTE_INTERNALIZED_STRING_TYPE',
'SHORT_EXTERNAL_ONE_BYTE_STRING_TYPE', 'SHORT_EXTERNAL_ONE_BYTE_STRING_TYPE',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment