Index: src/code-stubs.cc |
diff --git a/src/code-stubs.cc b/src/code-stubs.cc |
index eff0f7f1cd68917b5e80973bbe0b86fc527c2614..ad418d69cd33e0f061db20ac2347a6cf82e70467 100644 |
--- a/src/code-stubs.cc |
+++ b/src/code-stubs.cc |
@@ -619,8 +619,10 @@ void ElementsTransitionAndStoreStub::Generate(MacroAssembler* masm) { |
void StubFailureTrampolineStub::GenerateAheadOfTime(Isolate* isolate) { |
- StubFailureTrampolineStub(NOT_JS_FUNCTION_STUB_MODE).GetCode(isolate); |
- StubFailureTrampolineStub(JS_FUNCTION_STUB_MODE).GetCode(isolate); |
+ StubFailureTrampolineStub stub1(NOT_JS_FUNCTION_STUB_MODE); |
+ StubFailureTrampolineStub stub2(JS_FUNCTION_STUB_MODE); |
+ stub1.GetCode(isolate)->set_is_pregenerated(true); |
+ stub2.GetCode(isolate)->set_is_pregenerated(true); |
} |