Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Side by Side Diff: src/arm/code-stubs-arm.cc

Issue 12093089: Support pass-through of stub caller arguments (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix bugs Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/arm/deoptimizer-arm.cc » ('j') | src/frames.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 7861 matching lines...) Expand 10 before | Expand all | Expand 10 after
7872 &slow_elements); 7872 &slow_elements);
7873 __ Ret(); 7873 __ Ret();
7874 } 7874 }
7875 7875
7876 7876
7877 void StubFailureTrampolineStub::Generate(MacroAssembler* masm) { 7877 void StubFailureTrampolineStub::Generate(MacroAssembler* masm) {
7878 ASSERT(!Serializer::enabled()); 7878 ASSERT(!Serializer::enabled());
7879 bool save_fp_regs = CpuFeatures::IsSupported(VFP2); 7879 bool save_fp_regs = CpuFeatures::IsSupported(VFP2);
7880 CEntryStub ces(1, save_fp_regs ? kSaveFPRegs : kDontSaveFPRegs); 7880 CEntryStub ces(1, save_fp_regs ? kSaveFPRegs : kDontSaveFPRegs);
7881 __ Call(ces.GetCode(), RelocInfo::CODE_TARGET); 7881 __ Call(ces.GetCode(), RelocInfo::CODE_TARGET);
7882 int parameter_count_offset =
7883 StubFailureTrampolineFrame::kCallerStackParameterCountFrameOffset;
7884 __ ldr(r1, MemOperand(fp, parameter_count_offset));
7882 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); 7885 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE);
7886 __ mov(r1, Operand(r1, LSL, kPointerSizeLog2));
7887 __ add(sp, sp, r1);
7883 __ Ret(); 7888 __ Ret();
7884 } 7889 }
7885 7890
7886 7891
7887 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { 7892 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) {
7888 if (entry_hook_ != NULL) { 7893 if (entry_hook_ != NULL) {
7889 PredictableCodeSizeScope predictable(masm, 4 * Assembler::kInstrSize); 7894 PredictableCodeSizeScope predictable(masm, 4 * Assembler::kInstrSize);
7890 ProfileEntryHookStub stub; 7895 ProfileEntryHookStub stub;
7891 __ push(lr); 7896 __ push(lr);
7892 __ CallStub(&stub); 7897 __ CallStub(&stub);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
7941 7946
7942 __ Pop(lr, r5, r1); 7947 __ Pop(lr, r5, r1);
7943 __ Ret(); 7948 __ Ret();
7944 } 7949 }
7945 7950
7946 #undef __ 7951 #undef __
7947 7952
7948 } } // namespace v8::internal 7953 } } // namespace v8::internal
7949 7954
7950 #endif // V8_TARGET_ARCH_ARM 7955 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/deoptimizer-arm.cc » ('j') | src/frames.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698