| 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 4010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4615 | 4616 |
| 4616 | 4617 |
| 4617 #undef UNSUPPORTED | 4618 #undef UNSUPPORTED |
| 4618 | 4619 |
| 4619 } // namespace internal | 4620 } // namespace internal |
| 4620 } // namespace v8 | 4621 } // namespace v8 |
| 4621 | 4622 |
| 4622 #endif // USE_SIMULATOR | 4623 #endif // USE_SIMULATOR |
| 4623 | 4624 |
| 4624 #endif // V8_TARGET_ARCH_MIPS | 4625 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |