OLD | NEW |
---|---|
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 <stdlib.h> | 5 #include <stdlib.h> |
6 #include <cmath> | 6 #include <cmath> |
7 #include <cstdarg> | 7 #include <cstdarg> |
8 | 8 |
9 #if V8_TARGET_ARCH_ARM64 | 9 #if V8_TARGET_ARCH_ARM64 |
10 | 10 |
(...skipping 3522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3533 UNREACHABLE(); | 3533 UNREACHABLE(); |
3534 } | 3534 } |
3535 end = cur + words; | 3535 end = cur + words; |
3536 | 3536 |
3537 while (cur < end) { | 3537 while (cur < end) { |
3538 PrintF(" 0x%016" PRIx64 ": 0x%016" PRIx64 " %10" PRId64, | 3538 PrintF(" 0x%016" PRIx64 ": 0x%016" PRIx64 " %10" PRId64, |
3539 reinterpret_cast<uint64_t>(cur), *cur, *cur); | 3539 reinterpret_cast<uint64_t>(cur), *cur, *cur); |
3540 HeapObject* obj = reinterpret_cast<HeapObject*>(*cur); | 3540 HeapObject* obj = reinterpret_cast<HeapObject*>(*cur); |
3541 int64_t value = *cur; | 3541 int64_t value = *cur; |
3542 Heap* current_heap = isolate_->heap(); | 3542 Heap* current_heap = isolate_->heap(); |
3543 if (((value & 1) == 0) || current_heap->Contains(obj)) { | 3543 if (((value & 1) == 0) || |
3544 current_heap->ContainsSlow(obj->address())) { | |
Hannes Payer (out of office)
2016/02/09 14:40:22
Why ContainsSlow here? This is not a verifier meth
Michael Lippautz
2016/02/09 14:50:28
As above.
| |
3544 PrintF(" ("); | 3545 PrintF(" ("); |
3545 if ((value & kSmiTagMask) == 0) { | 3546 if ((value & kSmiTagMask) == 0) { |
3546 STATIC_ASSERT(kSmiValueSize == 32); | 3547 STATIC_ASSERT(kSmiValueSize == 32); |
3547 int32_t untagged = (value >> kSmiShift) & 0xffffffff; | 3548 int32_t untagged = (value >> kSmiShift) & 0xffffffff; |
3548 PrintF("smi %" PRId32, untagged); | 3549 PrintF("smi %" PRId32, untagged); |
3549 } else { | 3550 } else { |
3550 obj->ShortPrint(); | 3551 obj->ShortPrint(); |
3551 } | 3552 } |
3552 PrintF(")"); | 3553 PrintF(")"); |
3553 } | 3554 } |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3867 delete[] format; | 3868 delete[] format; |
3868 } | 3869 } |
3869 | 3870 |
3870 | 3871 |
3871 #endif // USE_SIMULATOR | 3872 #endif // USE_SIMULATOR |
3872 | 3873 |
3873 } // namespace internal | 3874 } // namespace internal |
3874 } // namespace v8 | 3875 } // namespace v8 |
3875 | 3876 |
3876 #endif // V8_TARGET_ARCH_ARM64 | 3877 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |