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

Side by Side Diff: src/x64/interface-descriptors-x64.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/runtime/runtime-compiler.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 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 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/interface-descriptors.h" 7 #include "src/interface-descriptors.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 168
169 169
170 void CallTrampolineDescriptor::InitializePlatformSpecific( 170 void CallTrampolineDescriptor::InitializePlatformSpecific(
171 CallInterfaceDescriptorData* data) { 171 CallInterfaceDescriptorData* data) {
172 // rax : number of arguments 172 // rax : number of arguments
173 // rdi : the target to call 173 // rdi : the target to call
174 Register registers[] = {rdi, rax}; 174 Register registers[] = {rdi, rax};
175 data->InitializePlatformSpecific(arraysize(registers), registers); 175 data->InitializePlatformSpecific(arraysize(registers), registers);
176 } 176 }
177 177
178 void CallForwardVarargsDescriptor::InitializePlatformSpecific(
179 CallInterfaceDescriptorData* data) {
180 // rcx : start index (to support rest parameters)
181 // rdi : the target to call
182 Register registers[] = {rdi, rcx};
183 data->InitializePlatformSpecific(arraysize(registers), registers);
184 }
178 185
179 void ConstructStubDescriptor::InitializePlatformSpecific( 186 void ConstructStubDescriptor::InitializePlatformSpecific(
180 CallInterfaceDescriptorData* data) { 187 CallInterfaceDescriptorData* data) {
181 // rax : number of arguments 188 // rax : number of arguments
182 // rdx : the new target 189 // rdx : the new target
183 // rdi : the target to call 190 // rdi : the target to call
184 // rbx : allocation site or undefined 191 // rbx : allocation site or undefined
185 Register registers[] = {rdi, rdx, rax, rbx}; 192 Register registers[] = {rdi, rdx, rax, rbx};
186 data->InitializePlatformSpecific(arraysize(registers), registers); 193 data->InitializePlatformSpecific(arraysize(registers), registers);
187 } 194 }
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 rbx, // the JSGeneratorObject to resume 412 rbx, // the JSGeneratorObject to resume
406 rdx // the resume mode (tagged) 413 rdx // the resume mode (tagged)
407 }; 414 };
408 data->InitializePlatformSpecific(arraysize(registers), registers); 415 data->InitializePlatformSpecific(arraysize(registers), registers);
409 } 416 }
410 417
411 } // namespace internal 418 } // namespace internal
412 } // namespace v8 419 } // namespace v8
413 420
414 #endif // V8_TARGET_ARCH_X64 421 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/runtime/runtime-compiler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698