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/handles.h" | 9 #include "src/handles.h" |
10 #include "src/objects.h" | 10 #include "src/objects.h" |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 V(Unsigned32OrMinusZeroOrNaN, kUnsigned32 | kMinusZero | kNaN) \ | 213 V(Unsigned32OrMinusZeroOrNaN, kUnsigned32 | kMinusZero | kNaN) \ |
214 V(Integral32, kSigned32 | kUnsigned32) \ | 214 V(Integral32, kSigned32 | kUnsigned32) \ |
215 V(PlainNumber, kIntegral32 | kOtherNumber) \ | 215 V(PlainNumber, kIntegral32 | kOtherNumber) \ |
216 V(OrderedNumber, kPlainNumber | kMinusZero) \ | 216 V(OrderedNumber, kPlainNumber | kMinusZero) \ |
217 V(MinusZeroOrNaN, kMinusZero | kNaN) \ | 217 V(MinusZeroOrNaN, kMinusZero | kNaN) \ |
218 V(Number, kOrderedNumber | kNaN) \ | 218 V(Number, kOrderedNumber | kNaN) \ |
219 V(String, kInternalizedString | kOtherString) \ | 219 V(String, kInternalizedString | kOtherString) \ |
220 V(UniqueName, kSymbol | kInternalizedString) \ | 220 V(UniqueName, kSymbol | kInternalizedString) \ |
221 V(Name, kSymbol | kString) \ | 221 V(Name, kSymbol | kString) \ |
222 V(BooleanOrNumber, kBoolean | kNumber) \ | 222 V(BooleanOrNumber, kBoolean | kNumber) \ |
| 223 V(BooleanOrNullOrNumber, kBooleanOrNumber | kNull) \ |
223 V(BooleanOrNullOrUndefined, kBoolean | kNull | kUndefined) \ | 224 V(BooleanOrNullOrUndefined, kBoolean | kNull | kUndefined) \ |
| 225 V(NullOrNumber, kNull | kNumber) \ |
224 V(NullOrUndefined, kNull | kUndefined) \ | 226 V(NullOrUndefined, kNull | kUndefined) \ |
225 V(Undetectable, kNullOrUndefined | kOtherUndetectable) \ | 227 V(Undetectable, kNullOrUndefined | kOtherUndetectable) \ |
226 V(NumberOrOddball, kNumber | kNullOrUndefined | kBoolean) \ | 228 V(NumberOrOddball, kNumber | kNullOrUndefined | kBoolean) \ |
227 V(NumberOrSimdOrString, kNumber | kSimd | kString) \ | 229 V(NumberOrSimdOrString, kNumber | kSimd | kString) \ |
228 V(NumberOrString, kNumber | kString) \ | 230 V(NumberOrString, kNumber | kString) \ |
229 V(NumberOrUndefined, kNumber | kUndefined) \ | 231 V(NumberOrUndefined, kNumber | kUndefined) \ |
230 V(PlainPrimitive, kNumberOrString | kBoolean | kNullOrUndefined) \ | 232 V(PlainPrimitive, kNumberOrString | kBoolean | kNullOrUndefined) \ |
231 V(Primitive, kSymbol | kSimd | kPlainPrimitive) \ | 233 V(Primitive, kSymbol | kSimd | kPlainPrimitive) \ |
232 V(DetectableReceiver, kFunction | kOtherObject | kProxy) \ | 234 V(DetectableReceiver, kFunction | kOtherObject | kProxy) \ |
233 V(Object, kFunction | kOtherObject | kOtherUndetectable) \ | 235 V(Object, kFunction | kOtherObject | kOtherUndetectable) \ |
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
969 | 971 |
970 bool Narrows(Bounds that) { | 972 bool Narrows(Bounds that) { |
971 return that.lower->Is(this->lower) && this->upper->Is(that.upper); | 973 return that.lower->Is(this->lower) && this->upper->Is(that.upper); |
972 } | 974 } |
973 }; | 975 }; |
974 | 976 |
975 } // namespace internal | 977 } // namespace internal |
976 } // namespace v8 | 978 } // namespace v8 |
977 | 979 |
978 #endif // V8_TYPES_H_ | 980 #endif // V8_TYPES_H_ |
OLD | NEW |