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 7976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7987 __ Ret(USE_DELAY_SLOT); | 7987 __ Ret(USE_DELAY_SLOT); |
7988 __ mov(v0, a0); | 7988 __ mov(v0, a0); |
7989 } | 7989 } |
7990 | 7990 |
7991 | 7991 |
7992 void StubFailureTrampolineStub::Generate(MacroAssembler* masm) { | 7992 void StubFailureTrampolineStub::Generate(MacroAssembler* masm) { |
7993 ASSERT(!Serializer::enabled()); | 7993 ASSERT(!Serializer::enabled()); |
7994 bool save_fp_regs = CpuFeatures::IsSupported(FPU); | 7994 bool save_fp_regs = CpuFeatures::IsSupported(FPU); |
7995 CEntryStub ces(1, save_fp_regs ? kSaveFPRegs : kDontSaveFPRegs); | 7995 CEntryStub ces(1, save_fp_regs ? kSaveFPRegs : kDontSaveFPRegs); |
7996 __ Call(ces.GetCode(), RelocInfo::CODE_TARGET); | 7996 __ Call(ces.GetCode(), RelocInfo::CODE_TARGET); |
| 7997 int parameter_count_offset = |
| 7998 StubFailureTrampolineFrame::kCallerStackParameterCountFrameOffset; |
| 7999 __ lw(a1, MemOperand(fp, parameter_count_offset)); |
7997 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); | 8000 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); |
| 8001 __ sll(a1, a1, kPointerSizeLog2); |
| 8002 __ Addu(sp, sp, a1); |
7998 __ Ret(); | 8003 __ Ret(); |
7999 } | 8004 } |
8000 | 8005 |
8001 | 8006 |
8002 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { | 8007 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { |
8003 if (entry_hook_ != NULL) { | 8008 if (entry_hook_ != NULL) { |
8004 ProfileEntryHookStub stub; | 8009 ProfileEntryHookStub stub; |
8005 __ push(ra); | 8010 __ push(ra); |
8006 __ CallStub(&stub); | 8011 __ CallStub(&stub); |
8007 __ pop(ra); | 8012 __ pop(ra); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8057 __ Pop(ra, t1, a1); | 8062 __ Pop(ra, t1, a1); |
8058 __ Ret(); | 8063 __ Ret(); |
8059 } | 8064 } |
8060 | 8065 |
8061 | 8066 |
8062 #undef __ | 8067 #undef __ |
8063 | 8068 |
8064 } } // namespace v8::internal | 8069 } } // namespace v8::internal |
8065 | 8070 |
8066 #endif // V8_TARGET_ARCH_MIPS | 8071 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |