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

Side by Side Diff: runtime/vm/locations.h

Issue 1314673008: Migrate logging infrastructure Isolate->Thread (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix test. Created 5 years, 3 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 (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_LOCATIONS_H_ 5 #ifndef VM_LOCATIONS_H_
6 #define VM_LOCATIONS_H_ 6 #define VM_LOCATIONS_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/bitfield.h" 10 #include "vm/bitfield.h"
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 } else { 512 } else {
513 UNREACHABLE(); 513 UNREACHABLE();
514 return false; 514 return false;
515 } 515 }
516 } 516 }
517 517
518 void DebugPrint() { 518 void DebugPrint() {
519 for (intptr_t i = 0; i < kNumberOfCpuRegisters; i++) { 519 for (intptr_t i = 0; i < kNumberOfCpuRegisters; i++) {
520 Register r = static_cast<Register>(i); 520 Register r = static_cast<Register>(i);
521 if (ContainsRegister(r)) { 521 if (ContainsRegister(r)) {
522 ISL_Print("%s %s\n", Assembler::RegisterName(r), 522 THR_Print("%s %s\n", Assembler::RegisterName(r),
523 IsTagged(r) ? "tagged" : "untagged"); 523 IsTagged(r) ? "tagged" : "untagged");
524 } 524 }
525 } 525 }
526 526
527 for (intptr_t i = 0; i < kNumberOfFpuRegisters; i++) { 527 for (intptr_t i = 0; i < kNumberOfFpuRegisters; i++) {
528 FpuRegister r = static_cast<FpuRegister>(i); 528 FpuRegister r = static_cast<FpuRegister>(i);
529 if (ContainsFpuRegister(r)) { 529 if (ContainsFpuRegister(r)) {
530 ISL_Print("%s\n", Assembler::FpuRegisterName(r)); 530 THR_Print("%s\n", Assembler::FpuRegisterName(r));
531 } 531 }
532 } 532 }
533 } 533 }
534 534
535 void MarkUntagged(Location loc) { 535 void MarkUntagged(Location loc) {
536 ASSERT(loc.IsRegister()); 536 ASSERT(loc.IsRegister());
537 untagged_cpu_registers_.Add(loc.reg()); 537 untagged_cpu_registers_.Add(loc.reg());
538 } 538 }
539 539
540 bool HasUntaggedValues() const { 540 bool HasUntaggedValues() const {
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 709
710 #if defined(DEBUG) 710 #if defined(DEBUG)
711 intptr_t writable_inputs_; 711 intptr_t writable_inputs_;
712 #endif 712 #endif
713 }; 713 };
714 714
715 715
716 } // namespace dart 716 } // namespace dart
717 717
718 #endif // VM_LOCATIONS_H_ 718 #endif // VM_LOCATIONS_H_
OLDNEW
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/locations.cc » ('j') | runtime/vm/thread.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698