Chromium Code Reviews| Index: src/objects-debug.cc |
| diff --git a/src/objects-debug.cc b/src/objects-debug.cc |
| index 626ff00931a3be3841bc5b216aff90279875e35d..1ed620b9edc25a78fbf238a27851279b7795407a 100644 |
| --- a/src/objects-debug.cc |
| +++ b/src/objects-debug.cc |
| @@ -403,7 +403,14 @@ void FixedDoubleArray::FixedDoubleArrayVerify() { |
| void ConstantPoolArray::ConstantPoolArrayVerify() { |
| + for (int i = 0; i < count_of_code_ptr_entries(); i++) { |
| + Address code_entry = get_code_ptr_entry(first_code_ptr_index() + i); |
| + VerifyPointer(Code::GetCodeFromTargetAddress(code_entry)); |
| + } |
| CHECK(IsConstantPoolArray()); |
|
Michael Starzinger
2014/03/10 15:00:38
nit: Let's move this check to the top of the metho
rmcilroy
2014/03/10 16:55:20
Done.
|
| + for (int i = 0; i < count_of_heap_ptr_entries(); i++) { |
| + VerifyObjectField(OffsetOfElementAt(first_heap_ptr_index() + i)); |
| + } |
| } |