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

Unified Diff: src/code-stubs.cc

Issue 1040183004: Generate common StoreFastElementStubs ahead of time (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « src/code-stubs.h ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stubs.cc
diff --git a/src/code-stubs.cc b/src/code-stubs.cc
index f600cf316d7f2d999eb52f9f1d2e420035c4ffdd..29fbb3c8648a8fff2fbbdcba11ffefee7be3b826 100644
--- a/src/code-stubs.cc
+++ b/src/code-stubs.cc
@@ -752,6 +752,21 @@ void StoreElementStub::Generate(MacroAssembler* masm) {
}
+// static
+void StoreFastElementStub::GenerateAheadOfTime(Isolate* isolate) {
+ StoreFastElementStub(isolate, false, FAST_HOLEY_ELEMENTS, STANDARD_STORE)
+ .GetCode();
+ StoreFastElementStub(isolate, false, FAST_HOLEY_ELEMENTS,
+ STORE_AND_GROW_NO_TRANSITION).GetCode();
+ for (int i = FIRST_FAST_ELEMENTS_KIND; i <= LAST_FAST_ELEMENTS_KIND; i++) {
+ ElementsKind kind = static_cast<ElementsKind>(i);
+ StoreFastElementStub(isolate, true, kind, STANDARD_STORE).GetCode();
+ StoreFastElementStub(isolate, true, kind, STORE_AND_GROW_NO_TRANSITION)
+ .GetCode();
+ }
+}
+
+
void ArgumentsAccessStub::Generate(MacroAssembler* masm) {
switch (type()) {
case READ_ELEMENT:
« no previous file with comments | « src/code-stubs.h ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698