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

Unified Diff: src/stub-cache.h

Issue 12700006: Replace ICStub for array.length with hydrogen stub (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: New patch Created 7 years, 9 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/stub-cache.h
diff --git a/src/stub-cache.h b/src/stub-cache.h
index 56e3d4ff743de3d6ef8cc165daed661fbce1c73f..ef2d16f47ea1b2b1140b3ca8f2371817fb8d93d7 100644
--- a/src/stub-cache.h
+++ b/src/stub-cache.h
@@ -126,6 +126,10 @@ class StubCache {
Handle<Code> ComputeLoadNormal(Handle<Name> name,
Handle<JSObject> object);
+ Handle<Code> ComputeLoadArrayLength(Handle<Name> name,
+ Handle<JSObject> object,
+ Handle<JSObject> holder);
+
Handle<Code> ComputeLoadGlobal(Handle<Name> name,
Handle<JSObject> object,
Handle<GlobalObject> holder,
@@ -600,6 +604,10 @@ class BaseLoadStubCompiler: public StubCompiler {
Handle<Name> name,
PropertyIndex index);
+ Handle<Code> CompileArrayLength(Handle<JSObject> object,
+ Handle<JSObject> holder,
+ Handle<Name> name);
+
Handle<Code> CompileLoadCallback(Handle<JSObject> object,
Handle<JSObject> holder,
Handle<Name> name,
@@ -717,6 +725,8 @@ class LoadStubCompiler: public BaseLoadStubCompiler {
static Register receiver() { return registers()[0]; }
+ static Register name() { return registers()[1]; }
+
private:
static Register* registers();
virtual Code::Kind kind() { return Code::LOAD_IC; }

Powered by Google App Engine
This is Rietveld 408576698