Index: src/objects-debug.cc |
diff --git a/src/objects-debug.cc b/src/objects-debug.cc |
index eb61afec117275a3ebf744d4068ba72a7f862113..9ae3048dd27cf4b6b4b7540d07e4bed166b9358c 100644 |
--- a/src/objects-debug.cc |
+++ b/src/objects-debug.cc |
@@ -318,7 +318,8 @@ void JSObject::JSObjectVerify() { |
// pointer may point to a one pointer filler map. |
if (ElementsAreSafeToExamine()) { |
CHECK_EQ((map()->has_fast_smi_or_object_elements() || |
- (elements() == GetHeap()->empty_fixed_array())), |
+ (elements() == GetHeap()->empty_fixed_array()) || |
+ HasFastStringWrapperElements()), |
(elements()->map() == GetHeap()->fixed_array_map() || |
elements()->map() == GetHeap()->fixed_cow_array_map())); |
CHECK(map()->has_fast_object_elements() == HasFastObjectElements()); |
@@ -1069,7 +1070,8 @@ void JSObject::IncrementSpillStatistics(SpillInformation* info) { |
case FAST_HOLEY_DOUBLE_ELEMENTS: |
case FAST_DOUBLE_ELEMENTS: |
case FAST_HOLEY_ELEMENTS: |
- case FAST_ELEMENTS: { |
+ case FAST_ELEMENTS: |
+ case FAST_STRING_WRAPPER_ELEMENTS: { |
info->number_of_objects_with_fast_elements_++; |
int holes = 0; |
FixedArray* e = FixedArray::cast(elements()); |
@@ -1093,7 +1095,8 @@ void JSObject::IncrementSpillStatistics(SpillInformation* info) { |
info->number_of_fast_used_elements_ += e->length(); |
break; |
} |
- case DICTIONARY_ELEMENTS: { |
+ case DICTIONARY_ELEMENTS: |
+ case SLOW_STRING_WRAPPER_ELEMENTS: { |
SeededNumberDictionary* dict = element_dictionary(); |
info->number_of_slow_used_elements_ += dict->NumberOfElements(); |
info->number_of_slow_unused_elements_ += |
@@ -1102,6 +1105,7 @@ void JSObject::IncrementSpillStatistics(SpillInformation* info) { |
} |
case FAST_SLOPPY_ARGUMENTS_ELEMENTS: |
case SLOW_SLOPPY_ARGUMENTS_ELEMENTS: |
+ case NO_ELEMENTS: |
break; |
} |
} |