Index: src/mips/builtins-mips.cc |
diff --git a/src/mips/builtins-mips.cc b/src/mips/builtins-mips.cc |
index 2fe081ee676bd1ee76d7f871c20271c596322524..215378662b9fbe4210c4e6efd9e89058f3449962 100644 |
--- a/src/mips/builtins-mips.cc |
+++ b/src/mips/builtins-mips.cc |
@@ -892,7 +892,8 @@ void Builtins::Generate_MarkCodeAsExecutedTwice(MacroAssembler* masm) { |
} |
-void Builtins::Generate_NotifyStubFailure(MacroAssembler* masm) { |
+static void Generate_NotifyStubFailureHelper(MacroAssembler* masm, |
+ SaveFPRegsMode save_doubles) { |
{ |
FrameScope scope(masm, StackFrame::INTERNAL); |
@@ -901,7 +902,7 @@ void Builtins::Generate_NotifyStubFailure(MacroAssembler* masm) { |
// registers. |
__ MultiPush(kJSCallerSaved | kCalleeSaved); |
// Pass the function and deoptimization type to the runtime system. |
- __ CallRuntime(Runtime::kNotifyStubFailure, 0); |
+ __ CallRuntime(Runtime::kNotifyStubFailure, 0, save_doubles); |
__ MultiPop(kJSCallerSaved | kCalleeSaved); |
} |
@@ -910,6 +911,16 @@ void Builtins::Generate_NotifyStubFailure(MacroAssembler* masm) { |
} |
+void Builtins::Generate_NotifyStubFailure(MacroAssembler* masm) { |
+ Generate_NotifyStubFailureHelper(masm, kDontSaveFPRegs); |
+} |
+ |
+ |
+void Builtins::Generate_NotifyStubFailureSaveDoubles(MacroAssembler* masm) { |
+ Generate_NotifyStubFailureHelper(masm, kSaveFPRegs); |
+} |
+ |
+ |
static void Generate_NotifyDeoptimizedHelper(MacroAssembler* masm, |
Deoptimizer::BailoutType type) { |
{ |