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

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

Issue 2697063002: Fix typeof optimization for undetectable (Closed)
Patch Set: Rename + format fix Created 3 years, 10 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/typer.cc ('k') | src/compiler/verifier.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_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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 V(Undetectable, kNullOrUndefined | kOtherUndetectable) \ 157 V(Undetectable, kNullOrUndefined | kOtherUndetectable) \
158 V(NumberOrOddball, kNumber | kNullOrUndefined | kBoolean | \ 158 V(NumberOrOddball, kNumber | kNullOrUndefined | kBoolean | \
159 kHole) \ 159 kHole) \
160 V(NumberOrString, kNumber | kString) \ 160 V(NumberOrString, kNumber | kString) \
161 V(NumberOrUndefined, kNumber | kUndefined) \ 161 V(NumberOrUndefined, kNumber | kUndefined) \
162 V(PlainPrimitive, kNumberOrString | kBoolean | \ 162 V(PlainPrimitive, kNumberOrString | kBoolean | \
163 kNullOrUndefined) \ 163 kNullOrUndefined) \
164 V(Primitive, kSymbol | kPlainPrimitive) \ 164 V(Primitive, kSymbol | kPlainPrimitive) \
165 V(OtherUndetectableOrUndefined, kOtherUndetectable | kUndefined) \ 165 V(OtherUndetectableOrUndefined, kOtherUndetectable | kUndefined) \
166 V(Proxy, kCallableProxy | kOtherProxy) \ 166 V(Proxy, kCallableProxy | kOtherProxy) \
167 V(Callable, kFunction | kBoundFunction | \ 167 V(DetectableCallable, kFunction | kBoundFunction | \
168 kOtherCallable | kCallableProxy | \ 168 kOtherCallable | kCallableProxy) \
169 kOtherUndetectable) \ 169 V(Callable, kDetectableCallable | kOtherUndetectable) \
170 V(NonCallable, kOtherObject | kOtherProxy) \ 170 V(NonCallable, kOtherObject | kOtherProxy) \
171 V(NonCallableOrNull, kNonCallable | kNull) \ 171 V(NonCallableOrNull, kNonCallable | kNull) \
172 V(DetectableObject, kFunction | kBoundFunction | \ 172 V(DetectableObject, kFunction | kBoundFunction | \
173 kOtherCallable | kOtherObject) \ 173 kOtherCallable | kOtherObject) \
174 V(DetectableReceiver, kDetectableObject | kProxy) \ 174 V(DetectableReceiver, kDetectableObject | kProxy) \
175 V(DetectableReceiverOrNull, kDetectableReceiver | kNull) \ 175 V(DetectableReceiverOrNull, kDetectableReceiver | kNull) \
176 V(Object, kDetectableObject | kOtherUndetectable) \ 176 V(Object, kDetectableObject | kOtherUndetectable) \
177 V(Receiver, kObject | kProxy) \ 177 V(Receiver, kObject | kProxy) \
178 V(ReceiverOrUndefined, kReceiver | kUndefined) \ 178 V(ReceiverOrUndefined, kReceiver | kUndefined) \
179 V(ReceiverOrNullOrUndefined, kReceiver | kNull | kUndefined) \ 179 V(ReceiverOrNullOrUndefined, kReceiver | kNull | kUndefined) \
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 RangeType::Limits* limits, Zone* zone); 662 RangeType::Limits* limits, Zone* zone);
663 static Type* NormalizeUnion(Type* unioned, int size, Zone* zone); 663 static Type* NormalizeUnion(Type* unioned, int size, Zone* zone);
664 static Type* NormalizeRangeAndBitset(Type* range, bitset* bits, Zone* zone); 664 static Type* NormalizeRangeAndBitset(Type* range, bitset* bits, Zone* zone);
665 }; 665 };
666 666
667 } // namespace compiler 667 } // namespace compiler
668 } // namespace internal 668 } // namespace internal
669 } // namespace v8 669 } // namespace v8
670 670
671 #endif // V8_COMPILER_TYPES_H_ 671 #endif // V8_COMPILER_TYPES_H_
OLDNEW
« no previous file with comments | « src/compiler/typer.cc ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698