Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: src/arm64/simulator-arm64.cc

Issue 1632913003: [heap] Move to page lookups for SemiSpace, NewSpace, and Heap containment methods (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: DCHECK in serializer Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698