| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 <limits.h> | 5 #include <limits.h> |
| 6 #include <stdarg.h> | 6 #include <stdarg.h> |
| 7 #include <stdlib.h> | 7 #include <stdlib.h> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 | 9 |
| 10 #if V8_TARGET_ARCH_MIPS64 | 10 #if V8_TARGET_ARCH_MIPS64 |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 } | 514 } |
| 515 } | 515 } |
| 516 end = cur + words; | 516 end = cur + words; |
| 517 | 517 |
| 518 while (cur < end) { | 518 while (cur < end) { |
| 519 PrintF(" 0x%012lx: 0x%016lx %14ld", | 519 PrintF(" 0x%012lx: 0x%016lx %14ld", |
| 520 reinterpret_cast<intptr_t>(cur), *cur, *cur); | 520 reinterpret_cast<intptr_t>(cur), *cur, *cur); |
| 521 HeapObject* obj = reinterpret_cast<HeapObject*>(*cur); | 521 HeapObject* obj = reinterpret_cast<HeapObject*>(*cur); |
| 522 int64_t value = *cur; | 522 int64_t value = *cur; |
| 523 Heap* current_heap = sim_->isolate_->heap(); | 523 Heap* current_heap = sim_->isolate_->heap(); |
| 524 if (((value & 1) == 0) || current_heap->Contains(obj)) { | 524 if (((value & 1) == 0) || |
| 525 current_heap->ContainsSlow(obj->address())) { |
| 525 PrintF(" ("); | 526 PrintF(" ("); |
| 526 if ((value & 1) == 0) { | 527 if ((value & 1) == 0) { |
| 527 PrintF("smi %d", static_cast<int>(value >> 32)); | 528 PrintF("smi %d", static_cast<int>(value >> 32)); |
| 528 } else { | 529 } else { |
| 529 obj->ShortPrint(); | 530 obj->ShortPrint(); |
| 530 } | 531 } |
| 531 PrintF(")"); | 532 PrintF(")"); |
| 532 } | 533 } |
| 533 PrintF("\n"); | 534 PrintF("\n"); |
| 534 cur++; | 535 cur++; |
| (...skipping 4348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4883 } | 4884 } |
| 4884 | 4885 |
| 4885 | 4886 |
| 4886 #undef UNSUPPORTED | 4887 #undef UNSUPPORTED |
| 4887 } // namespace internal | 4888 } // namespace internal |
| 4888 } // namespace v8 | 4889 } // namespace v8 |
| 4889 | 4890 |
| 4890 #endif // USE_SIMULATOR | 4891 #endif // USE_SIMULATOR |
| 4891 | 4892 |
| 4892 #endif // V8_TARGET_ARCH_MIPS64 | 4893 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |