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

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

Issue 12087053: MIPS: Add StubFailureTrampolineFrames (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 | « src/mips/builtins-mips.cc ('k') | src/mips/deoptimizer-mips.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 7959 matching lines...) Expand 10 before | Expand all | Expand 10 after
7970 __ lw(t1, FieldMemOperand(a1, JSObject::kElementsOffset)); 7970 __ lw(t1, FieldMemOperand(a1, JSObject::kElementsOffset));
7971 __ StoreNumberToDoubleElements(a0, a3, 7971 __ StoreNumberToDoubleElements(a0, a3,
7972 // Overwrites all regs after this. 7972 // Overwrites all regs after this.
7973 t1, t2, t3, t5, a2, 7973 t1, t2, t3, t5, a2,
7974 &slow_elements); 7974 &slow_elements);
7975 __ Ret(USE_DELAY_SLOT); 7975 __ Ret(USE_DELAY_SLOT);
7976 __ mov(v0, a0); 7976 __ mov(v0, a0);
7977 } 7977 }
7978 7978
7979 7979
7980 void StubFailureTrampolineStub::Generate(MacroAssembler* masm) {
7981 ASSERT(!Serializer::enabled());
7982 bool save_fp_regs = CpuFeatures::IsSupported(FPU);
7983 CEntryStub ces(1, save_fp_regs ? kSaveFPRegs : kDontSaveFPRegs);
7984 __ Call(ces.GetCode(), RelocInfo::CODE_TARGET);
7985 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE);
7986 __ Ret();
7987 }
7988
7989
7980 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { 7990 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) {
7981 if (entry_hook_ != NULL) { 7991 if (entry_hook_ != NULL) {
7982 ProfileEntryHookStub stub; 7992 ProfileEntryHookStub stub;
7983 __ push(ra); 7993 __ push(ra);
7984 __ CallStub(&stub); 7994 __ CallStub(&stub);
7985 __ pop(ra); 7995 __ pop(ra);
7986 } 7996 }
7987 } 7997 }
7988 7998
7989 7999
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
8035 __ Pop(ra, t1, a1); 8045 __ Pop(ra, t1, a1);
8036 __ Ret(); 8046 __ Ret();
8037 } 8047 }
8038 8048
8039 8049
8040 #undef __ 8050 #undef __
8041 8051
8042 } } // namespace v8::internal 8052 } } // namespace v8::internal
8043 8053
8044 #endif // V8_TARGET_ARCH_MIPS 8054 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/builtins-mips.cc ('k') | src/mips/deoptimizer-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698