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_MIPS | 10 #if V8_TARGET_ARCH_MIPS |
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
584 } | 584 } |
585 end = cur + words; | 585 end = cur + words; |
586 } | 586 } |
587 | 587 |
588 while (cur < end) { | 588 while (cur < end) { |
589 PrintF(" 0x%08x: 0x%08x %10d", | 589 PrintF(" 0x%08x: 0x%08x %10d", |
590 reinterpret_cast<intptr_t>(cur), *cur, *cur); | 590 reinterpret_cast<intptr_t>(cur), *cur, *cur); |
591 HeapObject* obj = reinterpret_cast<HeapObject*>(*cur); | 591 HeapObject* obj = reinterpret_cast<HeapObject*>(*cur); |
592 int value = *cur; | 592 int value = *cur; |
593 Heap* current_heap = sim_->isolate_->heap(); | 593 Heap* current_heap = sim_->isolate_->heap(); |
594 if (((value & 1) == 0) || current_heap->Contains(obj)) { | 594 if (((value & 1) == 0) || |
| 595 current_heap->ContainsSlow(obj->address())) { |
595 PrintF(" ("); | 596 PrintF(" ("); |
596 if ((value & 1) == 0) { | 597 if ((value & 1) == 0) { |
597 PrintF("smi %d", value / 2); | 598 PrintF("smi %d", value / 2); |
598 } else { | 599 } else { |
599 obj->ShortPrint(); | 600 obj->ShortPrint(); |
600 } | 601 } |
601 PrintF(")"); | 602 PrintF(")"); |
602 } | 603 } |
603 PrintF("\n"); | 604 PrintF("\n"); |
604 cur++; | 605 cur++; |
(...skipping 3996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4601 | 4602 |
4602 | 4603 |
4603 #undef UNSUPPORTED | 4604 #undef UNSUPPORTED |
4604 | 4605 |
4605 } // namespace internal | 4606 } // namespace internal |
4606 } // namespace v8 | 4607 } // namespace v8 |
4607 | 4608 |
4608 #endif // USE_SIMULATOR | 4609 #endif // USE_SIMULATOR |
4609 | 4610 |
4610 #endif // V8_TARGET_ARCH_MIPS | 4611 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |