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

Unified Diff: src/code-stubs.h

Issue 17082003: Let NaN flow as double into HBranch (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stubs.h
diff --git a/src/code-stubs.h b/src/code-stubs.h
index edbc93d142c7cf3e32fe2ac4f05ffc491b29bb11..c4f0c4d38a25658b34e9e73bb46472f6f46c3221 100644
--- a/src/code-stubs.h
+++ b/src/code-stubs.h
@@ -1973,7 +1973,7 @@ class ToBooleanStub: public HydrogenCodeStub {
class Types : public EnumSet<Type, byte> {
public:
- Types() {}
+ Types() : EnumSet<Type, byte>(0) {}
explicit Types(byte bits) : EnumSet<Type, byte>(bits) {}
byte ToByte() const { return ToIntegral(); }
@@ -1982,10 +1982,10 @@ class ToBooleanStub: public HydrogenCodeStub {
bool Record(Handle<Object> object);
bool NeedsMap() const;
bool CanBeUndetectable() const;
- };
+ bool IsGeneric() const { return ToIntegral() == Generic().ToIntegral(); }
- static Types no_types() { return Types(); }
- static Types all_types() { return Types((1 << NUMBER_OF_TYPES) - 1); }
+ static Types Generic() { return Types((1 << NUMBER_OF_TYPES) - 1); }
+ };
explicit ToBooleanStub(Types types = Types())
: types_(types) { }
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698