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

Side by Side Diff: src/arm64/code-stubs-arm64.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/arm/code-stubs-arm.cc ('k') | src/code-stubs.h » ('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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM64 7 #if V8_TARGET_ARCH_ARM64
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 5157 matching lines...) Expand 10 before | Expand all | Expand 10 after
5168 5168
5169 void CallApiFunctionStub::Generate(MacroAssembler* masm) { 5169 void CallApiFunctionStub::Generate(MacroAssembler* masm) {
5170 bool call_data_undefined = this->call_data_undefined(); 5170 bool call_data_undefined = this->call_data_undefined();
5171 CallApiFunctionStubHelper(masm, ParameterCount(x3), false, 5171 CallApiFunctionStubHelper(masm, ParameterCount(x3), false,
5172 call_data_undefined); 5172 call_data_undefined);
5173 } 5173 }
5174 5174
5175 5175
5176 void CallApiAccessorStub::Generate(MacroAssembler* masm) { 5176 void CallApiAccessorStub::Generate(MacroAssembler* masm) {
5177 bool is_store = this->is_store(); 5177 bool is_store = this->is_store();
5178 int argc = is_store ? 1 : 0; 5178 int argc = this->argc();
5179 bool call_data_undefined = this->call_data_undefined(); 5179 bool call_data_undefined = this->call_data_undefined();
5180 CallApiFunctionStubHelper(masm, ParameterCount(argc), is_store, 5180 CallApiFunctionStubHelper(masm, ParameterCount(argc), is_store,
5181 call_data_undefined); 5181 call_data_undefined);
5182 } 5182 }
5183 5183
5184 5184
5185 void CallApiGetterStub::Generate(MacroAssembler* masm) { 5185 void CallApiGetterStub::Generate(MacroAssembler* masm) {
5186 // ----------- S t a t e ------------- 5186 // ----------- S t a t e -------------
5187 // -- sp[0] : name 5187 // -- sp[0] : name
5188 // -- sp[8 - kArgsLength*8] : PropertyCallbackArguments object 5188 // -- sp[8 - kArgsLength*8] : PropertyCallbackArguments object
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
5220 kStackUnwindSpace, NULL, spill_offset, 5220 kStackUnwindSpace, NULL, spill_offset,
5221 MemOperand(fp, 6 * kPointerSize), NULL); 5221 MemOperand(fp, 6 * kPointerSize), NULL);
5222 } 5222 }
5223 5223
5224 5224
5225 #undef __ 5225 #undef __
5226 5226
5227 } } // namespace v8::internal 5227 } } // namespace v8::internal
5228 5228
5229 #endif // V8_TARGET_ARCH_ARM64 5229 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698