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

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

Issue 2655233002: [turbofan] Introduce JSCallForwardVarargs operator. (Closed)
Patch Set: Fix formatting. Created 3 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/interface-descriptors-arm.cc ('k') | src/builtins/arm/builtins-arm.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/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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 193
194 194
195 void CallTrampolineDescriptor::InitializePlatformSpecific( 195 void CallTrampolineDescriptor::InitializePlatformSpecific(
196 CallInterfaceDescriptorData* data) { 196 CallInterfaceDescriptorData* data) {
197 // x1: target 197 // x1: target
198 // x0: number of arguments 198 // x0: number of arguments
199 Register registers[] = {x1, x0}; 199 Register registers[] = {x1, x0};
200 data->InitializePlatformSpecific(arraysize(registers), registers); 200 data->InitializePlatformSpecific(arraysize(registers), registers);
201 } 201 }
202 202
203 void CallForwardVarargsDescriptor::InitializePlatformSpecific(
204 CallInterfaceDescriptorData* data) {
205 // x1: target
206 // x2: start index (to supported rest parameters)
207 Register registers[] = {x1, x2};
208 data->InitializePlatformSpecific(arraysize(registers), registers);
209 }
203 210
204 void ConstructStubDescriptor::InitializePlatformSpecific( 211 void ConstructStubDescriptor::InitializePlatformSpecific(
205 CallInterfaceDescriptorData* data) { 212 CallInterfaceDescriptorData* data) {
206 // x3: new target 213 // x3: new target
207 // x1: target 214 // x1: target
208 // x0: number of arguments 215 // x0: number of arguments
209 // x2: allocation site or undefined 216 // x2: allocation site or undefined
210 Register registers[] = {x1, x3, x0, x2}; 217 Register registers[] = {x1, x3, x0, x2};
211 data->InitializePlatformSpecific(arraysize(registers), registers); 218 data->InitializePlatformSpecific(arraysize(registers), registers);
212 } 219 }
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 x1, // the JSGeneratorObject to resume 465 x1, // the JSGeneratorObject to resume
459 x2 // the resume mode (tagged) 466 x2 // the resume mode (tagged)
460 }; 467 };
461 data->InitializePlatformSpecific(arraysize(registers), registers); 468 data->InitializePlatformSpecific(arraysize(registers), registers);
462 } 469 }
463 470
464 } // namespace internal 471 } // namespace internal
465 } // namespace v8 472 } // namespace v8
466 473
467 #endif // V8_TARGET_ARCH_ARM64 474 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/interface-descriptors-arm.cc ('k') | src/builtins/arm/builtins-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698