| 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 11 matching lines...) Expand all Loading... |
| 22 kWord16, | 22 kWord16, |
| 23 kWord32, | 23 kWord32, |
| 24 kWord64, | 24 kWord64, |
| 25 kTaggedSigned, | 25 kTaggedSigned, |
| 26 kTaggedPointer, | 26 kTaggedPointer, |
| 27 kTagged, | 27 kTagged, |
| 28 // FP representations must be last, and in order of increasing size. | 28 // FP representations must be last, and in order of increasing size. |
| 29 kFloat32, | 29 kFloat32, |
| 30 kFloat64, | 30 kFloat64, |
| 31 kSimd128, | 31 kSimd128, |
| 32 kFirstFPRepresentation = kFloat32 | 32 kFirstFPRepresentation = kFloat32, |
| 33 kLastRepresentation = kSimd128 |
| 33 }; | 34 }; |
| 34 | 35 |
| 36 static_assert(static_cast<int>(MachineRepresentation::kLastRepresentation) < |
| 37 kIntSize * kBitsPerByte, |
| 38 "Bit masks of MachineRepresentation should fit in an int"); |
| 39 |
| 35 const char* MachineReprToString(MachineRepresentation); | 40 const char* MachineReprToString(MachineRepresentation); |
| 36 | 41 |
| 37 enum class MachineSemantic : uint8_t { | 42 enum class MachineSemantic : uint8_t { |
| 38 kNone, | 43 kNone, |
| 39 kBool, | 44 kBool, |
| 40 kInt32, | 45 kInt32, |
| 41 kUint32, | 46 kUint32, |
| 42 kInt64, | 47 kInt64, |
| 43 kUint64, | 48 kUint64, |
| 44 kNumber, | 49 kNumber, |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 UNREACHABLE(); | 269 UNREACHABLE(); |
| 265 return -1; | 270 return -1; |
| 266 } | 271 } |
| 267 | 272 |
| 268 typedef Signature<MachineType> MachineSignature; | 273 typedef Signature<MachineType> MachineSignature; |
| 269 | 274 |
| 270 } // namespace internal | 275 } // namespace internal |
| 271 } // namespace v8 | 276 } // namespace v8 |
| 272 | 277 |
| 273 #endif // V8_MACHINE_TYPE_H_ | 278 #endif // V8_MACHINE_TYPE_H_ |
| OLD | NEW |