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

Side by Side Diff: src/compiler/types.h

Issue 2530773002: [turbofan] Improve typed lowering rules for JSToBoolean. (Closed)
Patch Set: Created 4 years 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/js-typed-lowering.cc ('k') | test/unittests/compiler/graph-unittest.h » ('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_COMPILER_TYPES_H_ 5 #ifndef V8_COMPILER_TYPES_H_
6 #define V8_COMPILER_TYPES_H_ 6 #define V8_COMPILER_TYPES_H_
7 7
8 #include "src/base/compiler-specific.h" 8 #include "src/base/compiler-specific.h"
9 #include "src/conversions.h" 9 #include "src/conversions.h"
10 #include "src/globals.h" 10 #include "src/globals.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 V(NullOrNumber, kNull | kNumber) \ 149 V(NullOrNumber, kNull | kNumber) \
150 V(NullOrUndefined, kNull | kUndefined) \ 150 V(NullOrUndefined, kNull | kUndefined) \
151 V(Undetectable, kNullOrUndefined | kOtherUndetectable) \ 151 V(Undetectable, kNullOrUndefined | kOtherUndetectable) \
152 V(NumberOrOddball, kNumber | kNullOrUndefined | kBoolean | kHole) \ 152 V(NumberOrOddball, kNumber | kNullOrUndefined | kBoolean | kHole) \
153 V(NumberOrSimdOrString, kNumber | kSimd | kString) \ 153 V(NumberOrSimdOrString, kNumber | kSimd | kString) \
154 V(NumberOrString, kNumber | kString) \ 154 V(NumberOrString, kNumber | kString) \
155 V(NumberOrUndefined, kNumber | kUndefined) \ 155 V(NumberOrUndefined, kNumber | kUndefined) \
156 V(PlainPrimitive, kNumberOrString | kBoolean | kNullOrUndefined) \ 156 V(PlainPrimitive, kNumberOrString | kBoolean | kNullOrUndefined) \
157 V(Primitive, kSymbol | kSimd | kPlainPrimitive) \ 157 V(Primitive, kSymbol | kSimd | kPlainPrimitive) \
158 V(DetectableReceiver, kFunction | kOtherObject | kProxy) \ 158 V(DetectableReceiver, kFunction | kOtherObject | kProxy) \
159 V(DetectableReceiverOrNull, kDetectableReceiver | kNull) \
159 V(Object, kFunction | kOtherObject | kOtherUndetectable) \ 160 V(Object, kFunction | kOtherObject | kOtherUndetectable) \
160 V(Receiver, kObject | kProxy) \ 161 V(Receiver, kObject | kProxy) \
161 V(ReceiverOrUndefined, kReceiver | kUndefined) \ 162 V(ReceiverOrUndefined, kReceiver | kUndefined) \
163 V(ReceiverOrNullOrUndefined, kReceiver | kNull | kUndefined) \
162 V(StringOrReceiver, kString | kReceiver) \ 164 V(StringOrReceiver, kString | kReceiver) \
163 V(Unique, kBoolean | kUniqueName | kNull | kUndefined | \ 165 V(Unique, kBoolean | kUniqueName | kNull | kUndefined | \
164 kReceiver) \ 166 kReceiver) \
165 V(Internal, kHole | kExternalPointer | kOtherInternal) \ 167 V(Internal, kHole | kExternalPointer | kOtherInternal) \
166 V(NonInternal, kPrimitive | kReceiver) \ 168 V(NonInternal, kPrimitive | kReceiver) \
167 V(NonNumber, kUnique | kString | kInternal) \ 169 V(NonNumber, kUnique | kString | kInternal) \
168 V(Any, 0xfffffffeu) 170 V(Any, 0xfffffffeu)
169 171
170 // clang-format on 172 // clang-format on
171 173
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 RangeType::Limits* limits, Zone* zone); 645 RangeType::Limits* limits, Zone* zone);
644 static Type* NormalizeUnion(Type* unioned, int size, Zone* zone); 646 static Type* NormalizeUnion(Type* unioned, int size, Zone* zone);
645 static Type* NormalizeRangeAndBitset(Type* range, bitset* bits, Zone* zone); 647 static Type* NormalizeRangeAndBitset(Type* range, bitset* bits, Zone* zone);
646 }; 648 };
647 649
648 } // namespace compiler 650 } // namespace compiler
649 } // namespace internal 651 } // namespace internal
650 } // namespace v8 652 } // namespace v8
651 653
652 #endif // V8_COMPILER_TYPES_H_ 654 #endif // V8_COMPILER_TYPES_H_
OLDNEW
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | test/unittests/compiler/graph-unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698