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

Unified Diff: src/ia32/code-stubs-ia32.cc

Issue 368263003: Use a stub in crankshaft for grow store arrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Performance fixes. Created 6 years, 5 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/ia32/code-stubs-ia32.cc
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc
index 3d85c3390e847da2c7510d7c9a8149284dde9889..de66d17c360712900505d65ca7ef0a329a60b222 100644
--- a/src/ia32/code-stubs-ia32.cc
+++ b/src/ia32/code-stubs-ia32.cc
@@ -351,6 +351,12 @@ void CallDescriptors::InitializeForIsolate(Isolate* isolate) {
}
+// IC register specifications
+const Register GrowArrayElementsStub::ObjectRegister() { return eax; }
+const Register GrowArrayElementsStub::KeyRegister() { return ebx; }
+const Register GrowArrayElementsStub::CapacityRegister() { return ecx; }
+
+
#define __ ACCESS_MASM(masm)
@@ -2526,6 +2532,7 @@ void CodeStub::GenerateStubsAheadOfTime(Isolate* isolate) {
CreateAllocationSiteStub::GenerateAheadOfTime(isolate);
BinaryOpICStub::GenerateAheadOfTime(isolate);
BinaryOpICWithAllocationSiteStub::GenerateAheadOfTime(isolate);
+ GrowArrayElementsStub::GenerateAheadOfTime(isolate);
}

Powered by Google App Engine
This is Rietveld 408576698