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_COMPILER_MACHINE_TYPE_H_ | 5 #ifndef V8_COMPILER_MACHINE_TYPE_H_ |
6 #define V8_COMPILER_MACHINE_TYPE_H_ | 6 #define V8_COMPILER_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 21 matching lines...) Expand all Loading... |
32 kTypeBool = 1 << 8, | 32 kTypeBool = 1 << 8, |
33 kTypeInt32 = 1 << 9, | 33 kTypeInt32 = 1 << 9, |
34 kTypeUint32 = 1 << 10, | 34 kTypeUint32 = 1 << 10, |
35 kTypeInt64 = 1 << 11, | 35 kTypeInt64 = 1 << 11, |
36 kTypeUint64 = 1 << 12, | 36 kTypeUint64 = 1 << 12, |
37 kTypeNumber = 1 << 13, | 37 kTypeNumber = 1 << 13, |
38 kTypeAny = 1 << 14, | 38 kTypeAny = 1 << 14, |
39 | 39 |
40 // Machine types. | 40 // Machine types. |
41 kMachNone = 0, | 41 kMachNone = 0, |
| 42 kMachBool = kRepBit | kTypeBool, |
42 kMachFloat32 = kRepFloat32 | kTypeNumber, | 43 kMachFloat32 = kRepFloat32 | kTypeNumber, |
43 kMachFloat64 = kRepFloat64 | kTypeNumber, | 44 kMachFloat64 = kRepFloat64 | kTypeNumber, |
44 kMachInt8 = kRepWord8 | kTypeInt32, | 45 kMachInt8 = kRepWord8 | kTypeInt32, |
45 kMachUint8 = kRepWord8 | kTypeUint32, | 46 kMachUint8 = kRepWord8 | kTypeUint32, |
46 kMachInt16 = kRepWord16 | kTypeInt32, | 47 kMachInt16 = kRepWord16 | kTypeInt32, |
47 kMachUint16 = kRepWord16 | kTypeUint32, | 48 kMachUint16 = kRepWord16 | kTypeUint32, |
48 kMachInt32 = kRepWord32 | kTypeInt32, | 49 kMachInt32 = kRepWord32 | kTypeInt32, |
49 kMachUint32 = kRepWord32 | kTypeUint32, | 50 kMachUint32 = kRepWord32 | kTypeUint32, |
50 kMachInt64 = kRepWord64 | kTypeInt64, | 51 kMachInt64 = kRepWord64 | kTypeInt64, |
51 kMachUint64 = kRepWord64 | kTypeUint64, | 52 kMachUint64 = kRepWord64 | kTypeUint64, |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 size_t parameter_count_; | 164 size_t parameter_count_; |
164 T* reps_; | 165 T* reps_; |
165 }; | 166 }; |
166 | 167 |
167 typedef Signature<MachineType> MachineSignature; | 168 typedef Signature<MachineType> MachineSignature; |
168 } // namespace compiler | 169 } // namespace compiler |
169 } // namespace internal | 170 } // namespace internal |
170 } // namespace v8 | 171 } // namespace v8 |
171 | 172 |
172 #endif // V8_COMPILER_MACHINE_TYPE_H_ | 173 #endif // V8_COMPILER_MACHINE_TYPE_H_ |
OLD | NEW |