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

Side by Side Diff: src/types.h

Issue 2236443004: [turbofan] Introduce a dedicated ConvertTaggedHoleToUndefined operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix verify heap. Created 4 years, 4 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/objects-debug.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/handles.h" 9 #include "src/handles.h"
10 #include "src/objects.h" 10 #include "src/objects.h"
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 V(MinusZero, 1u << 10 | REPRESENTATION(kTagged | kUntaggedNumber)) \ 192 V(MinusZero, 1u << 10 | REPRESENTATION(kTagged | kUntaggedNumber)) \
193 V(NaN, 1u << 11 | REPRESENTATION(kTagged | kUntaggedNumber)) \ 193 V(NaN, 1u << 11 | REPRESENTATION(kTagged | kUntaggedNumber)) \
194 V(Symbol, 1u << 12 | REPRESENTATION(kTaggedPointer)) \ 194 V(Symbol, 1u << 12 | REPRESENTATION(kTaggedPointer)) \
195 V(InternalizedString, 1u << 13 | REPRESENTATION(kTaggedPointer)) \ 195 V(InternalizedString, 1u << 13 | REPRESENTATION(kTaggedPointer)) \
196 V(OtherString, 1u << 14 | REPRESENTATION(kTaggedPointer)) \ 196 V(OtherString, 1u << 14 | REPRESENTATION(kTaggedPointer)) \
197 V(Simd, 1u << 15 | REPRESENTATION(kTaggedPointer)) \ 197 V(Simd, 1u << 15 | REPRESENTATION(kTaggedPointer)) \
198 V(OtherObject, 1u << 17 | REPRESENTATION(kTaggedPointer)) \ 198 V(OtherObject, 1u << 17 | REPRESENTATION(kTaggedPointer)) \
199 V(OtherUndetectable, 1u << 16 | REPRESENTATION(kTaggedPointer)) \ 199 V(OtherUndetectable, 1u << 16 | REPRESENTATION(kTaggedPointer)) \
200 V(Proxy, 1u << 18 | REPRESENTATION(kTaggedPointer)) \ 200 V(Proxy, 1u << 18 | REPRESENTATION(kTaggedPointer)) \
201 V(Function, 1u << 19 | REPRESENTATION(kTaggedPointer)) \ 201 V(Function, 1u << 19 | REPRESENTATION(kTaggedPointer)) \
202 V(Internal, 1u << 20 | REPRESENTATION(kTagged | kUntagged)) \ 202 V(Hole, 1u << 20 | REPRESENTATION(kTaggedPointer)) \
203 V(OtherInternal, 1u << 21 | REPRESENTATION(kTagged | kUntagged)) \
203 \ 204 \
204 V(Signed31, kUnsigned30 | kNegative31) \ 205 V(Signed31, kUnsigned30 | kNegative31) \
205 V(Signed32, kSigned31 | kOtherUnsigned31 | kOtherSigned32) \ 206 V(Signed32, kSigned31 | kOtherUnsigned31 | kOtherSigned32) \
206 V(Signed32OrMinusZero, kSigned32 | kMinusZero) \ 207 V(Signed32OrMinusZero, kSigned32 | kMinusZero) \
207 V(Signed32OrMinusZeroOrNaN, kSigned32 | kMinusZero | kNaN) \ 208 V(Signed32OrMinusZeroOrNaN, kSigned32 | kMinusZero | kNaN) \
208 V(Negative32, kNegative31 | kOtherSigned32) \ 209 V(Negative32, kNegative31 | kOtherSigned32) \
209 V(Unsigned31, kUnsigned30 | kOtherUnsigned31) \ 210 V(Unsigned31, kUnsigned30 | kOtherUnsigned31) \
210 V(Unsigned32, kUnsigned30 | kOtherUnsigned31 | \ 211 V(Unsigned32, kUnsigned30 | kOtherUnsigned31 | \
211 kOtherUnsigned32) \ 212 kOtherUnsigned32) \
212 V(Unsigned32OrMinusZero, kUnsigned32 | kMinusZero) \ 213 V(Unsigned32OrMinusZero, kUnsigned32 | kMinusZero) \
213 V(Unsigned32OrMinusZeroOrNaN, kUnsigned32 | kMinusZero | kNaN) \ 214 V(Unsigned32OrMinusZeroOrNaN, kUnsigned32 | kMinusZero | kNaN) \
214 V(Integral32, kSigned32 | kUnsigned32) \ 215 V(Integral32, kSigned32 | kUnsigned32) \
215 V(PlainNumber, kIntegral32 | kOtherNumber) \ 216 V(PlainNumber, kIntegral32 | kOtherNumber) \
216 V(OrderedNumber, kPlainNumber | kMinusZero) \ 217 V(OrderedNumber, kPlainNumber | kMinusZero) \
217 V(MinusZeroOrNaN, kMinusZero | kNaN) \ 218 V(MinusZeroOrNaN, kMinusZero | kNaN) \
218 V(Number, kOrderedNumber | kNaN) \ 219 V(Number, kOrderedNumber | kNaN) \
219 V(String, kInternalizedString | kOtherString) \ 220 V(String, kInternalizedString | kOtherString) \
220 V(UniqueName, kSymbol | kInternalizedString) \ 221 V(UniqueName, kSymbol | kInternalizedString) \
221 V(Name, kSymbol | kString) \ 222 V(Name, kSymbol | kString) \
222 V(BooleanOrNumber, kBoolean | kNumber) \ 223 V(BooleanOrNumber, kBoolean | kNumber) \
223 V(BooleanOrNullOrNumber, kBooleanOrNumber | kNull) \ 224 V(BooleanOrNullOrNumber, kBooleanOrNumber | kNull) \
224 V(BooleanOrNullOrUndefined, kBoolean | kNull | kUndefined) \ 225 V(BooleanOrNullOrUndefined, kBoolean | kNull | kUndefined) \
225 V(NullOrNumber, kNull | kNumber) \ 226 V(NullOrNumber, kNull | kNumber) \
226 V(NullOrUndefined, kNull | kUndefined) \ 227 V(NullOrUndefined, kNull | kUndefined) \
227 V(Undetectable, kNullOrUndefined | kOtherUndetectable) \ 228 V(Undetectable, kNullOrUndefined | kOtherUndetectable) \
228 V(NumberOrOddball, kNumber | kNullOrUndefined | kBoolean) \ 229 V(NumberOrOddball, kNumber | kNullOrUndefined | kBoolean | kHole) \
229 V(NumberOrSimdOrString, kNumber | kSimd | kString) \ 230 V(NumberOrSimdOrString, kNumber | kSimd | kString) \
230 V(NumberOrString, kNumber | kString) \ 231 V(NumberOrString, kNumber | kString) \
231 V(NumberOrUndefined, kNumber | kUndefined) \ 232 V(NumberOrUndefined, kNumber | kUndefined) \
232 V(PlainPrimitive, kNumberOrString | kBoolean | kNullOrUndefined) \ 233 V(PlainPrimitive, kNumberOrString | kBoolean | kNullOrUndefined) \
233 V(Primitive, kSymbol | kSimd | kPlainPrimitive) \ 234 V(Primitive, kSymbol | kSimd | kPlainPrimitive) \
234 V(DetectableReceiver, kFunction | kOtherObject | kProxy) \ 235 V(DetectableReceiver, kFunction | kOtherObject | kProxy) \
235 V(Object, kFunction | kOtherObject | kOtherUndetectable) \ 236 V(Object, kFunction | kOtherObject | kOtherUndetectable) \
236 V(Receiver, kObject | kProxy) \ 237 V(Receiver, kObject | kProxy) \
237 V(StringOrReceiver, kString | kReceiver) \ 238 V(StringOrReceiver, kString | kReceiver) \
238 V(Unique, kBoolean | kUniqueName | kNull | kUndefined | \ 239 V(Unique, kBoolean | kUniqueName | kNull | kUndefined | \
239 kReceiver) \ 240 kReceiver) \
241 V(Internal, kHole | kOtherInternal) \
240 V(NonInternal, kPrimitive | kReceiver) \ 242 V(NonInternal, kPrimitive | kReceiver) \
241 V(NonNumber, kUnique | kString | kInternal) \ 243 V(NonNumber, kUnique | kString | kInternal) \
242 V(Any, 0xfffffffeu) 244 V(Any, 0xfffffffeu)
243 245
244 // clang-format on 246 // clang-format on
245 247
246 /* 248 /*
247 * The following diagrams show how integers (in the mathematical sense) are 249 * The following diagrams show how integers (in the mathematical sense) are
248 * divided among the different atomic numerical types. 250 * divided among the different atomic numerical types.
249 * 251 *
(...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after
971 973
972 bool Narrows(Bounds that) { 974 bool Narrows(Bounds that) {
973 return that.lower->Is(this->lower) && this->upper->Is(that.upper); 975 return that.lower->Is(this->lower) && this->upper->Is(that.upper);
974 } 976 }
975 }; 977 };
976 978
977 } // namespace internal 979 } // namespace internal
978 } // namespace v8 980 } // namespace v8
979 981
980 #endif // V8_TYPES_H_ 982 #endif // V8_TYPES_H_
OLDNEW
« no previous file with comments | « src/objects-debug.cc ('k') | src/types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698