Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index 4e4a60923228d28b659bf2f8d24ca1ec0802cf4b..579e1c8e6f8dc57426cce5f90ee65f768ad170b9 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -7565,6 +7565,16 @@ void StoreArrayLiteralElementStub::Generate(MacroAssembler* masm) { |
} |
+void StubFailureTrampolineStub::Generate(MacroAssembler* masm) { |
+ ASSERT(!Serializer::enabled()); |
+ bool save_fp_regs = CpuFeatures::IsSupported(SSE2); |
+ CEntryStub ces(1, save_fp_regs ? kSaveFPRegs : kDontSaveFPRegs); |
+ __ call(ces.GetCode(), RelocInfo::CODE_TARGET); |
+ masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); |
+ __ ret(0); // Return to IC Miss stub, continuation still on stack. |
+} |
+ |
+ |
void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { |
if (entry_hook_ != NULL) { |
ProfileEntryHookStub stub; |