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

Side by Side Diff: src/types.h

Issue 2064953004: [turbofan] Unify the PlainPrimitive as Number treatment. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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/compiler/verifier.cc ('k') | test/unittests/compiler/js-builtin-reducer-unittest.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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(NumberOrOddball, kNumber | kNullOrUndefined | kBoolean) \
222 V(NumberOrSimdOrString, kNumber | kSimd | kString) \ 223 V(NumberOrSimdOrString, kNumber | kSimd | kString) \
223 V(NumberOrString, kNumber | kString) \ 224 V(NumberOrString, kNumber | kString) \
224 V(NumberOrUndefined, kNumber | kUndefined) \ 225 V(NumberOrUndefined, kNumber | kUndefined) \
225 V(PlainPrimitive, kNumberOrString | kBoolean | kNullOrUndefined) \ 226 V(PlainPrimitive, kNumberOrString | kBoolean | kNullOrUndefined) \
226 V(Primitive, kSymbol | kSimd | kPlainPrimitive) \ 227 V(Primitive, kSymbol | kSimd | kPlainPrimitive) \
227 V(DetectableReceiver, kFunction | kOtherObject | kProxy) \ 228 V(DetectableReceiver, kFunction | kOtherObject | kProxy) \
228 V(Object, kFunction | kOtherObject | kOtherUndetectable) \ 229 V(Object, kFunction | kOtherObject | kOtherUndetectable) \
229 V(Receiver, kObject | kProxy) \ 230 V(Receiver, kObject | kProxy) \
230 V(StringOrReceiver, kString | kReceiver) \ 231 V(StringOrReceiver, kString | kReceiver) \
231 V(Unique, kBoolean | kUniqueName | kNull | kUndefined | \ 232 V(Unique, kBoolean | kUniqueName | kNull | kUndefined | \
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 964
964 bool Narrows(Bounds that) { 965 bool Narrows(Bounds that) {
965 return that.lower->Is(this->lower) && this->upper->Is(that.upper); 966 return that.lower->Is(this->lower) && this->upper->Is(that.upper);
966 } 967 }
967 }; 968 };
968 969
969 } // namespace internal 970 } // namespace internal
970 } // namespace v8 971 } // namespace v8
971 972
972 #endif // V8_TYPES_H_ 973 #endif // V8_TYPES_H_
OLDNEW
« no previous file with comments | « src/compiler/verifier.cc ('k') | test/unittests/compiler/js-builtin-reducer-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698