Index: src/objects-debug.cc |
diff --git a/src/objects-debug.cc b/src/objects-debug.cc |
index 156376261af93440deb6596cd5d6710aeac618dc..64bda9473f6ca4d98232046094c5faf560d0f97e 100644 |
--- a/src/objects-debug.cc |
+++ b/src/objects-debug.cc |
@@ -156,6 +156,12 @@ void HeapObject::HeapObjectVerify() { |
case JS_ARRAY_TYPE: |
JSArray::cast(this)->JSArrayVerify(); |
break; |
+ case JS_SET_TYPE: |
+ JSSet::cast(this)->JSSetVerify(); |
+ break; |
+ case JS_MAP_TYPE: |
+ JSMap::cast(this)->JSMapVerify(); |
+ break; |
case JS_WEAK_MAP_TYPE: |
JSWeakMap::cast(this)->JSWeakMapVerify(); |
break; |
@@ -500,6 +506,22 @@ void JSArray::JSArrayVerify() { |
} |
+void JSSet::JSSetVerify() { |
+ CHECK(IsJSSet()); |
+ JSObjectVerify(); |
+ VerifyHeapPointer(table()); |
+ ASSERT(table()->IsHashTable() || table()->IsUndefined()); |
+} |
+ |
+ |
+void JSMap::JSMapVerify() { |
+ CHECK(IsJSMap()); |
+ JSObjectVerify(); |
+ VerifyHeapPointer(table()); |
+ ASSERT(table()->IsHashTable() || table()->IsUndefined()); |
+} |
+ |
+ |
void JSWeakMap::JSWeakMapVerify() { |
CHECK(IsJSWeakMap()); |
JSObjectVerify(); |