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

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

Issue 2887153004: PPC/s390: [turbofan] Avoid allocating rest parameters for spread calls. (Closed)
Patch Set: minor fix 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/ppc/interface-descriptors-ppc.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_S390 5 #if V8_TARGET_ARCH_S390
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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 void CallTrampolineDescriptor::InitializePlatformSpecific( 138 void CallTrampolineDescriptor::InitializePlatformSpecific(
139 CallInterfaceDescriptorData* data) { 139 CallInterfaceDescriptorData* data) {
140 // r2 : number of arguments 140 // r2 : number of arguments
141 // r3 : the target to call 141 // r3 : the target to call
142 Register registers[] = {r3, r2}; 142 Register registers[] = {r3, r2};
143 data->InitializePlatformSpecific(arraysize(registers), registers); 143 data->InitializePlatformSpecific(arraysize(registers), registers);
144 } 144 }
145 145
146 void CallForwardVarargsDescriptor::InitializePlatformSpecific( 146 void CallForwardVarargsDescriptor::InitializePlatformSpecific(
147 CallInterfaceDescriptorData* data) { 147 CallInterfaceDescriptorData* data) {
148 // r2 : number of arguments
148 // r4 : start index (to support rest parameters) 149 // r4 : start index (to support rest parameters)
149 // r3 : the target to call 150 // r3 : the target to call
150 Register registers[] = {r3, r4}; 151 Register registers[] = {r3, r2, r4};
151 data->InitializePlatformSpecific(arraysize(registers), registers); 152 data->InitializePlatformSpecific(arraysize(registers), registers);
152 } 153 }
153 154
155 void ConstructForwardVarargsDescriptor::InitializePlatformSpecific(
156 CallInterfaceDescriptorData* data) {
157 // r2 : number of arguments
158 // r5 : the new target
159 // r4 : start index (to support rest parameters)
160 // r3 : the target to call
161 Register registers[] = {r3, r5, r2, r4};
162 data->InitializePlatformSpecific(arraysize(registers), registers);
163 }
164
154 void ConstructStubDescriptor::InitializePlatformSpecific( 165 void ConstructStubDescriptor::InitializePlatformSpecific(
155 CallInterfaceDescriptorData* data) { 166 CallInterfaceDescriptorData* data) {
156 // r2 : number of arguments 167 // r2 : number of arguments
157 // r3 : the target to call 168 // r3 : the target to call
158 // r5 : the new target 169 // r5 : the new target
159 // r4 : allocation site or undefined 170 // r4 : allocation site or undefined
160 Register registers[] = {r3, r5, r2, r4}; 171 Register registers[] = {r3, r5, r2, r4};
161 data->InitializePlatformSpecific(arraysize(registers), registers); 172 data->InitializePlatformSpecific(arraysize(registers), registers);
162 } 173 }
163 174
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 Register registers[] = { 363 Register registers[] = {
353 r3, // loaded new FP 364 r3, // loaded new FP
354 }; 365 };
355 data->InitializePlatformSpecific(arraysize(registers), registers); 366 data->InitializePlatformSpecific(arraysize(registers), registers);
356 } 367 }
357 368
358 } // namespace internal 369 } // namespace internal
359 } // namespace v8 370 } // namespace v8
360 371
361 #endif // V8_TARGET_ARCH_S390 372 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/ppc/interface-descriptors-ppc.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698