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

Unified Diff: src/stub-cache.h

Issue 11344012: Make so that array length property access uses a new IC that tracks the array map. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 2 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/objects-inl.h ('k') | src/stub-cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/stub-cache.h
diff --git a/src/stub-cache.h b/src/stub-cache.h
index 005c537ab1ed108a5cfccebf491147183b1a5231..dd226b948a8023ba244e361496b0e783a8d1ab0c 100644
--- a/src/stub-cache.h
+++ b/src/stub-cache.h
@@ -90,6 +90,10 @@ class StubCache {
Handle<JSObject> holder,
Handle<AccessorInfo> callback);
+ Handle<Code> ComputeLoadArrayLength(Handle<String> name,
+ Handle<JSObject> receiver,
+ Handle<JSObject> holder);
+
Handle<Code> ComputeLoadViaGetter(Handle<String> name,
Handle<JSObject> receiver,
Handle<JSObject> holder,
@@ -619,6 +623,12 @@ class LoadStubCompiler: public StubCompiler {
Handle<JSObject> holder,
Handle<AccessorInfo> callback);
+ static void GenerateLoadArrayLength(MacroAssembler* masm, Register holder);
+
+ Handle<Code> CompileLoadArrayLength(Handle<String> name,
+ Handle<JSObject> receiver,
+ Handle<JSObject> holder);
+
static void GenerateLoadViaGetter(MacroAssembler* masm,
Handle<JSFunction> getter);
@@ -643,7 +653,10 @@ class LoadStubCompiler: public StubCompiler {
bool is_dont_delete);
private:
- Handle<Code> GetCode(Code::StubType type, Handle<String> name);
+ Handle<Code> GetCode(
+ Code::StubType type, Handle<String> name,
+ Code::ExtraICStateForeignCallback callbackType =
+ Code::ExtraICStateForeignCallbackNone);
};
« no previous file with comments | « src/objects-inl.h ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698