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

Side by Side Diff: src/arm64/interface-descriptors-arm64.cc

Issue 2412453005: [stubs] Refactor the CallICStub to pass the number of arguments. (Closed)
Patch Set: Created 4 years, 2 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/arm64/code-stubs-arm64.cc ('k') | src/code-factory.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 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/arm64/interface-descriptors-arm64.h" 5 #include "src/arm64/interface-descriptors-arm64.h"
6 6
7 #if V8_TARGET_ARCH_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "src/interface-descriptors.h" 9 #include "src/interface-descriptors.h"
10 10
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 174
175 void CallFunctionWithFeedbackDescriptor::InitializePlatformSpecific( 175 void CallFunctionWithFeedbackDescriptor::InitializePlatformSpecific(
176 CallInterfaceDescriptorData* data) { 176 CallInterfaceDescriptorData* data) {
177 Register registers[] = {x1, x3}; 177 Register registers[] = {x1, x3};
178 data->InitializePlatformSpecific(arraysize(registers), registers); 178 data->InitializePlatformSpecific(arraysize(registers), registers);
179 } 179 }
180 180
181 181
182 void CallFunctionWithFeedbackAndVectorDescriptor::InitializePlatformSpecific( 182 void CallFunctionWithFeedbackAndVectorDescriptor::InitializePlatformSpecific(
183 CallInterfaceDescriptorData* data) { 183 CallInterfaceDescriptorData* data) {
184 Register registers[] = {x1, x3, x2}; 184 Register registers[] = {x1, x0, x3, x2};
185 data->InitializePlatformSpecific(arraysize(registers), registers); 185 data->InitializePlatformSpecific(arraysize(registers), registers);
186 } 186 }
187 187
188 188
189 void CallConstructDescriptor::InitializePlatformSpecific( 189 void CallConstructDescriptor::InitializePlatformSpecific(
190 CallInterfaceDescriptorData* data) { 190 CallInterfaceDescriptorData* data) {
191 // x0 : number of arguments 191 // x0 : number of arguments
192 // x1 : the function to call 192 // x1 : the function to call
193 // x2 : feedback vector 193 // x2 : feedback vector
194 // x3 : slot in feedback vector (Smi, for RecordCallTarget) 194 // x3 : slot in feedback vector (Smi, for RecordCallTarget)
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 x1, // the JSGeneratorObject to resume 476 x1, // the JSGeneratorObject to resume
477 x2 // the resume mode (tagged) 477 x2 // the resume mode (tagged)
478 }; 478 };
479 data->InitializePlatformSpecific(arraysize(registers), registers); 479 data->InitializePlatformSpecific(arraysize(registers), registers);
480 } 480 }
481 481
482 } // namespace internal 482 } // namespace internal
483 } // namespace v8 483 } // namespace v8
484 484
485 #endif // V8_TARGET_ARCH_ARM64 485 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/code-factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698