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

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

Issue 1687113002: PPC: [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: 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/ppc/macro-assembler-ppc.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 <stdarg.h> 5 #include <stdarg.h>
6 #include <stdlib.h> 6 #include <stdlib.h>
7 #include <cmath> 7 #include <cmath>
8 8
9 #if V8_TARGET_ARCH_PPC 9 #if V8_TARGET_ARCH_PPC
10 10
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 } 440 }
441 } 441 }
442 end = cur + words; 442 end = cur + words;
443 443
444 while (cur < end) { 444 while (cur < end) {
445 PrintF(" 0x%08" V8PRIxPTR ": 0x%08" V8PRIxPTR " %10" V8PRIdPTR, 445 PrintF(" 0x%08" V8PRIxPTR ": 0x%08" V8PRIxPTR " %10" V8PRIdPTR,
446 reinterpret_cast<intptr_t>(cur), *cur, *cur); 446 reinterpret_cast<intptr_t>(cur), *cur, *cur);
447 HeapObject* obj = reinterpret_cast<HeapObject*>(*cur); 447 HeapObject* obj = reinterpret_cast<HeapObject*>(*cur);
448 intptr_t value = *cur; 448 intptr_t value = *cur;
449 Heap* current_heap = sim_->isolate_->heap(); 449 Heap* current_heap = sim_->isolate_->heap();
450 if (((value & 1) == 0) || current_heap->Contains(obj)) { 450 if (((value & 1) == 0) ||
451 current_heap->ContainsSlow(obj->address())) {
451 PrintF(" ("); 452 PrintF(" (");
452 if ((value & 1) == 0) { 453 if ((value & 1) == 0) {
453 PrintF("smi %d", PlatformSmiTagging::SmiToInt(obj)); 454 PrintF("smi %d", PlatformSmiTagging::SmiToInt(obj));
454 } else { 455 } else {
455 obj->ShortPrint(); 456 obj->ShortPrint();
456 } 457 }
457 PrintF(")"); 458 PrintF(")");
458 } 459 }
459 PrintF("\n"); 460 PrintF("\n");
460 cur++; 461 cur++;
(...skipping 3631 matching lines...) Expand 10 before | Expand all | Expand 10 after
4092 uintptr_t* stack_slot = reinterpret_cast<uintptr_t*>(current_sp); 4093 uintptr_t* stack_slot = reinterpret_cast<uintptr_t*>(current_sp);
4093 uintptr_t address = *stack_slot; 4094 uintptr_t address = *stack_slot;
4094 set_register(sp, current_sp + sizeof(uintptr_t)); 4095 set_register(sp, current_sp + sizeof(uintptr_t));
4095 return address; 4096 return address;
4096 } 4097 }
4097 } // namespace internal 4098 } // namespace internal
4098 } // namespace v8 4099 } // namespace v8
4099 4100
4100 #endif // USE_SIMULATOR 4101 #endif // USE_SIMULATOR
4101 #endif // V8_TARGET_ARCH_PPC 4102 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/ppc/macro-assembler-ppc.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698