| Index: src/ia32/builtins-ia32.cc
|
| diff --git a/src/ia32/builtins-ia32.cc b/src/ia32/builtins-ia32.cc
|
| index a1597481aa62738eb21c9832901934ce60a44256..25579df10727b641e82cb217bb0316dbcfc82105 100644
|
| --- a/src/ia32/builtins-ia32.cc
|
| +++ b/src/ia32/builtins-ia32.cc
|
| @@ -561,7 +561,8 @@ CODE_AGE_LIST(DEFINE_CODE_AGE_BUILTIN_GENERATOR)
|
| #undef DEFINE_CODE_AGE_BUILTIN_GENERATOR
|
|
|
|
|
| -void Builtins::Generate_NotifyStubFailure(MacroAssembler* masm) {
|
| +static void Generate_NotifyStubFailureHelper(MacroAssembler* masm,
|
| + SaveFPRegsMode save_doubles) {
|
| // Enter an internal frame.
|
| {
|
| FrameScope scope(masm, StackFrame::INTERNAL);
|
| @@ -570,7 +571,7 @@ void Builtins::Generate_NotifyStubFailure(MacroAssembler* masm) {
|
| // stubs that tail call the runtime on deopts passing their parameters in
|
| // registers.
|
| __ pushad();
|
| - __ CallRuntime(Runtime::kNotifyStubFailure, 0);
|
| + __ CallRuntime(Runtime::kNotifyStubFailure, 0, save_doubles);
|
| __ popad();
|
| // Tear down internal frame.
|
| }
|
| @@ -580,6 +581,21 @@ void Builtins::Generate_NotifyStubFailure(MacroAssembler* masm) {
|
| }
|
|
|
|
|
| +void Builtins::Generate_NotifyStubFailure(MacroAssembler* masm) {
|
| + Generate_NotifyStubFailureHelper(masm, kDontSaveFPRegs);
|
| +}
|
| +
|
| +
|
| +void Builtins::Generate_NotifyStubFailureSaveDoubles(MacroAssembler* masm) {
|
| + if (Serializer::enabled()) {
|
| + PlatformFeatureScope sse2(SSE2);
|
| + Generate_NotifyStubFailureHelper(masm, kSaveFPRegs);
|
| + } else {
|
| + Generate_NotifyStubFailureHelper(masm, kSaveFPRegs);
|
| + }
|
| +}
|
| +
|
| +
|
| static void Generate_NotifyDeoptimizedHelper(MacroAssembler* masm,
|
| Deoptimizer::BailoutType type) {
|
| {
|
|
|