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

Unified Diff: src/ia32/ic-ia32.cc

Issue 8520006: Optimize the equality check case of ICCompare stubs. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 1 month 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/ia32/ic-ia32.cc
===================================================================
--- src/ia32/ic-ia32.cc (revision 9957)
+++ src/ia32/ic-ia32.cc (working copy)
@@ -1625,7 +1625,14 @@
rewritten = stub.GetCode();
} else {
ICCompareStub stub(op_, state);
- rewritten = stub.GetCode();
+ if (state == KNOWN_OBJECTS) {
+ stub.set_known_map(Handle<JSObject>::cast(x)->map());
+ rewritten = stub.GetCode(true);
Kevin Millikin (Chromium) 2011/11/10 19:08:42 Nicer to have a virtual "UseSpecialCache" function
Rico 2011/11/11 08:49:11 Done.
+ } else {
+ rewritten = stub.GetCode();
+ }
+
+
}
set_target(*rewritten);

Powered by Google App Engine
This is Rietveld 408576698