| Index: src/objects-debug.cc
|
| diff --git a/src/objects-debug.cc b/src/objects-debug.cc
|
| index 0be32b62906186b40e685cea218f4b54106ae4e7..b023b03aea39a2ea791ea0eacf6e1428eeced775 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());
|
|
|