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

Unified Diff: src/ic.h

Issue 12254036: Minor cleanup of CompareIC state (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ic.cc » ('j') | src/ic.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic.h
diff --git a/src/ic.h b/src/ic.h
index cb316407c0563c340e143bc621c69d75642916dc..12328d511fb3b0176c428c6fe9f130ea1faed31e 100644
--- a/src/ic.h
+++ b/src/ic.h
@@ -752,14 +752,20 @@ class BinaryOpIC: public IC {
class CompareIC: public IC {
public:
+ // The type/state lattice is defined by the following inequations:
+ // UNINITIALIZED < ...
+ // ... < GENERIC
+ // SMI < NUMBER
+ // SYMBOL < STRING
+ // KNOWN_OBJECT < OBJECT
enum State {
UNINITIALIZED,
SMI,
- HEAP_NUMBER,
+ NUMBER,
Jakob Kummerow 2013/02/15 09:12:53 I don't think this renaming is an improvement, for
rossberg 2013/02/19 11:32:13 Good point, I fixed it for Unary and Binary ops as
SYMBOL,
STRING,
- OBJECT,
- KNOWN_OBJECTS,
+ OBJECT, // JSObject
+ KNOWN_OBJECT, // JSObject with specific map (faster check)
GENERIC
};
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ic.cc » ('j') | src/ic.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698