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

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

Issue 12052053: Add StubFailureTrampolineFrames (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove extraneous change Created 7 years, 11 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 | « src/arm/builtins-arm.cc ('k') | src/arm/deoptimizer-arm.cc » ('j') | no next file with comments »
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 7774 matching lines...) Expand 10 before | Expand all | Expand 10 after
7785 __ bind(&double_elements); 7785 __ bind(&double_elements);
7786 __ ldr(r5, FieldMemOperand(r1, JSObject::kElementsOffset)); 7786 __ ldr(r5, FieldMemOperand(r1, JSObject::kElementsOffset));
7787 __ StoreNumberToDoubleElements(r0, r3, 7787 __ StoreNumberToDoubleElements(r0, r3,
7788 // Overwrites all regs after this. 7788 // Overwrites all regs after this.
7789 r5, r6, r7, r9, r2, 7789 r5, r6, r7, r9, r2,
7790 &slow_elements); 7790 &slow_elements);
7791 __ Ret(); 7791 __ Ret();
7792 } 7792 }
7793 7793
7794 7794
7795 void StubFailureTrampolineStub::Generate(MacroAssembler* masm) {
7796 ASSERT(!Serializer::enabled());
7797 bool save_fp_regs = CpuFeatures::IsSupported(VFP2);
7798 CEntryStub ces(1, save_fp_regs ? kSaveFPRegs : kDontSaveFPRegs);
7799 __ Call(ces.GetCode(), RelocInfo::CODE_TARGET);
7800 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE);
7801 __ Ret();
7802 }
7803
7804
7795 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { 7805 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) {
7796 if (entry_hook_ != NULL) { 7806 if (entry_hook_ != NULL) {
7797 PredictableCodeSizeScope predictable(masm, 4 * Assembler::kInstrSize); 7807 PredictableCodeSizeScope predictable(masm, 4 * Assembler::kInstrSize);
7798 ProfileEntryHookStub stub; 7808 ProfileEntryHookStub stub;
7799 __ push(lr); 7809 __ push(lr);
7800 __ CallStub(&stub); 7810 __ CallStub(&stub);
7801 __ pop(lr); 7811 __ pop(lr);
7802 } 7812 }
7803 } 7813 }
7804 7814
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
7849 7859
7850 __ Pop(lr, r5, r1); 7860 __ Pop(lr, r5, r1);
7851 __ Ret(); 7861 __ Ret();
7852 } 7862 }
7853 7863
7854 #undef __ 7864 #undef __
7855 7865
7856 } } // namespace v8::internal 7866 } } // namespace v8::internal
7857 7867
7858 #endif // V8_TARGET_ARCH_ARM 7868 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/builtins-arm.cc ('k') | src/arm/deoptimizer-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698