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: |