| OLD | NEW |
| 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 "src/compiler/instruction.h" | |
| 6 | |
| 7 #include "src/compiler/common-operator.h" | 5 #include "src/compiler/common-operator.h" |
| 8 #include "src/compiler/generic-node-inl.h" | 6 #include "src/compiler/generic-node-inl.h" |
| 9 #include "src/compiler/graph.h" | 7 #include "src/compiler/graph.h" |
| 8 #include "src/compiler/instruction.h" |
| 9 #include "src/macro-assembler.h" |
| 10 | 10 |
| 11 namespace v8 { | 11 namespace v8 { |
| 12 namespace internal { | 12 namespace internal { |
| 13 namespace compiler { | 13 namespace compiler { |
| 14 | 14 |
| 15 STATIC_ASSERT(kMaxGeneralRegisters >= Register::kNumRegisters); |
| 16 STATIC_ASSERT(kMaxDoubleRegisters >= DoubleRegister::kMaxNumRegisters); |
| 17 |
| 18 |
| 15 std::ostream& operator<<(std::ostream& os, const InstructionOperand& op) { | 19 std::ostream& operator<<(std::ostream& os, const InstructionOperand& op) { |
| 16 switch (op.kind()) { | 20 switch (op.kind()) { |
| 17 case InstructionOperand::INVALID: | 21 case InstructionOperand::INVALID: |
| 18 return os << "(0)"; | 22 return os << "(0)"; |
| 19 case InstructionOperand::UNALLOCATED: { | 23 case InstructionOperand::UNALLOCATED: { |
| 20 const UnallocatedOperand* unalloc = UnallocatedOperand::cast(&op); | 24 const UnallocatedOperand* unalloc = UnallocatedOperand::cast(&op); |
| 21 os << "v" << unalloc->virtual_register(); | 25 os << "v" << unalloc->virtual_register(); |
| 22 if (unalloc->basic_policy() == UnallocatedOperand::FIXED_SLOT) { | 26 if (unalloc->basic_policy() == UnallocatedOperand::FIXED_SLOT) { |
| 23 return os << "(=" << unalloc->fixed_slot_index() << "S)"; | 27 return os << "(=" << unalloc->fixed_slot_index() << "S)"; |
| 24 } | 28 } |
| (...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 os << " B" << succ_block->id(); | 655 os << " B" << succ_block->id(); |
| 652 } | 656 } |
| 653 os << "\n"; | 657 os << "\n"; |
| 654 } | 658 } |
| 655 return os; | 659 return os; |
| 656 } | 660 } |
| 657 | 661 |
| 658 } // namespace compiler | 662 } // namespace compiler |
| 659 } // namespace internal | 663 } // namespace internal |
| 660 } // namespace v8 | 664 } // namespace v8 |
| OLD | NEW |