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_TYPES_H_ | 5 #ifndef V8_TYPES_H_ |
6 #define V8_TYPES_H_ | 6 #define V8_TYPES_H_ |
7 | 7 |
8 #include "src/conversions.h" | 8 #include "src/conversions.h" |
9 #include "src/factory.h" | 9 #include "src/factory.h" |
10 #include "src/handles.h" | 10 #include "src/handles.h" |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 V(Internal, 1u << 19 | REPRESENTATION(kTagged | kUntagged)) \ | 214 V(Internal, 1u << 19 | REPRESENTATION(kTagged | kUntagged)) \ |
215 \ | 215 \ |
216 V(Signed31, kUnsigned30 | kNegative31) \ | 216 V(Signed31, kUnsigned30 | kNegative31) \ |
217 V(Signed32, kSigned31 | kOtherUnsigned31 | kOtherSigned32) \ | 217 V(Signed32, kSigned31 | kOtherUnsigned31 | kOtherSigned32) \ |
218 V(Negative32, kNegative31 | kOtherSigned32) \ | 218 V(Negative32, kNegative31 | kOtherSigned32) \ |
219 V(Unsigned31, kUnsigned30 | kOtherUnsigned31) \ | 219 V(Unsigned31, kUnsigned30 | kOtherUnsigned31) \ |
220 V(Unsigned32, kUnsigned30 | kOtherUnsigned31 | kOtherUnsigned32) \ | 220 V(Unsigned32, kUnsigned30 | kOtherUnsigned31 | kOtherUnsigned32) \ |
221 V(Integral32, kSigned32 | kUnsigned32) \ | 221 V(Integral32, kSigned32 | kUnsigned32) \ |
222 V(PlainNumber, kIntegral32 | kOtherNumber) \ | 222 V(PlainNumber, kIntegral32 | kOtherNumber) \ |
223 V(OrderedNumber, kPlainNumber | kMinusZero) \ | 223 V(OrderedNumber, kPlainNumber | kMinusZero) \ |
| 224 V(MinusZeroOrNaN, kMinusZero | kNaN) \ |
224 V(Number, kOrderedNumber | kNaN) \ | 225 V(Number, kOrderedNumber | kNaN) \ |
225 V(String, kInternalizedString | kOtherString) \ | 226 V(String, kInternalizedString | kOtherString) \ |
226 V(UniqueName, kSymbol | kInternalizedString) \ | 227 V(UniqueName, kSymbol | kInternalizedString) \ |
227 V(Name, kSymbol | kString) \ | 228 V(Name, kSymbol | kString) \ |
| 229 V(BooleanOrNumber, kBoolean | kNumber) \ |
| 230 V(NullOrUndefined, kNull | kUndefined) \ |
228 V(NumberOrString, kNumber | kString) \ | 231 V(NumberOrString, kNumber | kString) \ |
229 V(PlainPrimitive, kNumberOrString | kBoolean | kNull | kUndefined) \ | 232 V(NumberOrUndefined, kNumber | kUndefined) \ |
| 233 V(PlainPrimitive, kNumberOrString | kBoolean | kNullOrUndefined) \ |
230 V(Primitive, kSymbol | kPlainPrimitive) \ | 234 V(Primitive, kSymbol | kPlainPrimitive) \ |
231 V(DetectableObject, kGlobalObject | kOtherObject) \ | 235 V(DetectableObject, kGlobalObject | kOtherObject) \ |
232 V(DetectableReceiver, kDetectableObject | kProxy) \ | 236 V(DetectableReceiver, kDetectableObject | kProxy) \ |
233 V(Detectable, kDetectableReceiver | kNumber | kName) \ | 237 V(Detectable, kDetectableReceiver | kNumber | kName) \ |
234 V(Object, kDetectableObject | kUndetectable) \ | 238 V(Object, kDetectableObject | kUndetectable) \ |
235 V(Receiver, kObject | kProxy) \ | 239 V(Receiver, kObject | kProxy) \ |
236 V(ReceiverOrUndefined, kReceiver | kUndefined) \ | 240 V(ReceiverOrUndefined, kReceiver | kUndefined) \ |
237 V(StringOrReceiver, kString | kReceiver) \ | 241 V(StringOrReceiver, kString | kReceiver) \ |
238 V(Unique, kBoolean | kUniqueName | kNull | kUndefined | \ | 242 V(Unique, kBoolean | kUniqueName | kNull | kUndefined | \ |
239 kReceiver) \ | 243 kReceiver) \ |
(...skipping 920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1160 bool Narrows(BoundsImpl that) { | 1164 bool Narrows(BoundsImpl that) { |
1161 return that.lower->Is(this->lower) && this->upper->Is(that.upper); | 1165 return that.lower->Is(this->lower) && this->upper->Is(that.upper); |
1162 } | 1166 } |
1163 }; | 1167 }; |
1164 | 1168 |
1165 typedef BoundsImpl<ZoneTypeConfig> Bounds; | 1169 typedef BoundsImpl<ZoneTypeConfig> Bounds; |
1166 | 1170 |
1167 } } // namespace v8::internal | 1171 } } // namespace v8::internal |
1168 | 1172 |
1169 #endif // V8_TYPES_H_ | 1173 #endif // V8_TYPES_H_ |
OLD | NEW |