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

Side by Side Diff: src/arm/interface-descriptors-arm.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 | « no previous file | src/arm64/interface-descriptors-arm64.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/arm/interface-descriptors-arm.h" 5 #include "src/arm/interface-descriptors-arm.h"
6 6
7 #if V8_TARGET_ARCH_ARM 7 #if V8_TARGET_ARCH_ARM
8 8
9 #include "src/interface-descriptors.h" 9 #include "src/interface-descriptors.h"
10 10
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 void CallTrampolineDescriptor::InitializePlatformSpecific( 150 void CallTrampolineDescriptor::InitializePlatformSpecific(
151 CallInterfaceDescriptorData* data) { 151 CallInterfaceDescriptorData* data) {
152 // r0 : number of arguments 152 // r0 : number of arguments
153 // r1 : the target to call 153 // r1 : the target to call
154 Register registers[] = {r1, r0}; 154 Register registers[] = {r1, r0};
155 data->InitializePlatformSpecific(arraysize(registers), registers); 155 data->InitializePlatformSpecific(arraysize(registers), registers);
156 } 156 }
157 157
158 void CallForwardVarargsDescriptor::InitializePlatformSpecific( 158 void CallForwardVarargsDescriptor::InitializePlatformSpecific(
159 CallInterfaceDescriptorData* data) { 159 CallInterfaceDescriptorData* data) {
160 // r0 : number of arguments
160 // r2 : start index (to support rest parameters) 161 // r2 : start index (to support rest parameters)
161 // r1 : the target to call 162 // r1 : the target to call
162 Register registers[] = {r1, r2}; 163 Register registers[] = {r1, r0, r2};
163 data->InitializePlatformSpecific(arraysize(registers), registers); 164 data->InitializePlatformSpecific(arraysize(registers), registers);
164 } 165 }
165 166
167 void ConstructForwardVarargsDescriptor::InitializePlatformSpecific(
168 CallInterfaceDescriptorData* data) {
169 // r0 : number of arguments
170 // r3 : the new target
171 // r2 : start index (to support rest parameters)
172 // r1 : the target to call
173 Register registers[] = {r1, r3, r0, r2};
174 data->InitializePlatformSpecific(arraysize(registers), registers);
175 }
176
166 void ConstructStubDescriptor::InitializePlatformSpecific( 177 void ConstructStubDescriptor::InitializePlatformSpecific(
167 CallInterfaceDescriptorData* data) { 178 CallInterfaceDescriptorData* data) {
168 // r0 : number of arguments 179 // r0 : number of arguments
169 // r1 : the target to call 180 // r1 : the target to call
170 // r3 : the new target 181 // r3 : the new target
171 // r2 : allocation site or undefined 182 // r2 : allocation site or undefined
172 Register registers[] = {r1, r3, r0, r2}; 183 Register registers[] = {r1, r3, r0, r2};
173 data->InitializePlatformSpecific(arraysize(registers), registers); 184 data->InitializePlatformSpecific(arraysize(registers), registers);
174 } 185 }
175 186
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 Register registers[] = { 389 Register registers[] = {
379 r1, // loaded new FP 390 r1, // loaded new FP
380 }; 391 };
381 data->InitializePlatformSpecific(arraysize(registers), registers); 392 data->InitializePlatformSpecific(arraysize(registers), registers);
382 } 393 }
383 394
384 } // namespace internal 395 } // namespace internal
385 } // namespace v8 396 } // namespace v8
386 397
387 #endif // V8_TARGET_ARCH_ARM 398 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/interface-descriptors-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698