Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: src/types.h

Issue 1074133002: Remove Type::Array bit and replace with Type::GlobalObject (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/hydrogen-types.cc ('k') | src/types.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 V(Null, 1u << 6 | REPRESENTATION(kTaggedPointer)) \ 201 V(Null, 1u << 6 | REPRESENTATION(kTaggedPointer)) \
202 V(Undefined, 1u << 7 | REPRESENTATION(kTaggedPointer)) \ 202 V(Undefined, 1u << 7 | REPRESENTATION(kTaggedPointer)) \
203 V(Boolean, 1u << 8 | REPRESENTATION(kTaggedPointer)) \ 203 V(Boolean, 1u << 8 | REPRESENTATION(kTaggedPointer)) \
204 V(Unsigned30, 1u << 9 | REPRESENTATION(kTagged | kUntaggedNumber)) \ 204 V(Unsigned30, 1u << 9 | REPRESENTATION(kTagged | kUntaggedNumber)) \
205 V(MinusZero, 1u << 10 | REPRESENTATION(kTagged | kUntaggedNumber)) \ 205 V(MinusZero, 1u << 10 | REPRESENTATION(kTagged | kUntaggedNumber)) \
206 V(NaN, 1u << 11 | REPRESENTATION(kTagged | kUntaggedNumber)) \ 206 V(NaN, 1u << 11 | REPRESENTATION(kTagged | kUntaggedNumber)) \
207 V(Symbol, 1u << 12 | REPRESENTATION(kTaggedPointer)) \ 207 V(Symbol, 1u << 12 | REPRESENTATION(kTaggedPointer)) \
208 V(InternalizedString, 1u << 13 | REPRESENTATION(kTaggedPointer)) \ 208 V(InternalizedString, 1u << 13 | REPRESENTATION(kTaggedPointer)) \
209 V(OtherString, 1u << 14 | REPRESENTATION(kTaggedPointer)) \ 209 V(OtherString, 1u << 14 | REPRESENTATION(kTaggedPointer)) \
210 V(Undetectable, 1u << 15 | REPRESENTATION(kTaggedPointer)) \ 210 V(Undetectable, 1u << 15 | REPRESENTATION(kTaggedPointer)) \
211 V(Array, 1u << 16 | REPRESENTATION(kTaggedPointer)) \ 211 V(GlobalObject, 1u << 16 | REPRESENTATION(kTaggedPointer)) \
212 V(OtherObject, 1u << 17 | REPRESENTATION(kTaggedPointer)) \ 212 V(OtherObject, 1u << 17 | REPRESENTATION(kTaggedPointer)) \
213 V(Proxy, 1u << 18 | REPRESENTATION(kTaggedPointer)) \ 213 V(Proxy, 1u << 18 | REPRESENTATION(kTaggedPointer)) \
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(Number, kOrderedNumber | kNaN) \ 224 V(Number, kOrderedNumber | kNaN) \
225 V(String, kInternalizedString | kOtherString) \ 225 V(String, kInternalizedString | kOtherString) \
226 V(UniqueName, kSymbol | kInternalizedString) \ 226 V(UniqueName, kSymbol | kInternalizedString) \
227 V(Name, kSymbol | kString) \ 227 V(Name, kSymbol | kString) \
228 V(NumberOrString, kNumber | kString) \ 228 V(NumberOrString, kNumber | kString) \
229 V(PlainPrimitive, kNumberOrString | kBoolean | kNull | kUndefined) \ 229 V(PlainPrimitive, kNumberOrString | kBoolean | kNull | kUndefined) \
230 V(Primitive, kSymbol | kPlainPrimitive) \ 230 V(Primitive, kSymbol | kPlainPrimitive) \
231 V(DetectableObject, kArray | kOtherObject) \ 231 V(DetectableObject, kGlobalObject | kOtherObject) \
232 V(DetectableReceiver, kDetectableObject | kProxy) \ 232 V(DetectableReceiver, kDetectableObject | kProxy) \
233 V(Detectable, kDetectableReceiver | kNumber | kName) \ 233 V(Detectable, kDetectableReceiver | kNumber | kName) \
234 V(Object, kDetectableObject | kUndetectable) \ 234 V(Object, kDetectableObject | kUndetectable) \
235 V(Receiver, kObject | kProxy) \ 235 V(Receiver, kObject | kProxy) \
236 V(StringOrReceiver, kString | kReceiver) \ 236 V(StringOrReceiver, kString | kReceiver) \
237 V(Unique, kBoolean | kUniqueName | kNull | kUndefined | \ 237 V(Unique, kBoolean | kUniqueName | kNull | kUndefined | \
238 kReceiver) \ 238 kReceiver) \
239 V(NonNumber, kUnique | kString | kInternal) \ 239 V(NonNumber, kUnique | kString | kInternal) \
240 V(Any, 0xfffffffeu) 240 V(Any, 0xfffffffeu)
241 241
(...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after
1151 bool Narrows(BoundsImpl that) { 1151 bool Narrows(BoundsImpl that) {
1152 return that.lower->Is(this->lower) && this->upper->Is(that.upper); 1152 return that.lower->Is(this->lower) && this->upper->Is(that.upper);
1153 } 1153 }
1154 }; 1154 };
1155 1155
1156 typedef BoundsImpl<ZoneTypeConfig> Bounds; 1156 typedef BoundsImpl<ZoneTypeConfig> Bounds;
1157 1157
1158 } } // namespace v8::internal 1158 } } // namespace v8::internal
1159 1159
1160 #endif // V8_TYPES_H_ 1160 #endif // V8_TYPES_H_
OLDNEW
« no previous file with comments | « src/hydrogen-types.cc ('k') | src/types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698