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

Side by Side Diff: src/ppc/code-stubs-ppc.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/mips64/interface-descriptors-mips64.cc ('k') | src/ppc/interface-descriptors-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
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 3060 matching lines...) Expand 10 before | Expand all | Expand 10 after
3071 __ LoadP(r4, MemOperand(fp, parameter_count_offset)); 3071 __ LoadP(r4, MemOperand(fp, parameter_count_offset));
3072 if (function_mode() == JS_FUNCTION_STUB_MODE) { 3072 if (function_mode() == JS_FUNCTION_STUB_MODE) {
3073 __ addi(r4, r4, Operand(1)); 3073 __ addi(r4, r4, Operand(1));
3074 } 3074 }
3075 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); 3075 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE);
3076 __ slwi(r4, r4, Operand(kPointerSizeLog2)); 3076 __ slwi(r4, r4, Operand(kPointerSizeLog2));
3077 __ add(sp, sp, r4); 3077 __ add(sp, sp, r4);
3078 __ Ret(); 3078 __ Ret();
3079 } 3079 }
3080 3080
3081 void CallICTrampolineStub::Generate(MacroAssembler* masm) {
3082 __ EmitLoadTypeFeedbackVector(r5);
3083 CallICStub stub(isolate(), state());
3084 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET);
3085 }
3086
3087 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { 3081 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) {
3088 if (masm->isolate()->function_entry_hook() != NULL) { 3082 if (masm->isolate()->function_entry_hook() != NULL) {
3089 PredictableCodeSizeScope predictable(masm, 3083 PredictableCodeSizeScope predictable(masm,
3090 #if V8_TARGET_ARCH_PPC64 3084 #if V8_TARGET_ARCH_PPC64
3091 14 * Assembler::kInstrSize); 3085 14 * Assembler::kInstrSize);
3092 #else 3086 #else
3093 11 * Assembler::kInstrSize); 3087 11 * Assembler::kInstrSize);
3094 #endif 3088 #endif
3095 ProfileEntryHookStub stub(masm->isolate()); 3089 ProfileEntryHookStub stub(masm->isolate());
3096 __ mflr(r0); 3090 __ mflr(r0);
(...skipping 1254 matching lines...) Expand 10 before | Expand all | Expand 10 after
4351 fp, (PropertyCallbackArguments::kReturnValueOffset + 3) * kPointerSize); 4345 fp, (PropertyCallbackArguments::kReturnValueOffset + 3) * kPointerSize);
4352 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, 4346 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref,
4353 kStackUnwindSpace, NULL, return_value_operand, NULL); 4347 kStackUnwindSpace, NULL, return_value_operand, NULL);
4354 } 4348 }
4355 4349
4356 #undef __ 4350 #undef __
4357 } // namespace internal 4351 } // namespace internal
4358 } // namespace v8 4352 } // namespace v8
4359 4353
4360 #endif // V8_TARGET_ARCH_PPC 4354 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/mips64/interface-descriptors-mips64.cc ('k') | src/ppc/interface-descriptors-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698