| Index: src/objects-debug.cc
|
| diff --git a/src/objects-debug.cc b/src/objects-debug.cc
|
| index afde76404e1dc071547081a79840a66782577420..ba28eab26ed7c6d71b6f11e456980b0294d68445 100644
|
| --- a/src/objects-debug.cc
|
| +++ b/src/objects-debug.cc
|
| @@ -143,6 +143,9 @@ void HeapObject::HeapObjectVerify() {
|
| case JS_MODULE_NAMESPACE_TYPE:
|
| JSModuleNamespace::cast(this)->JSModuleNamespaceVerify();
|
| break;
|
| + case JS_FIXED_ARRAY_ITERATOR_TYPE:
|
| + JSFixedArrayIterator::cast(this)->JSFixedArrayIteratorVerify();
|
| + break;
|
| case JS_SET_TYPE:
|
| JSSet::cast(this)->JSSetVerify();
|
| break;
|
| @@ -943,6 +946,16 @@ void JSModuleNamespace::JSModuleNamespaceVerify() {
|
| module()->ObjectVerify();
|
| }
|
|
|
| +void JSFixedArrayIterator::JSFixedArrayIteratorVerify() {
|
| + CHECK(IsJSFixedArrayIterator());
|
| +
|
| + CHECK(array()->IsFixedArray());
|
| + VerifySmiField(kIndexOffset);
|
| + CHECK(next()->IsJSFunction());
|
| +
|
| + CHECK_LE(index(), array()->length());
|
| +}
|
| +
|
| void Module::ModuleVerify() {
|
| Isolate* isolate = GetIsolate();
|
| CHECK(IsModule());
|
|
|