Index: src/objects-debug.cc |
diff --git a/src/objects-debug.cc b/src/objects-debug.cc |
index e0cb8c929487b999cb0c4d2b63f3d06f528ab31f..22e7760540bdd80f11e596130f4b896e0e92e7ca 100644 |
--- a/src/objects-debug.cc |
+++ b/src/objects-debug.cc |
@@ -95,6 +95,9 @@ void HeapObject::HeapObjectVerify() { |
case FIXED_DOUBLE_ARRAY_TYPE: |
FixedDoubleArray::cast(this)->FixedDoubleArrayVerify(); |
break; |
+ case CONSTANT_POOL_ARRAY_TYPE: |
+ ConstantPoolArray::cast(this)->ConstantPoolArrayVerify(); |
+ break; |
case BYTE_ARRAY_TYPE: |
ByteArray::cast(this)->ByteArrayVerify(); |
break; |
@@ -430,6 +433,11 @@ void FixedDoubleArray::FixedDoubleArrayVerify() { |
} |
+void ConstantPoolArray::ConstantPoolArrayVerify() { |
+ CHECK(IsConstantPoolArray()); |
+} |
+ |
+ |
void JSGeneratorObject::JSGeneratorObjectVerify() { |
// In an expression like "new g()", there can be a point where a generator |
// object is allocated but its fields are all undefined, as it hasn't yet been |