| Index: src/objects-debug.cc
|
| ===================================================================
|
| --- src/objects-debug.cc (revision 9327)
|
| +++ src/objects-debug.cc (working copy)
|
| @@ -94,6 +94,9 @@
|
| case BYTE_ARRAY_TYPE:
|
| ByteArray::cast(this)->ByteArrayVerify();
|
| break;
|
| + case FREE_SPACE_TYPE:
|
| + FreeSpace::cast(this)->FreeSpaceVerify();
|
| + break;
|
| case EXTERNAL_PIXEL_ARRAY_TYPE:
|
| ExternalPixelArray::cast(this)->ExternalPixelArrayVerify();
|
| break;
|
| @@ -207,6 +210,11 @@
|
| }
|
|
|
|
|
| +void FreeSpace::FreeSpaceVerify() {
|
| + ASSERT(IsFreeSpace());
|
| +}
|
| +
|
| +
|
| void ExternalPixelArray::ExternalPixelArrayVerify() {
|
| ASSERT(IsExternalPixelArray());
|
| }
|
| @@ -387,6 +395,7 @@
|
| CHECK(IsJSFunction());
|
| VerifyObjectField(kPrototypeOrInitialMapOffset);
|
| VerifyObjectField(kNextFunctionLinkOffset);
|
| + CHECK(code()->IsCode());
|
| CHECK(next_function_link()->IsUndefined() ||
|
| next_function_link()->IsJSFunction());
|
| }
|
| @@ -463,6 +472,7 @@
|
| void Code::CodeVerify() {
|
| CHECK(IsAligned(reinterpret_cast<intptr_t>(instruction_start()),
|
| kCodeAlignment));
|
| + relocation_info()->Verify();
|
| Address last_gc_pc = NULL;
|
| for (RelocIterator it(this); !it.done(); it.next()) {
|
| it.rinfo()->Verify();
|
|
|