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/macro-assembler.h" | 10 #include "src/macro-assembler.h" |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 | 218 |
219 | 219 |
220 void ByteArray::ByteArrayVerify() { | 220 void ByteArray::ByteArrayVerify() { |
221 CHECK(IsByteArray()); | 221 CHECK(IsByteArray()); |
222 } | 222 } |
223 | 223 |
224 | 224 |
225 void BytecodeArray::BytecodeArrayVerify() { | 225 void BytecodeArray::BytecodeArrayVerify() { |
226 // TODO(oth): Walk bytecodes and immediate values to validate sanity. | 226 // TODO(oth): Walk bytecodes and immediate values to validate sanity. |
227 CHECK(IsBytecodeArray()); | 227 CHECK(IsBytecodeArray()); |
| 228 CHECK(constant_pool()->IsFixedArray()); |
| 229 VerifyHeapPointer(constant_pool()); |
228 } | 230 } |
229 | 231 |
230 | 232 |
231 void FreeSpace::FreeSpaceVerify() { | 233 void FreeSpace::FreeSpaceVerify() { |
232 CHECK(IsFreeSpace()); | 234 CHECK(IsFreeSpace()); |
233 } | 235 } |
234 | 236 |
235 | 237 |
236 template <class Traits> | 238 template <class Traits> |
237 void FixedTypedArray<Traits>::FixedTypedArrayVerify() { | 239 void FixedTypedArray<Traits>::FixedTypedArrayVerify() { |
(...skipping 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1313 | 1315 |
1314 // Both are done at the same time. | 1316 // Both are done at the same time. |
1315 CHECK_EQ(new_it.done(), old_it.done()); | 1317 CHECK_EQ(new_it.done(), old_it.done()); |
1316 } | 1318 } |
1317 | 1319 |
1318 | 1320 |
1319 #endif // DEBUG | 1321 #endif // DEBUG |
1320 | 1322 |
1321 } // namespace internal | 1323 } // namespace internal |
1322 } // namespace v8 | 1324 } // namespace v8 |
OLD | NEW |