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

Side by Side Diff: src/mips64/simulator-mips64.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: mips ports 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
« no previous file with comments | « src/mips64/macro-assembler-mips64.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 4325 matching lines...) Expand 10 before | Expand all | Expand 10 after
4860 } 4861 }
4861 4862
4862 4863
4863 #undef UNSUPPORTED 4864 #undef UNSUPPORTED
4864 } // namespace internal 4865 } // namespace internal
4865 } // namespace v8 4866 } // namespace v8
4866 4867
4867 #endif // USE_SIMULATOR 4868 #endif // USE_SIMULATOR
4868 4869
4869 #endif // V8_TARGET_ARCH_MIPS64 4870 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/macro-assembler-mips64.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698