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

Side by Side Diff: src/mips/simulator-mips.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/mips/macro-assembler-mips.cc ('k') | src/mips64/macro-assembler-mips64.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_MIPS 10 #if V8_TARGET_ARCH_MIPS
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/mips/macro-assembler-mips.cc ('k') | src/mips64/macro-assembler-mips64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698