| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/objects.h" | 5 #include "src/objects.h" |
| 6 | 6 |
| 7 #include "src/bootstrapper.h" | 7 #include "src/bootstrapper.h" |
| 8 #include "src/disasm.h" | 8 #include "src/disasm.h" |
| 9 #include "src/disassembler.h" | 9 #include "src/disassembler.h" |
| 10 #include "src/field-type.h" | 10 #include "src/field-type.h" |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 void Simd128Value::Simd128ValueVerify() { CHECK(IsSimd128Value()); } | 222 void Simd128Value::Simd128ValueVerify() { CHECK(IsSimd128Value()); } |
| 223 | 223 |
| 224 | 224 |
| 225 void ByteArray::ByteArrayVerify() { | 225 void ByteArray::ByteArrayVerify() { |
| 226 CHECK(IsByteArray()); | 226 CHECK(IsByteArray()); |
| 227 } | 227 } |
| 228 | 228 |
| 229 | 229 |
| 230 void BytecodeArray::BytecodeArrayVerify() { | 230 void BytecodeArray::BytecodeArrayVerify() { |
| 231 // TODO(oth): Walk bytecodes and immediate values to validate sanity. | 231 // TODO(oth): Walk bytecodes and immediate values to validate sanity. |
| 232 // - All bytecodes are known and well formed. |
| 233 // - Jumps must go to new instructions starts. |
| 234 // - No Illegal bytecodes. |
| 235 // - No consecutive sequences of prefix Wide / ExtraWide. |
| 232 CHECK(IsBytecodeArray()); | 236 CHECK(IsBytecodeArray()); |
| 233 CHECK(constant_pool()->IsFixedArray()); | 237 CHECK(constant_pool()->IsFixedArray()); |
| 234 VerifyHeapPointer(constant_pool()); | 238 VerifyHeapPointer(constant_pool()); |
| 235 } | 239 } |
| 236 | 240 |
| 237 | 241 |
| 238 void FreeSpace::FreeSpaceVerify() { | 242 void FreeSpace::FreeSpaceVerify() { |
| 239 CHECK(IsFreeSpace()); | 243 CHECK(IsFreeSpace()); |
| 240 } | 244 } |
| 241 | 245 |
| (...skipping 1079 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1321 | 1325 |
| 1322 // Both are done at the same time. | 1326 // Both are done at the same time. |
| 1323 CHECK_EQ(new_it.done(), old_it.done()); | 1327 CHECK_EQ(new_it.done(), old_it.done()); |
| 1324 } | 1328 } |
| 1325 | 1329 |
| 1326 | 1330 |
| 1327 #endif // DEBUG | 1331 #endif // DEBUG |
| 1328 | 1332 |
| 1329 } // namespace internal | 1333 } // namespace internal |
| 1330 } // namespace v8 | 1334 } // namespace v8 |
| OLD | NEW |