OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 V(Number, kSigned32 | kUnsigned32 | kDouble) \ | 121 V(Number, kSigned32 | kUnsigned32 | kDouble) \ |
122 V(String, kInternalizedString | kOtherString) \ | 122 V(String, kInternalizedString | kOtherString) \ |
123 V(UniqueName, kSymbol | kInternalizedString) \ | 123 V(UniqueName, kSymbol | kInternalizedString) \ |
124 V(Name, kSymbol | kString) \ | 124 V(Name, kSymbol | kString) \ |
125 V(NumberOrString, kNumber | kString) \ | 125 V(NumberOrString, kNumber | kString) \ |
126 V(Object, kUndetectable | kArray | kFunction | \ | 126 V(Object, kUndetectable | kArray | kFunction | \ |
127 kRegExp | kOtherObject) \ | 127 kRegExp | kOtherObject) \ |
128 V(Receiver, kObject | kProxy) \ | 128 V(Receiver, kObject | kProxy) \ |
129 V(Allocated, kDouble | kName | kReceiver) \ | 129 V(Allocated, kDouble | kName | kReceiver) \ |
130 V(Any, kOddball | kNumber | kAllocated | kInternal) \ | 130 V(Any, kOddball | kNumber | kAllocated | kInternal) \ |
| 131 V(NonNumber, kAny - kNumber) \ |
131 V(Detectable, kAllocated - kUndetectable) | 132 V(Detectable, kAllocated - kUndetectable) |
132 | 133 |
133 #define TYPE_LIST(V) \ | 134 #define TYPE_LIST(V) \ |
134 PRIMITIVE_TYPE_LIST(V) \ | 135 PRIMITIVE_TYPE_LIST(V) \ |
135 COMPOSED_TYPE_LIST(V) | 136 COMPOSED_TYPE_LIST(V) |
136 | 137 |
137 | 138 |
138 | 139 |
139 class Type : public Object { | 140 class Type : public Object { |
140 public: | 141 public: |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 return Bounds(handle(Type::Union(b.lower, t), isl), b.upper); | 327 return Bounds(handle(Type::Union(b.lower, t), isl), b.upper); |
327 } | 328 } |
328 static Bounds NarrowUpper(Bounds b, Handle<Type> t, Isolate* isl) { | 329 static Bounds NarrowUpper(Bounds b, Handle<Type> t, Isolate* isl) { |
329 return Bounds(b.lower, handle(Type::Intersect(b.upper, t), isl)); | 330 return Bounds(b.lower, handle(Type::Intersect(b.upper, t), isl)); |
330 } | 331 } |
331 }; | 332 }; |
332 | 333 |
333 } } // namespace v8::internal | 334 } } // namespace v8::internal |
334 | 335 |
335 #endif // V8_TYPES_H_ | 336 #endif // V8_TYPES_H_ |
OLD | NEW |