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/machine-type.h" | 5 #include "src/machine-type.h" |
6 #include "src/ostreams.h" | 6 #include "src/ostreams.h" |
7 | 7 |
8 namespace v8 { | 8 namespace v8 { |
9 namespace internal { | 9 namespace internal { |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 case MachineRepresentation::kWord32: | 25 case MachineRepresentation::kWord32: |
26 return "kRepWord32"; | 26 return "kRepWord32"; |
27 case MachineRepresentation::kWord64: | 27 case MachineRepresentation::kWord64: |
28 return "kRepWord64"; | 28 return "kRepWord64"; |
29 case MachineRepresentation::kFloat32: | 29 case MachineRepresentation::kFloat32: |
30 return "kRepFloat32"; | 30 return "kRepFloat32"; |
31 case MachineRepresentation::kFloat64: | 31 case MachineRepresentation::kFloat64: |
32 return "kRepFloat64"; | 32 return "kRepFloat64"; |
33 case MachineRepresentation::kSimd128: | 33 case MachineRepresentation::kSimd128: |
34 return "kRepSimd128"; | 34 return "kRepSimd128"; |
35 case MachineRepresentation::kSimd1x4: | |
36 return "kRepSimd1x4"; | |
37 case MachineRepresentation::kSimd1x8: | |
38 return "kRepSimd1x8"; | |
39 case MachineRepresentation::kSimd1x16: | |
40 return "kRepSimd1x16"; | |
41 case MachineRepresentation::kTaggedSigned: | 35 case MachineRepresentation::kTaggedSigned: |
42 return "kRepTaggedSigned"; | 36 return "kRepTaggedSigned"; |
43 case MachineRepresentation::kTaggedPointer: | 37 case MachineRepresentation::kTaggedPointer: |
44 return "kRepTaggedPointer"; | 38 return "kRepTaggedPointer"; |
45 case MachineRepresentation::kTagged: | 39 case MachineRepresentation::kTagged: |
46 return "kRepTagged"; | 40 return "kRepTagged"; |
47 } | 41 } |
48 UNREACHABLE(); | 42 UNREACHABLE(); |
49 } | 43 } |
50 | 44 |
(...skipping 28 matching lines...) Expand all Loading... |
79 } else if (type.semantic() == MachineSemantic::kNone) { | 73 } else if (type.semantic() == MachineSemantic::kNone) { |
80 return os << type.representation(); | 74 return os << type.representation(); |
81 } else { | 75 } else { |
82 return os << type.representation() << "|" << type.semantic(); | 76 return os << type.representation() << "|" << type.semantic(); |
83 } | 77 } |
84 return os; | 78 return os; |
85 } | 79 } |
86 | 80 |
87 } // namespace internal | 81 } // namespace internal |
88 } // namespace v8 | 82 } // namespace v8 |
OLD | NEW |