| 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 #ifndef V8_MACHINE_TYPE_H_ | 5 #ifndef V8_MACHINE_TYPE_H_ |
| 6 #define V8_MACHINE_TYPE_H_ | 6 #define V8_MACHINE_TYPE_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 | 9 |
| 10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 return MachineType(MachineRepresentation::kWord32, | 112 return MachineType(MachineRepresentation::kWord32, |
| 113 MachineSemantic::kUint32); | 113 MachineSemantic::kUint32); |
| 114 } | 114 } |
| 115 static MachineType Int64() { | 115 static MachineType Int64() { |
| 116 return MachineType(MachineRepresentation::kWord64, MachineSemantic::kInt64); | 116 return MachineType(MachineRepresentation::kWord64, MachineSemantic::kInt64); |
| 117 } | 117 } |
| 118 static MachineType Uint64() { | 118 static MachineType Uint64() { |
| 119 return MachineType(MachineRepresentation::kWord64, | 119 return MachineType(MachineRepresentation::kWord64, |
| 120 MachineSemantic::kUint64); | 120 MachineSemantic::kUint64); |
| 121 } | 121 } |
| 122 static MachineType TaggedPointer() { |
| 123 return MachineType(MachineRepresentation::kTaggedPointer, |
| 124 MachineSemantic::kAny); |
| 125 } |
| 126 static MachineType TaggedSigned() { |
| 127 return MachineType(MachineRepresentation::kTaggedSigned, |
| 128 MachineSemantic::kInt32); |
| 129 } |
| 122 static MachineType AnyTagged() { | 130 static MachineType AnyTagged() { |
| 123 return MachineType(MachineRepresentation::kTagged, MachineSemantic::kAny); | 131 return MachineType(MachineRepresentation::kTagged, MachineSemantic::kAny); |
| 124 } | 132 } |
| 125 static MachineType Bool() { | 133 static MachineType Bool() { |
| 126 return MachineType(MachineRepresentation::kBit, MachineSemantic::kBool); | 134 return MachineType(MachineRepresentation::kBit, MachineSemantic::kBool); |
| 127 } | 135 } |
| 128 static MachineType TaggedBool() { | 136 static MachineType TaggedBool() { |
| 129 return MachineType(MachineRepresentation::kTagged, MachineSemantic::kBool); | 137 return MachineType(MachineRepresentation::kTagged, MachineSemantic::kBool); |
| 130 } | 138 } |
| 131 static MachineType None() { | 139 static MachineType None() { |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 UNREACHABLE(); | 248 UNREACHABLE(); |
| 241 return -1; | 249 return -1; |
| 242 } | 250 } |
| 243 | 251 |
| 244 typedef Signature<MachineType> MachineSignature; | 252 typedef Signature<MachineType> MachineSignature; |
| 245 | 253 |
| 246 } // namespace internal | 254 } // namespace internal |
| 247 } // namespace v8 | 255 } // namespace v8 |
| 248 | 256 |
| 249 #endif // V8_MACHINE_TYPE_H_ | 257 #endif // V8_MACHINE_TYPE_H_ |
| OLD | NEW |