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_TYPES_H_ | 5 #ifndef V8_COMPILER_TYPES_H_ |
6 #define V8_COMPILER_TYPES_H_ | 6 #define V8_COMPILER_TYPES_H_ |
7 | 7 |
8 #include "src/base/compiler-specific.h" | 8 #include "src/base/compiler-specific.h" |
9 #include "src/conversions.h" | 9 #include "src/conversions.h" |
10 #include "src/globals.h" | 10 #include "src/globals.h" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 V(Symbol, 1u << 12) \ | 116 V(Symbol, 1u << 12) \ |
117 V(InternalizedString, 1u << 13) \ | 117 V(InternalizedString, 1u << 13) \ |
118 V(OtherString, 1u << 14) \ | 118 V(OtherString, 1u << 14) \ |
119 V(Simd, 1u << 15) \ | 119 V(Simd, 1u << 15) \ |
120 V(OtherObject, 1u << 17) \ | 120 V(OtherObject, 1u << 17) \ |
121 V(OtherUndetectable, 1u << 16) \ | 121 V(OtherUndetectable, 1u << 16) \ |
122 V(Proxy, 1u << 18) \ | 122 V(Proxy, 1u << 18) \ |
123 V(Function, 1u << 19) \ | 123 V(Function, 1u << 19) \ |
124 V(Hole, 1u << 20) \ | 124 V(Hole, 1u << 20) \ |
125 V(OtherInternal, 1u << 21) \ | 125 V(OtherInternal, 1u << 21) \ |
| 126 V(ExternalPointer, 1u << 22) \ |
126 \ | 127 \ |
127 V(Signed31, kUnsigned30 | kNegative31) \ | 128 V(Signed31, kUnsigned30 | kNegative31) \ |
128 V(Signed32, kSigned31 | kOtherUnsigned31 | kOtherSigned32) \ | 129 V(Signed32, kSigned31 | kOtherUnsigned31 | kOtherSigned32) \ |
129 V(Signed32OrMinusZero, kSigned32 | kMinusZero) \ | 130 V(Signed32OrMinusZero, kSigned32 | kMinusZero) \ |
130 V(Signed32OrMinusZeroOrNaN, kSigned32 | kMinusZero | kNaN) \ | 131 V(Signed32OrMinusZeroOrNaN, kSigned32 | kMinusZero | kNaN) \ |
131 V(Negative32, kNegative31 | kOtherSigned32) \ | 132 V(Negative32, kNegative31 | kOtherSigned32) \ |
132 V(Unsigned31, kUnsigned30 | kOtherUnsigned31) \ | 133 V(Unsigned31, kUnsigned30 | kOtherUnsigned31) \ |
133 V(Unsigned32, kUnsigned30 | kOtherUnsigned31 | \ | 134 V(Unsigned32, kUnsigned30 | kOtherUnsigned31 | \ |
134 kOtherUnsigned32) \ | 135 kOtherUnsigned32) \ |
135 V(Unsigned32OrMinusZero, kUnsigned32 | kMinusZero) \ | 136 V(Unsigned32OrMinusZero, kUnsigned32 | kMinusZero) \ |
(...skipping 17 matching lines...) Expand all Loading... |
153 V(NumberOrString, kNumber | kString) \ | 154 V(NumberOrString, kNumber | kString) \ |
154 V(NumberOrUndefined, kNumber | kUndefined) \ | 155 V(NumberOrUndefined, kNumber | kUndefined) \ |
155 V(PlainPrimitive, kNumberOrString | kBoolean | kNullOrUndefined) \ | 156 V(PlainPrimitive, kNumberOrString | kBoolean | kNullOrUndefined) \ |
156 V(Primitive, kSymbol | kSimd | kPlainPrimitive) \ | 157 V(Primitive, kSymbol | kSimd | kPlainPrimitive) \ |
157 V(DetectableReceiver, kFunction | kOtherObject | kProxy) \ | 158 V(DetectableReceiver, kFunction | kOtherObject | kProxy) \ |
158 V(Object, kFunction | kOtherObject | kOtherUndetectable) \ | 159 V(Object, kFunction | kOtherObject | kOtherUndetectable) \ |
159 V(Receiver, kObject | kProxy) \ | 160 V(Receiver, kObject | kProxy) \ |
160 V(StringOrReceiver, kString | kReceiver) \ | 161 V(StringOrReceiver, kString | kReceiver) \ |
161 V(Unique, kBoolean | kUniqueName | kNull | kUndefined | \ | 162 V(Unique, kBoolean | kUniqueName | kNull | kUndefined | \ |
162 kReceiver) \ | 163 kReceiver) \ |
163 V(Internal, kHole | kOtherInternal) \ | 164 V(Internal, kHole | kExternalPointer | kOtherInternal) \ |
164 V(NonInternal, kPrimitive | kReceiver) \ | 165 V(NonInternal, kPrimitive | kReceiver) \ |
165 V(NonNumber, kUnique | kString | kInternal) \ | 166 V(NonNumber, kUnique | kString | kInternal) \ |
166 V(Any, 0xfffffffeu) | 167 V(Any, 0xfffffffeu) |
167 | 168 |
168 // clang-format on | 169 // clang-format on |
169 | 170 |
170 /* | 171 /* |
171 * The following diagrams show how integers (in the mathematical sense) are | 172 * The following diagrams show how integers (in the mathematical sense) are |
172 * divided among the different atomic numerical types. | 173 * divided among the different atomic numerical types. |
173 * | 174 * |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 RangeType::Limits* limits, Zone* zone); | 642 RangeType::Limits* limits, Zone* zone); |
642 static Type* NormalizeUnion(Type* unioned, int size, Zone* zone); | 643 static Type* NormalizeUnion(Type* unioned, int size, Zone* zone); |
643 static Type* NormalizeRangeAndBitset(Type* range, bitset* bits, Zone* zone); | 644 static Type* NormalizeRangeAndBitset(Type* range, bitset* bits, Zone* zone); |
644 }; | 645 }; |
645 | 646 |
646 } // namespace compiler | 647 } // namespace compiler |
647 } // namespace internal | 648 } // namespace internal |
648 } // namespace v8 | 649 } // namespace v8 |
649 | 650 |
650 #endif // V8_COMPILER_TYPES_H_ | 651 #endif // V8_COMPILER_TYPES_H_ |
OLD | NEW |