Index: src/objects-debug.cc |
diff --git a/src/objects-debug.cc b/src/objects-debug.cc |
index a22f2e43981cd3e86d7050bb038f716d3489b31b..197d979258ffcf9fd386f38b9db4d545a1d2f09f 100644 |
--- a/src/objects-debug.cc |
+++ b/src/objects-debug.cc |
@@ -152,6 +152,9 @@ void HeapObject::HeapObjectVerify() { |
case JS_MAP_ITERATOR_TYPE: |
JSMapIterator::cast(this)->JSMapIteratorVerify(); |
break; |
+ case JS_STRING_ITERATOR_TYPE: |
+ JSStringIterator::cast(this)->JSStringIteratorVerify(); |
+ break; |
case JS_WEAK_MAP_TYPE: |
JSWeakMap::cast(this)->JSWeakMapVerify(); |
break; |
@@ -779,6 +782,13 @@ void JSWeakMap::JSWeakMapVerify() { |
CHECK(table()->IsHashTable() || table()->IsUndefined(GetIsolate())); |
} |
+void JSStringIterator::JSStringIteratorVerify() { |
+ CHECK(IsJSStringIterator()); |
+ JSObjectVerify(); |
+ CHECK(string()->IsString()); |
+ CHECK_GE(index(), 0); |
+ CHECK_LE(index(), String::kMaxLength); |
+} |
void JSWeakSet::JSWeakSetVerify() { |
CHECK(IsJSWeakSet()); |