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

Side by Side Diff: src/x64/code-stubs-x64.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/s390/interface-descriptors-s390.cc ('k') | src/x64/interface-descriptors-x64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_X64 5 #if V8_TARGET_ARCH_X64
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 2844 matching lines...) Expand 10 before | Expand all | Expand 10 after
2855 StubFailureTrampolineFrameConstants::kArgumentsLengthOffset; 2855 StubFailureTrampolineFrameConstants::kArgumentsLengthOffset;
2856 __ movp(rbx, MemOperand(rbp, parameter_count_offset)); 2856 __ movp(rbx, MemOperand(rbp, parameter_count_offset));
2857 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); 2857 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE);
2858 __ PopReturnAddressTo(rcx); 2858 __ PopReturnAddressTo(rcx);
2859 int additional_offset = 2859 int additional_offset =
2860 function_mode() == JS_FUNCTION_STUB_MODE ? kPointerSize : 0; 2860 function_mode() == JS_FUNCTION_STUB_MODE ? kPointerSize : 0;
2861 __ leap(rsp, MemOperand(rsp, rbx, times_pointer_size, additional_offset)); 2861 __ leap(rsp, MemOperand(rsp, rbx, times_pointer_size, additional_offset));
2862 __ jmp(rcx); // Return to IC Miss stub, continuation still on stack. 2862 __ jmp(rcx); // Return to IC Miss stub, continuation still on stack.
2863 } 2863 }
2864 2864
2865 void CallICTrampolineStub::Generate(MacroAssembler* masm) {
2866 __ EmitLoadTypeFeedbackVector(rbx);
2867 CallICStub stub(isolate(), state());
2868 __ jmp(stub.GetCode(), RelocInfo::CODE_TARGET);
2869 }
2870
2871 2865
2872 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { 2866 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) {
2873 if (masm->isolate()->function_entry_hook() != NULL) { 2867 if (masm->isolate()->function_entry_hook() != NULL) {
2874 ProfileEntryHookStub stub(masm->isolate()); 2868 ProfileEntryHookStub stub(masm->isolate());
2875 masm->CallStub(&stub); 2869 masm->CallStub(&stub);
2876 } 2870 }
2877 } 2871 }
2878 2872
2879 2873
2880 void ProfileEntryHookStub::Generate(MacroAssembler* masm) { 2874 void ProfileEntryHookStub::Generate(MacroAssembler* masm) {
(...skipping 1251 matching lines...) Expand 10 before | Expand all | Expand 10 after
4132 kStackUnwindSpace, nullptr, return_value_operand, 4126 kStackUnwindSpace, nullptr, return_value_operand,
4133 NULL); 4127 NULL);
4134 } 4128 }
4135 4129
4136 #undef __ 4130 #undef __
4137 4131
4138 } // namespace internal 4132 } // namespace internal
4139 } // namespace v8 4133 } // namespace v8
4140 4134
4141 #endif // V8_TARGET_ARCH_X64 4135 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/s390/interface-descriptors-s390.cc ('k') | src/x64/interface-descriptors-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698