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

Unified Diff: src/ic.cc

Issue 6323002: Add custom typed ICs for pixel array loads. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 11 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/ic.cc
===================================================================
--- src/ic.cc (revision 6456)
+++ src/ic.cc (working copy)
@@ -1197,7 +1197,9 @@
MaybeObject* probe =
StubCache::ComputeKeyedLoadOrStoreExternalArray(*receiver, false);
stub =
- probe->IsFailure() ? NULL : Code::cast(probe->ToObjectUnchecked());
+ probe->IsFailure() ? NULL : Code::cast(probe->ToObjectUnchecked());
+ } else if (receiver->HasPixelElements()) {
+ stub = pixel_array_stub();
Mads Ager (chromium) 2011/01/25 14:49:17 Let's remove the pixel array code in the generic s
danno 2011/01/25 20:56:29 This occurred to me too, but I actually think we s
Mads Ager (chromium) 2011/01/26 08:10:21 True, we don't deal with it in that case and I gue
} else if (receiver->HasIndexedInterceptor()) {
stub = indexed_interceptor_stub();
} else if (state == UNINITIALIZED &&

Powered by Google App Engine
This is Rietveld 408576698