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

Side by Side Diff: src/mips64/code-stubs-mips64.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/mips/interface-descriptors-mips.cc ('k') | src/mips64/interface-descriptors-mips64.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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
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/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 3120 matching lines...) Expand 10 before | Expand all | Expand 10 after
3131 __ ld(a1, MemOperand(fp, parameter_count_offset)); 3131 __ ld(a1, MemOperand(fp, parameter_count_offset));
3132 if (function_mode() == JS_FUNCTION_STUB_MODE) { 3132 if (function_mode() == JS_FUNCTION_STUB_MODE) {
3133 __ Daddu(a1, a1, Operand(1)); 3133 __ Daddu(a1, a1, Operand(1));
3134 } 3134 }
3135 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); 3135 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE);
3136 __ dsll(a1, a1, kPointerSizeLog2); 3136 __ dsll(a1, a1, kPointerSizeLog2);
3137 __ Ret(USE_DELAY_SLOT); 3137 __ Ret(USE_DELAY_SLOT);
3138 __ Daddu(sp, sp, a1); 3138 __ Daddu(sp, sp, a1);
3139 } 3139 }
3140 3140
3141 void CallICTrampolineStub::Generate(MacroAssembler* masm) {
3142 __ EmitLoadTypeFeedbackVector(a2);
3143 CallICStub stub(isolate(), state());
3144 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET);
3145 }
3146
3147 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { 3141 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) {
3148 if (masm->isolate()->function_entry_hook() != NULL) { 3142 if (masm->isolate()->function_entry_hook() != NULL) {
3149 ProfileEntryHookStub stub(masm->isolate()); 3143 ProfileEntryHookStub stub(masm->isolate());
3150 __ push(ra); 3144 __ push(ra);
3151 __ CallStub(&stub); 3145 __ CallStub(&stub);
3152 __ pop(ra); 3146 __ pop(ra);
3153 } 3147 }
3154 } 3148 }
3155 3149
3156 3150
(...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after
4317 kStackUnwindSpace, kInvalidStackOffset, 4311 kStackUnwindSpace, kInvalidStackOffset,
4318 return_value_operand, NULL); 4312 return_value_operand, NULL);
4319 } 4313 }
4320 4314
4321 #undef __ 4315 #undef __
4322 4316
4323 } // namespace internal 4317 } // namespace internal
4324 } // namespace v8 4318 } // namespace v8
4325 4319
4326 #endif // V8_TARGET_ARCH_MIPS64 4320 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/interface-descriptors-mips.cc ('k') | src/mips64/interface-descriptors-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698