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

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

Issue 2669123002: [stubs] Port CallICTrampolineStub to CodeStubAssembler. (Closed)
Patch Set: Fix the CSA verifier issue. Created 3 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
« no previous file with comments | « src/interface-descriptors.cc ('k') | src/mips/interface-descriptors-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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #if V8_TARGET_ARCH_MIPS 5 #if V8_TARGET_ARCH_MIPS
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/api-arguments.h" 8 #include "src/api-arguments.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 3116 matching lines...) Expand 10 before | Expand all | Expand 10 after
3127 __ lw(a1, MemOperand(fp, parameter_count_offset)); 3127 __ lw(a1, MemOperand(fp, parameter_count_offset));
3128 if (function_mode() == JS_FUNCTION_STUB_MODE) { 3128 if (function_mode() == JS_FUNCTION_STUB_MODE) {
3129 __ Addu(a1, a1, Operand(1)); 3129 __ Addu(a1, a1, Operand(1));
3130 } 3130 }
3131 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); 3131 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE);
3132 __ sll(a1, a1, kPointerSizeLog2); 3132 __ sll(a1, a1, kPointerSizeLog2);
3133 __ Ret(USE_DELAY_SLOT); 3133 __ Ret(USE_DELAY_SLOT);
3134 __ Addu(sp, sp, a1); 3134 __ Addu(sp, sp, a1);
3135 } 3135 }
3136 3136
3137 void CallICTrampolineStub::Generate(MacroAssembler* masm) {
3138 __ EmitLoadTypeFeedbackVector(a2);
3139 CallICStub stub(isolate(), state());
3140 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET);
3141 }
3142
3143 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { 3137 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) {
3144 if (masm->isolate()->function_entry_hook() != NULL) { 3138 if (masm->isolate()->function_entry_hook() != NULL) {
3145 ProfileEntryHookStub stub(masm->isolate()); 3139 ProfileEntryHookStub stub(masm->isolate());
3146 __ push(ra); 3140 __ push(ra);
3147 __ CallStub(&stub); 3141 __ CallStub(&stub);
3148 __ pop(ra); 3142 __ pop(ra);
3149 } 3143 }
3150 } 3144 }
3151 3145
3152 3146
(...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after
4292 kStackUnwindSpace, kInvalidStackOffset, 4286 kStackUnwindSpace, kInvalidStackOffset,
4293 return_value_operand, NULL); 4287 return_value_operand, NULL);
4294 } 4288 }
4295 4289
4296 #undef __ 4290 #undef __
4297 4291
4298 } // namespace internal 4292 } // namespace internal
4299 } // namespace v8 4293 } // namespace v8
4300 4294
4301 #endif // V8_TARGET_ARCH_MIPS 4295 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/interface-descriptors.cc ('k') | src/mips/interface-descriptors-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698