| OLD | NEW |
| 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" |
| 11 #include "vm/log.h" |
| 11 | 12 |
| 12 namespace dart { | 13 namespace dart { |
| 13 | 14 |
| 14 | 15 |
| 15 class BufferFormatter; | 16 class BufferFormatter; |
| 16 class ConstantInstr; | 17 class ConstantInstr; |
| 17 class Definition; | 18 class Definition; |
| 18 class PairLocation; | 19 class PairLocation; |
| 19 class Value; | 20 class Value; |
| 20 | 21 |
| (...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 509 } else { | 510 } else { |
| 510 UNREACHABLE(); | 511 UNREACHABLE(); |
| 511 return false; | 512 return false; |
| 512 } | 513 } |
| 513 } | 514 } |
| 514 | 515 |
| 515 void DebugPrint() { | 516 void DebugPrint() { |
| 516 for (intptr_t i = 0; i < kNumberOfCpuRegisters; i++) { | 517 for (intptr_t i = 0; i < kNumberOfCpuRegisters; i++) { |
| 517 Register r = static_cast<Register>(i); | 518 Register r = static_cast<Register>(i); |
| 518 if (ContainsRegister(r)) { | 519 if (ContainsRegister(r)) { |
| 519 OS::Print("%s %s\n", Assembler::RegisterName(r), | 520 ISL_Print("%s %s\n", Assembler::RegisterName(r), |
| 520 IsTagged(r) ? "tagged" : "untagged"); | 521 IsTagged(r) ? "tagged" : "untagged"); |
| 521 } | 522 } |
| 522 } | 523 } |
| 523 | 524 |
| 524 for (intptr_t i = 0; i < kNumberOfFpuRegisters; i++) { | 525 for (intptr_t i = 0; i < kNumberOfFpuRegisters; i++) { |
| 525 FpuRegister r = static_cast<FpuRegister>(i); | 526 FpuRegister r = static_cast<FpuRegister>(i); |
| 526 if (ContainsFpuRegister(r)) { | 527 if (ContainsFpuRegister(r)) { |
| 527 OS::Print("%s\n", Assembler::FpuRegisterName(r)); | 528 ISL_Print("%s\n", Assembler::FpuRegisterName(r)); |
| 528 } | 529 } |
| 529 } | 530 } |
| 530 } | 531 } |
| 531 | 532 |
| 532 void MarkUntagged(Location loc) { | 533 void MarkUntagged(Location loc) { |
| 533 ASSERT(loc.IsRegister()); | 534 ASSERT(loc.IsRegister()); |
| 534 untagged_cpu_registers_.Add(loc.reg()); | 535 untagged_cpu_registers_.Add(loc.reg()); |
| 535 } | 536 } |
| 536 | 537 |
| 537 bool IsTagged(Register reg) const { | 538 bool IsTagged(Register reg) const { |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 702 | 703 |
| 703 #if defined(DEBUG) | 704 #if defined(DEBUG) |
| 704 intptr_t writable_inputs_; | 705 intptr_t writable_inputs_; |
| 705 #endif | 706 #endif |
| 706 }; | 707 }; |
| 707 | 708 |
| 708 | 709 |
| 709 } // namespace dart | 710 } // namespace dart |
| 710 | 711 |
| 711 #endif // VM_LOCATIONS_H_ | 712 #endif // VM_LOCATIONS_H_ |
| OLD | NEW |