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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 V(OrderedNumber, kPlainNumber | kMinusZero) \ | 212 V(OrderedNumber, kPlainNumber | kMinusZero) \ |
213 V(MinusZeroOrNaN, kMinusZero | kNaN) \ | 213 V(MinusZeroOrNaN, kMinusZero | kNaN) \ |
214 V(Number, kOrderedNumber | kNaN) \ | 214 V(Number, kOrderedNumber | kNaN) \ |
215 V(String, kInternalizedString | kOtherString) \ | 215 V(String, kInternalizedString | kOtherString) \ |
216 V(UniqueName, kSymbol | kInternalizedString) \ | 216 V(UniqueName, kSymbol | kInternalizedString) \ |
217 V(Name, kSymbol | kString) \ | 217 V(Name, kSymbol | kString) \ |
218 V(BooleanOrNumber, kBoolean | kNumber) \ | 218 V(BooleanOrNumber, kBoolean | kNumber) \ |
219 V(BooleanOrNullOrUndefined, kBoolean | kNull | kUndefined) \ | 219 V(BooleanOrNullOrUndefined, kBoolean | kNull | kUndefined) \ |
220 V(NullOrUndefined, kNull | kUndefined) \ | 220 V(NullOrUndefined, kNull | kUndefined) \ |
221 V(Undetectable, kNullOrUndefined | kOtherUndetectable) \ | 221 V(Undetectable, kNullOrUndefined | kOtherUndetectable) \ |
| 222 V(NumberOrSimdOrString, kNumber | kSimd | kString) \ |
222 V(NumberOrString, kNumber | kString) \ | 223 V(NumberOrString, kNumber | kString) \ |
223 V(NumberOrUndefined, kNumber | kUndefined) \ | 224 V(NumberOrUndefined, kNumber | kUndefined) \ |
224 V(PlainPrimitive, kNumberOrString | kBoolean | kNullOrUndefined) \ | 225 V(PlainPrimitive, kNumberOrString | kBoolean | kNullOrUndefined) \ |
225 V(Primitive, kSymbol | kSimd | kPlainPrimitive) \ | 226 V(Primitive, kSymbol | kSimd | kPlainPrimitive) \ |
226 V(DetectableReceiver, kFunction | kOtherObject | kProxy) \ | 227 V(DetectableReceiver, kFunction | kOtherObject | kProxy) \ |
227 V(Object, kFunction | kOtherObject | kOtherUndetectable) \ | 228 V(Object, kFunction | kOtherObject | kOtherUndetectable) \ |
228 V(Receiver, kObject | kProxy) \ | 229 V(Receiver, kObject | kProxy) \ |
229 V(StringOrReceiver, kString | kReceiver) \ | 230 V(StringOrReceiver, kString | kReceiver) \ |
230 V(Unique, kBoolean | kUniqueName | kNull | kUndefined | \ | 231 V(Unique, kBoolean | kUniqueName | kNull | kUndefined | \ |
231 kReceiver) \ | 232 kReceiver) \ |
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
962 | 963 |
963 bool Narrows(Bounds that) { | 964 bool Narrows(Bounds that) { |
964 return that.lower->Is(this->lower) && this->upper->Is(that.upper); | 965 return that.lower->Is(this->lower) && this->upper->Is(that.upper); |
965 } | 966 } |
966 }; | 967 }; |
967 | 968 |
968 } // namespace internal | 969 } // namespace internal |
969 } // namespace v8 | 970 } // namespace v8 |
970 | 971 |
971 #endif // V8_TYPES_H_ | 972 #endif // V8_TYPES_H_ |
OLD | NEW |