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

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

Issue 2890023004: [turbofan] Avoid allocating rest parameters for spread calls. (Closed)
Patch Set: Created 3 years, 7 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/mips64/interface-descriptors-mips64.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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 void CallTrampolineDescriptor::InitializePlatformSpecific( 148 void CallTrampolineDescriptor::InitializePlatformSpecific(
149 CallInterfaceDescriptorData* data) { 149 CallInterfaceDescriptorData* data) {
150 // rax : number of arguments 150 // rax : number of arguments
151 // rdi : the target to call 151 // rdi : the target to call
152 Register registers[] = {rdi, rax}; 152 Register registers[] = {rdi, rax};
153 data->InitializePlatformSpecific(arraysize(registers), registers); 153 data->InitializePlatformSpecific(arraysize(registers), registers);
154 } 154 }
155 155
156 void CallForwardVarargsDescriptor::InitializePlatformSpecific( 156 void CallForwardVarargsDescriptor::InitializePlatformSpecific(
157 CallInterfaceDescriptorData* data) { 157 CallInterfaceDescriptorData* data) {
158 // rax : number of arguments
158 // rcx : start index (to support rest parameters) 159 // rcx : start index (to support rest parameters)
159 // rdi : the target to call 160 // rdi : the target to call
160 Register registers[] = {rdi, rcx}; 161 Register registers[] = {rdi, rax, rcx};
161 data->InitializePlatformSpecific(arraysize(registers), registers); 162 data->InitializePlatformSpecific(arraysize(registers), registers);
162 } 163 }
163 164
165 void ConstructForwardVarargsDescriptor::InitializePlatformSpecific(
166 CallInterfaceDescriptorData* data) {
167 // rax : number of arguments
168 // rdx : the new target
169 // rcx : start index (to support rest parameters)
170 // rdi : the target to call
171 Register registers[] = {rdi, rdx, rax, rcx};
172 data->InitializePlatformSpecific(arraysize(registers), registers);
173 }
174
164 void ConstructStubDescriptor::InitializePlatformSpecific( 175 void ConstructStubDescriptor::InitializePlatformSpecific(
165 CallInterfaceDescriptorData* data) { 176 CallInterfaceDescriptorData* data) {
166 // rax : number of arguments 177 // rax : number of arguments
167 // rdx : the new target 178 // rdx : the new target
168 // rdi : the target to call 179 // rdi : the target to call
169 // rbx : allocation site or undefined 180 // rbx : allocation site or undefined
170 Register registers[] = {rdi, rdx, rax, rbx}; 181 Register registers[] = {rdi, rdx, rax, rbx};
171 data->InitializePlatformSpecific(arraysize(registers), registers); 182 data->InitializePlatformSpecific(arraysize(registers), registers);
172 } 183 }
173 184
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 Register registers[] = { 381 Register registers[] = {
371 rbx, // loaded new FP 382 rbx, // loaded new FP
372 }; 383 };
373 data->InitializePlatformSpecific(arraysize(registers), registers); 384 data->InitializePlatformSpecific(arraysize(registers), registers);
374 } 385 }
375 386
376 } // namespace internal 387 } // namespace internal
377 } // namespace v8 388 } // namespace v8
378 389
379 #endif // V8_TARGET_ARCH_X64 390 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/mips64/interface-descriptors-mips64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698