| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 851 GenerateMakeCodeYoungAgainCommon(masm); \ | 851 GenerateMakeCodeYoungAgainCommon(masm); \ |
| 852 } \ | 852 } \ |
| 853 void Builtins::Generate_Make##C##CodeYoungAgainOddMarking( \ | 853 void Builtins::Generate_Make##C##CodeYoungAgainOddMarking( \ |
| 854 MacroAssembler* masm) { \ | 854 MacroAssembler* masm) { \ |
| 855 GenerateMakeCodeYoungAgainCommon(masm); \ | 855 GenerateMakeCodeYoungAgainCommon(masm); \ |
| 856 } | 856 } |
| 857 CODE_AGE_LIST(DEFINE_CODE_AGE_BUILTIN_GENERATOR) | 857 CODE_AGE_LIST(DEFINE_CODE_AGE_BUILTIN_GENERATOR) |
| 858 #undef DEFINE_CODE_AGE_BUILTIN_GENERATOR | 858 #undef DEFINE_CODE_AGE_BUILTIN_GENERATOR |
| 859 | 859 |
| 860 | 860 |
| 861 void Builtins::Generate_NotifyStubFailure(MacroAssembler* masm) { | 861 static void Generate_NotifyStubFailureHelper(MacroAssembler* masm, |
| 862 SaveFPRegsMode save_doubles) { |
| 862 { | 863 { |
| 863 FrameScope scope(masm, StackFrame::INTERNAL); | 864 FrameScope scope(masm, StackFrame::INTERNAL); |
| 864 | 865 |
| 865 // Preserve registers across notification, this is important for compiled | 866 // Preserve registers across notification, this is important for compiled |
| 866 // stubs that tail call the runtime on deopts passing their parameters in | 867 // stubs that tail call the runtime on deopts passing their parameters in |
| 867 // registers. | 868 // registers. |
| 868 __ MultiPush(kJSCallerSaved | kCalleeSaved); | 869 __ MultiPush(kJSCallerSaved | kCalleeSaved); |
| 869 // Pass the function and deoptimization type to the runtime system. | 870 // Pass the function and deoptimization type to the runtime system. |
| 870 __ CallRuntime(Runtime::kNotifyStubFailure, 0); | 871 __ CallRuntime(Runtime::kNotifyStubFailure, 0, save_doubles); |
| 871 __ MultiPop(kJSCallerSaved | kCalleeSaved); | 872 __ MultiPop(kJSCallerSaved | kCalleeSaved); |
| 872 } | 873 } |
| 873 | 874 |
| 874 __ Addu(sp, sp, Operand(kPointerSize)); // Ignore state | 875 __ Addu(sp, sp, Operand(kPointerSize)); // Ignore state |
| 875 __ Jump(ra); // Jump to miss handler | 876 __ Jump(ra); // Jump to miss handler |
| 876 } | 877 } |
| 877 | 878 |
| 878 | 879 |
| 880 void Builtins::Generate_NotifyStubFailure(MacroAssembler* masm) { |
| 881 Generate_NotifyStubFailureHelper(masm, kDontSaveFPRegs); |
| 882 } |
| 883 |
| 884 |
| 885 void Builtins::Generate_NotifyStubFailureSaveDoubles(MacroAssembler* masm) { |
| 886 Generate_NotifyStubFailureHelper(masm, kSaveFPRegs); |
| 887 } |
| 888 |
| 889 |
| 879 static void Generate_NotifyDeoptimizedHelper(MacroAssembler* masm, | 890 static void Generate_NotifyDeoptimizedHelper(MacroAssembler* masm, |
| 880 Deoptimizer::BailoutType type) { | 891 Deoptimizer::BailoutType type) { |
| 881 { | 892 { |
| 882 FrameScope scope(masm, StackFrame::INTERNAL); | 893 FrameScope scope(masm, StackFrame::INTERNAL); |
| 883 // Pass the function and deoptimization type to the runtime system. | 894 // Pass the function and deoptimization type to the runtime system. |
| 884 __ li(a0, Operand(Smi::FromInt(static_cast<int>(type)))); | 895 __ li(a0, Operand(Smi::FromInt(static_cast<int>(type)))); |
| 885 __ push(a0); | 896 __ push(a0); |
| 886 __ CallRuntime(Runtime::kNotifyDeoptimized, 1); | 897 __ CallRuntime(Runtime::kNotifyDeoptimized, 1); |
| 887 } | 898 } |
| 888 | 899 |
| (...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1475 __ bind(&dont_adapt_arguments); | 1486 __ bind(&dont_adapt_arguments); |
| 1476 __ Jump(a3); | 1487 __ Jump(a3); |
| 1477 } | 1488 } |
| 1478 | 1489 |
| 1479 | 1490 |
| 1480 #undef __ | 1491 #undef __ |
| 1481 | 1492 |
| 1482 } } // namespace v8::internal | 1493 } } // namespace v8::internal |
| 1483 | 1494 |
| 1484 #endif // V8_TARGET_ARCH_MIPS | 1495 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |