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

Side by Side Diff: src/ia32/code-stubs-ia32.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/hydrogen.cc ('k') | src/mips/code-stubs-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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 4811 matching lines...) Expand 10 before | Expand all | Expand 10 after
4822 void CallApiFunctionStub::Generate(MacroAssembler* masm) { 4822 void CallApiFunctionStub::Generate(MacroAssembler* masm) {
4823 // TODO(dcarney): make eax contain the function address. 4823 // TODO(dcarney): make eax contain the function address.
4824 bool call_data_undefined = this->call_data_undefined(); 4824 bool call_data_undefined = this->call_data_undefined();
4825 CallApiFunctionStubHelper(masm, ParameterCount(edi), false, 4825 CallApiFunctionStubHelper(masm, ParameterCount(edi), false,
4826 call_data_undefined); 4826 call_data_undefined);
4827 } 4827 }
4828 4828
4829 4829
4830 void CallApiAccessorStub::Generate(MacroAssembler* masm) { 4830 void CallApiAccessorStub::Generate(MacroAssembler* masm) {
4831 bool is_store = this->is_store(); 4831 bool is_store = this->is_store();
4832 int argc = is_store ? 1 : 0; 4832 int argc = this->argc();
4833 bool call_data_undefined = this->call_data_undefined(); 4833 bool call_data_undefined = this->call_data_undefined();
4834 CallApiFunctionStubHelper(masm, ParameterCount(argc), is_store, 4834 CallApiFunctionStubHelper(masm, ParameterCount(argc), is_store,
4835 call_data_undefined); 4835 call_data_undefined);
4836 } 4836 }
4837 4837
4838 4838
4839 void CallApiGetterStub::Generate(MacroAssembler* masm) { 4839 void CallApiGetterStub::Generate(MacroAssembler* masm) {
4840 // ----------- S t a t e ------------- 4840 // ----------- S t a t e -------------
4841 // -- esp[0] : return address 4841 // -- esp[0] : return address
4842 // -- esp[4] : name 4842 // -- esp[4] : name
(...skipping 28 matching lines...) Expand all
4871 ApiParameterOperand(2), kStackSpace, nullptr, 4871 ApiParameterOperand(2), kStackSpace, nullptr,
4872 Operand(ebp, 7 * kPointerSize), NULL); 4872 Operand(ebp, 7 * kPointerSize), NULL);
4873 } 4873 }
4874 4874
4875 4875
4876 #undef __ 4876 #undef __
4877 4877
4878 } } // namespace v8::internal 4878 } } // namespace v8::internal
4879 4879
4880 #endif // V8_TARGET_ARCH_IA32 4880 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698