| 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::kTaggedSigned: |
| 36 return "kRepTaggedSigned"; |
| 37 case MachineRepresentation::kTaggedPointer: |
| 38 return "kRepTaggedPointer"; |
| 35 case MachineRepresentation::kTagged: | 39 case MachineRepresentation::kTagged: |
| 36 return "kRepTagged"; | 40 return "kRepTagged"; |
| 37 } | 41 } |
| 38 UNREACHABLE(); | 42 UNREACHABLE(); |
| 39 return nullptr; | 43 return nullptr; |
| 40 } | 44 } |
| 41 | 45 |
| 42 std::ostream& operator<<(std::ostream& os, MachineSemantic type) { | 46 std::ostream& operator<<(std::ostream& os, MachineSemantic type) { |
| 43 switch (type) { | 47 switch (type) { |
| 44 case MachineSemantic::kNone: | 48 case MachineSemantic::kNone: |
| (...skipping 26 matching lines...) Expand all Loading... |
| 71 } else if (type.semantic() == MachineSemantic::kNone) { | 75 } else if (type.semantic() == MachineSemantic::kNone) { |
| 72 return os << type.representation(); | 76 return os << type.representation(); |
| 73 } else { | 77 } else { |
| 74 return os << type.representation() << "|" << type.semantic(); | 78 return os << type.representation() << "|" << type.semantic(); |
| 75 } | 79 } |
| 76 return os; | 80 return os; |
| 77 } | 81 } |
| 78 | 82 |
| 79 } // namespace internal | 83 } // namespace internal |
| 80 } // namespace v8 | 84 } // namespace v8 |
| OLD | NEW |