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 7849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7860 &slow_elements); | 7860 &slow_elements); |
7861 __ Ret(); | 7861 __ Ret(); |
7862 } | 7862 } |
7863 | 7863 |
7864 | 7864 |
7865 void StubFailureTrampolineStub::Generate(MacroAssembler* masm) { | 7865 void StubFailureTrampolineStub::Generate(MacroAssembler* masm) { |
7866 ASSERT(!Serializer::enabled()); | 7866 ASSERT(!Serializer::enabled()); |
7867 bool save_fp_regs = CpuFeatures::IsSupported(VFP2); | 7867 bool save_fp_regs = CpuFeatures::IsSupported(VFP2); |
7868 CEntryStub ces(1, save_fp_regs ? kSaveFPRegs : kDontSaveFPRegs); | 7868 CEntryStub ces(1, save_fp_regs ? kSaveFPRegs : kDontSaveFPRegs); |
7869 __ Call(ces.GetCode(), RelocInfo::CODE_TARGET); | 7869 __ Call(ces.GetCode(), RelocInfo::CODE_TARGET); |
| 7870 __ ldr(r1, MemOperand(fp, StandardFrameConstants::kMarkerOffset - |
| 7871 2 * kPointerSize)); |
7870 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); | 7872 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); |
| 7873 __ mov(r1, Operand(r1, LSL, kPointerSizeLog2)); |
| 7874 __ add(sp, sp, r1); |
7871 __ Ret(); | 7875 __ Ret(); |
7872 } | 7876 } |
7873 | 7877 |
7874 | 7878 |
7875 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { | 7879 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { |
7876 if (entry_hook_ != NULL) { | 7880 if (entry_hook_ != NULL) { |
7877 PredictableCodeSizeScope predictable(masm, 4 * Assembler::kInstrSize); | 7881 PredictableCodeSizeScope predictable(masm, 4 * Assembler::kInstrSize); |
7878 ProfileEntryHookStub stub; | 7882 ProfileEntryHookStub stub; |
7879 __ push(lr); | 7883 __ push(lr); |
7880 __ CallStub(&stub); | 7884 __ CallStub(&stub); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7929 | 7933 |
7930 __ Pop(lr, r5, r1); | 7934 __ Pop(lr, r5, r1); |
7931 __ Ret(); | 7935 __ Ret(); |
7932 } | 7936 } |
7933 | 7937 |
7934 #undef __ | 7938 #undef __ |
7935 | 7939 |
7936 } } // namespace v8::internal | 7940 } } // namespace v8::internal |
7937 | 7941 |
7938 #endif // V8_TARGET_ARCH_ARM | 7942 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |