Index: src/ia32/code-stubs-ia32.cc |
=================================================================== |
--- src/ia32/code-stubs-ia32.cc (revision 9462) |
+++ src/ia32/code-stubs-ia32.cc (working copy) |
@@ -4415,6 +4415,7 @@ |
void CodeStub::GenerateStubsAheadOfTime() { |
+ CEntryStub::GenerateFixedRegStubsAheadOfTime(); |
StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(); |
// It is important that the store buffer overflow stubs are generated first. |
RecordWriteStub::GenerateFixedRegStubsAheadOfTime(); |
@@ -4429,6 +4430,13 @@ |
} |
+void CEntryStub::GenerateFixedRegStubsAheadOfTime() { |
+ CEntryStub stub(1, kDontSaveFPRegs); |
+ Handle<Code> code = stub.GetCode(); |
+ code->set_is_pregenerated(true); |
+} |
+ |
+ |
void CEntryStub::GenerateThrowTOS(MacroAssembler* masm) { |
__ Throw(eax); |
} |