| Index: src/objects-debug.cc
|
| diff --git a/src/objects-debug.cc b/src/objects-debug.cc
|
| index 69042f0191e1b41d1df133fd78eda9282b50a2c7..159324b7e2d49edd95e375faa67843addc81ef9f 100644
|
| --- a/src/objects-debug.cc
|
| +++ b/src/objects-debug.cc
|
| @@ -229,6 +229,10 @@ void ByteArray::ByteArrayVerify() {
|
|
|
| void BytecodeArray::BytecodeArrayVerify() {
|
| // TODO(oth): Walk bytecodes and immediate values to validate sanity.
|
| + // - All bytecodes are known and well formed.
|
| + // - Jumps must go to new instructions starts.
|
| + // - No Illegal bytecodes.
|
| + // - No consecutive sequences of prefix Wide / ExtraWide.
|
| CHECK(IsBytecodeArray());
|
| CHECK(constant_pool()->IsFixedArray());
|
| VerifyHeapPointer(constant_pool());
|
|
|