| 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 V(NumberOrString, kNumber | kString) \ | 224 V(NumberOrString, kNumber | kString) \ |
| 225 V(NumberOrUndefined, kNumber | kUndefined) \ | 225 V(NumberOrUndefined, kNumber | kUndefined) \ |
| 226 V(PlainPrimitive, kNumberOrString | kBoolean | kNullOrUndefined) \ | 226 V(PlainPrimitive, kNumberOrString | kBoolean | kNullOrUndefined) \ |
| 227 V(Primitive, kSymbol | kSimd | kPlainPrimitive) \ | 227 V(Primitive, kSymbol | kSimd | kPlainPrimitive) \ |
| 228 V(DetectableReceiver, kFunction | kOtherObject | kProxy) \ | 228 V(DetectableReceiver, kFunction | kOtherObject | kProxy) \ |
| 229 V(Object, kFunction | kOtherObject | kOtherUndetectable) \ | 229 V(Object, kFunction | kOtherObject | kOtherUndetectable) \ |
| 230 V(Receiver, kObject | kProxy) \ | 230 V(Receiver, kObject | kProxy) \ |
| 231 V(StringOrReceiver, kString | kReceiver) \ | 231 V(StringOrReceiver, kString | kReceiver) \ |
| 232 V(Unique, kBoolean | kUniqueName | kNull | kUndefined | \ | 232 V(Unique, kBoolean | kUniqueName | kNull | kUndefined | \ |
| 233 kReceiver) \ | 233 kReceiver) \ |
| 234 V(NonInternal, kPrimitive | kReceiver) \ |
| 234 V(NonNumber, kUnique | kString | kInternal) \ | 235 V(NonNumber, kUnique | kString | kInternal) \ |
| 235 V(Any, 0xfffffffeu) | 236 V(Any, 0xfffffffeu) |
| 236 | 237 |
| 237 // clang-format on | 238 // clang-format on |
| 238 | 239 |
| 239 /* | 240 /* |
| 240 * The following diagrams show how integers (in the mathematical sense) are | 241 * The following diagrams show how integers (in the mathematical sense) are |
| 241 * divided among the different atomic numerical types. | 242 * divided among the different atomic numerical types. |
| 242 * | 243 * |
| 243 * ON OS32 N31 U30 OU31 OU32 ON | 244 * ON OS32 N31 U30 OU31 OU32 ON |
| (...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 964 | 965 |
| 965 bool Narrows(Bounds that) { | 966 bool Narrows(Bounds that) { |
| 966 return that.lower->Is(this->lower) && this->upper->Is(that.upper); | 967 return that.lower->Is(this->lower) && this->upper->Is(that.upper); |
| 967 } | 968 } |
| 968 }; | 969 }; |
| 969 | 970 |
| 970 } // namespace internal | 971 } // namespace internal |
| 971 } // namespace v8 | 972 } // namespace v8 |
| 972 | 973 |
| 973 #endif // V8_TYPES_H_ | 974 #endif // V8_TYPES_H_ |
| OLD | NEW |