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

Side by Side Diff: src/types.h

Issue 565493003: Fix typed lowering of ToBoolean on NaN input. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments. Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | test/cctest/compiler/test-js-typed-lowering.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/factory.h" 8 #include "src/factory.h"
9 #include "src/handles.h" 9 #include "src/handles.h"
10 #include "src/ostreams.h" 10 #include "src/ostreams.h"
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 V(Function, 1 << 17 | REPRESENTATION(kTaggedPtr)) \ 186 V(Function, 1 << 17 | REPRESENTATION(kTaggedPtr)) \
187 V(RegExp, 1 << 18 | REPRESENTATION(kTaggedPtr)) \ 187 V(RegExp, 1 << 18 | REPRESENTATION(kTaggedPtr)) \
188 V(OtherObject, 1 << 19 | REPRESENTATION(kTaggedPtr)) \ 188 V(OtherObject, 1 << 19 | REPRESENTATION(kTaggedPtr)) \
189 V(Proxy, 1 << 20 | REPRESENTATION(kTaggedPtr)) \ 189 V(Proxy, 1 << 20 | REPRESENTATION(kTaggedPtr)) \
190 V(Internal, 1 << 21 | REPRESENTATION(kTagged | kUntagged)) \ 190 V(Internal, 1 << 21 | REPRESENTATION(kTagged | kUntagged)) \
191 \ 191 \
192 V(SignedSmall, kUnsignedSmall | kOtherSignedSmall) \ 192 V(SignedSmall, kUnsignedSmall | kOtherSignedSmall) \
193 V(Signed32, kSignedSmall | kOtherUnsigned31 | kOtherSigned32) \ 193 V(Signed32, kSignedSmall | kOtherUnsigned31 | kOtherSigned32) \
194 V(Unsigned32, kUnsignedSmall | kOtherUnsigned31 | kOtherUnsigned32) \ 194 V(Unsigned32, kUnsignedSmall | kOtherUnsigned31 | kOtherUnsigned32) \
195 V(Integral32, kSigned32 | kUnsigned32) \ 195 V(Integral32, kSigned32 | kUnsigned32) \
196 V(Number, kIntegral32 | kMinusZero | kNaN | kOtherNumber) \ 196 V(OrderedNumber, kIntegral32 | kMinusZero | kOtherNumber) \
197 V(Number, kOrderedNumber | kNaN) \
197 V(String, kInternalizedString | kOtherString) \ 198 V(String, kInternalizedString | kOtherString) \
198 V(UniqueName, kSymbol | kInternalizedString) \ 199 V(UniqueName, kSymbol | kInternalizedString) \
199 V(Name, kSymbol | kString) \ 200 V(Name, kSymbol | kString) \
200 V(NumberOrString, kNumber | kString) \ 201 V(NumberOrString, kNumber | kString) \
201 V(Primitive, kNumber | kName | kBoolean | kNull | kUndefined) \ 202 V(Primitive, kNumber | kName | kBoolean | kNull | kUndefined) \
202 V(DetectableObject, kArray | kFunction | kRegExp | kOtherObject) \ 203 V(DetectableObject, kArray | kFunction | kRegExp | kOtherObject) \
203 V(DetectableReceiver, kDetectableObject | kProxy) \ 204 V(DetectableReceiver, kDetectableObject | kProxy) \
204 V(Detectable, kDetectableReceiver | kNumber | kName) \ 205 V(Detectable, kDetectableReceiver | kNumber | kName) \
205 V(Object, kDetectableObject | kUndetectable) \ 206 V(Object, kDetectableObject | kUndetectable) \
206 V(Receiver, kObject | kProxy) \ 207 V(Receiver, kObject | kProxy) \
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after
995 bool Narrows(BoundsImpl that) { 996 bool Narrows(BoundsImpl that) {
996 return that.lower->Is(this->lower) && this->upper->Is(that.upper); 997 return that.lower->Is(this->lower) && this->upper->Is(that.upper);
997 } 998 }
998 }; 999 };
999 1000
1000 typedef BoundsImpl<ZoneTypeConfig> Bounds; 1001 typedef BoundsImpl<ZoneTypeConfig> Bounds;
1001 1002
1002 } } // namespace v8::internal 1003 } } // namespace v8::internal
1003 1004
1004 #endif // V8_TYPES_H_ 1005 #endif // V8_TYPES_H_
OLDNEW
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | test/cctest/compiler/test-js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698