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

Unified Diff: src/code-stubs.h

Issue 7497063: Simplify and optimize ToBoolean handling. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 4 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
Index: src/code-stubs.h
===================================================================
--- src/code-stubs.h (revision 8868)
+++ src/code-stubs.h (working copy)
@@ -908,7 +908,6 @@
SPEC_OBJECT,
STRING,
HEAP_NUMBER,
- INTERNAL_OBJECT,
NUMBER_OF_TYPES
};
@@ -922,7 +921,6 @@
explicit Types(byte bits) : set_(bits) {}
bool IsEmpty() const { return set_.IsEmpty(); }
- bool IsAll() const { return ToByte() == ((1 << NUMBER_OF_TYPES) - 1); }
bool Contains(Type type) const { return set_.Contains(type); }
void Add(Type type) { set_.Add(type); }
byte ToByte() const { return set_.ToIntegral(); }
@@ -930,6 +928,7 @@
void TraceTransition(Types to) const;
bool Record(Handle<Object> object);
bool NeedsMap() const;
+ bool CanBeUndetectable() const;
private:
EnumSet<Type, byte> set_;
@@ -956,8 +955,7 @@
void CheckOddball(MacroAssembler* masm,
Type type,
Heap::RootListIndex value,
- bool result,
- Label* patch);
+ bool result);
void GenerateTypeTransition(MacroAssembler* masm);
Register tos_;
« src/apinatives.js ('K') | « src/arm/lithium-codegen-arm.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698