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 #include "src/compiler/schedule.h" | 8 #include "src/compiler/schedule.h" |
9 #include "src/compiler/state-values-utils.h" | 9 #include "src/compiler/state-values-utils.h" |
10 | 10 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 break; | 157 break; |
158 case MachineRepresentation::kWord64: | 158 case MachineRepresentation::kWord64: |
159 os << "|w64"; | 159 os << "|w64"; |
160 break; | 160 break; |
161 case MachineRepresentation::kFloat32: | 161 case MachineRepresentation::kFloat32: |
162 os << "|f32"; | 162 os << "|f32"; |
163 break; | 163 break; |
164 case MachineRepresentation::kFloat64: | 164 case MachineRepresentation::kFloat64: |
165 os << "|f64"; | 165 os << "|f64"; |
166 break; | 166 break; |
| 167 case MachineRepresentation::kSimd128: |
| 168 os << "|s128"; |
| 169 break; |
167 case MachineRepresentation::kTagged: | 170 case MachineRepresentation::kTagged: |
168 os << "|t"; | 171 os << "|t"; |
169 break; | 172 break; |
170 } | 173 } |
171 return os << "]"; | 174 return os << "]"; |
172 } | 175 } |
173 case InstructionOperand::INVALID: | 176 case InstructionOperand::INVALID: |
174 return os << "(x)"; | 177 return os << "(x)"; |
175 } | 178 } |
176 UNREACHABLE(); | 179 UNREACHABLE(); |
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
737 static MachineRepresentation FilterRepresentation(MachineRepresentation rep) { | 740 static MachineRepresentation FilterRepresentation(MachineRepresentation rep) { |
738 switch (rep) { | 741 switch (rep) { |
739 case MachineRepresentation::kBit: | 742 case MachineRepresentation::kBit: |
740 case MachineRepresentation::kWord8: | 743 case MachineRepresentation::kWord8: |
741 case MachineRepresentation::kWord16: | 744 case MachineRepresentation::kWord16: |
742 return InstructionSequence::DefaultRepresentation(); | 745 return InstructionSequence::DefaultRepresentation(); |
743 case MachineRepresentation::kWord32: | 746 case MachineRepresentation::kWord32: |
744 case MachineRepresentation::kWord64: | 747 case MachineRepresentation::kWord64: |
745 case MachineRepresentation::kFloat32: | 748 case MachineRepresentation::kFloat32: |
746 case MachineRepresentation::kFloat64: | 749 case MachineRepresentation::kFloat64: |
| 750 case MachineRepresentation::kSimd128: |
747 case MachineRepresentation::kTagged: | 751 case MachineRepresentation::kTagged: |
748 return rep; | 752 return rep; |
749 case MachineRepresentation::kNone: | 753 case MachineRepresentation::kNone: |
750 break; | 754 break; |
751 } | 755 } |
752 UNREACHABLE(); | 756 UNREACHABLE(); |
753 return MachineRepresentation::kNone; | 757 return MachineRepresentation::kNone; |
754 } | 758 } |
755 | 759 |
756 | 760 |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
976 } | 980 } |
977 for (int i = 0; i < code.InstructionBlockCount(); i++) { | 981 for (int i = 0; i < code.InstructionBlockCount(); i++) { |
978 printable.sequence_->PrintBlock(printable.register_configuration_, i); | 982 printable.sequence_->PrintBlock(printable.register_configuration_, i); |
979 } | 983 } |
980 return os; | 984 return os; |
981 } | 985 } |
982 | 986 |
983 } // namespace compiler | 987 } // namespace compiler |
984 } // namespace internal | 988 } // namespace internal |
985 } // namespace v8 | 989 } // namespace v8 |
OLD | NEW |