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/common-operator.h" | 5 #include "src/compiler/common-operator.h" |
6 #include "src/compiler/graph.h" | 6 #include "src/compiler/graph.h" |
7 #include "src/compiler/instruction.h" | 7 #include "src/compiler/instruction.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 case InstructionOperand::IMMEDIATE: | 43 case InstructionOperand::IMMEDIATE: |
44 return os << "[immediate:" << op.index() << "]"; | 44 return os << "[immediate:" << op.index() << "]"; |
45 case InstructionOperand::STACK_SLOT: | 45 case InstructionOperand::STACK_SLOT: |
46 return os << "[stack:" << op.index() << "]"; | 46 return os << "[stack:" << op.index() << "]"; |
47 case InstructionOperand::DOUBLE_STACK_SLOT: | 47 case InstructionOperand::DOUBLE_STACK_SLOT: |
48 return os << "[double_stack:" << op.index() << "]"; | 48 return os << "[double_stack:" << op.index() << "]"; |
49 case InstructionOperand::REGISTER: | 49 case InstructionOperand::REGISTER: |
50 return os << "[" << conf->general_register_name(op.index()) << "|R]"; | 50 return os << "[" << conf->general_register_name(op.index()) << "|R]"; |
51 case InstructionOperand::DOUBLE_REGISTER: | 51 case InstructionOperand::DOUBLE_REGISTER: |
52 return os << "[" << conf->double_register_name(op.index()) << "|R]"; | 52 return os << "[" << conf->double_register_name(op.index()) << "|R]"; |
| 53 case InstructionOperand::INVALID: |
| 54 return os << "(x)"; |
53 } | 55 } |
54 UNREACHABLE(); | 56 UNREACHABLE(); |
55 return os; | 57 return os; |
56 } | 58 } |
57 | 59 |
58 | 60 |
59 template <InstructionOperand::Kind kOperandKind, int kNumCachedOperands> | 61 template <InstructionOperand::Kind kOperandKind, int kNumCachedOperands> |
60 SubKindOperand<kOperandKind, kNumCachedOperands>* | 62 SubKindOperand<kOperandKind, kNumCachedOperands>* |
61 SubKindOperand<kOperandKind, kNumCachedOperands>::cache = NULL; | 63 SubKindOperand<kOperandKind, kNumCachedOperands>::cache = NULL; |
62 | 64 |
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 os << " B" << succ_block->id(); | 736 os << " B" << succ_block->id(); |
735 } | 737 } |
736 os << "\n"; | 738 os << "\n"; |
737 } | 739 } |
738 return os; | 740 return os; |
739 } | 741 } |
740 | 742 |
741 } // namespace compiler | 743 } // namespace compiler |
742 } // namespace internal | 744 } // namespace internal |
743 } // namespace v8 | 745 } // namespace v8 |
OLD | NEW |