| 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"; |
| 35 case MachineRepresentation::kTaggedSigned: | 41 case MachineRepresentation::kTaggedSigned: |
| 36 return "kRepTaggedSigned"; | 42 return "kRepTaggedSigned"; |
| 37 case MachineRepresentation::kTaggedPointer: | 43 case MachineRepresentation::kTaggedPointer: |
| 38 return "kRepTaggedPointer"; | 44 return "kRepTaggedPointer"; |
| 39 case MachineRepresentation::kTagged: | 45 case MachineRepresentation::kTagged: |
| 40 return "kRepTagged"; | 46 return "kRepTagged"; |
| 41 } | 47 } |
| 42 UNREACHABLE(); | 48 UNREACHABLE(); |
| 43 return nullptr; | 49 return nullptr; |
| 44 } | 50 } |
| (...skipping 30 matching lines...) Expand all Loading... |
| 75 } else if (type.semantic() == MachineSemantic::kNone) { | 81 } else if (type.semantic() == MachineSemantic::kNone) { |
| 76 return os << type.representation(); | 82 return os << type.representation(); |
| 77 } else { | 83 } else { |
| 78 return os << type.representation() << "|" << type.semantic(); | 84 return os << type.representation() << "|" << type.semantic(); |
| 79 } | 85 } |
| 80 return os; | 86 return os; |
| 81 } | 87 } |
| 82 | 88 |
| 83 } // namespace internal | 89 } // namespace internal |
| 84 } // namespace v8 | 90 } // namespace v8 |
| OLD | NEW |