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

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

Issue 859783002: add stub for api function calls with known number of parameters (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 5 years, 11 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/code-stubs-mips64.cc ('k') | no next file » | 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 4754 matching lines...) Expand 10 before | Expand all | Expand 10 after
4765 void CallApiFunctionStub::Generate(MacroAssembler* masm) { 4765 void CallApiFunctionStub::Generate(MacroAssembler* masm) {
4766 // TODO(dcarney): make rax contain the function address. 4766 // TODO(dcarney): make rax contain the function address.
4767 bool call_data_undefined = this->call_data_undefined(); 4767 bool call_data_undefined = this->call_data_undefined();
4768 CallApiFunctionStubHelper(masm, ParameterCount(rdi), false, 4768 CallApiFunctionStubHelper(masm, ParameterCount(rdi), false,
4769 call_data_undefined); 4769 call_data_undefined);
4770 } 4770 }
4771 4771
4772 4772
4773 void CallApiAccessorStub::Generate(MacroAssembler* masm) { 4773 void CallApiAccessorStub::Generate(MacroAssembler* masm) {
4774 bool is_store = this->is_store(); 4774 bool is_store = this->is_store();
4775 int argc = is_store ? 1 : 0; 4775 int argc = this->argc();
4776 bool call_data_undefined = this->call_data_undefined(); 4776 bool call_data_undefined = this->call_data_undefined();
4777 CallApiFunctionStubHelper(masm, ParameterCount(argc), is_store, 4777 CallApiFunctionStubHelper(masm, ParameterCount(argc), is_store,
4778 call_data_undefined); 4778 call_data_undefined);
4779 } 4779 }
4780 4780
4781 4781
4782 void CallApiGetterStub::Generate(MacroAssembler* masm) { 4782 void CallApiGetterStub::Generate(MacroAssembler* masm) {
4783 // ----------- S t a t e ------------- 4783 // ----------- S t a t e -------------
4784 // -- rsp[0] : return address 4784 // -- rsp[0] : return address
4785 // -- rsp[8] : name 4785 // -- rsp[8] : name
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
4835 __ CallApiFunctionAndReturn(api_function_address, thunk_ref, getter_arg, 4835 __ CallApiFunctionAndReturn(api_function_address, thunk_ref, getter_arg,
4836 kStackSpace, nullptr, return_value_operand, NULL); 4836 kStackSpace, nullptr, return_value_operand, NULL);
4837 } 4837 }
4838 4838
4839 4839
4840 #undef __ 4840 #undef __
4841 4841
4842 } } // namespace v8::internal 4842 } } // namespace v8::internal
4843 4843
4844 #endif // V8_TARGET_ARCH_X64 4844 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/mips64/code-stubs-mips64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698