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

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

Issue 2656363002: PPC/s390: [turbofan] Introduce JSCallForwardVarargs operator. (Closed)
Patch Set: Created 3 years, 10 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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 167
168 168
169 void CallTrampolineDescriptor::InitializePlatformSpecific( 169 void CallTrampolineDescriptor::InitializePlatformSpecific(
170 CallInterfaceDescriptorData* data) { 170 CallInterfaceDescriptorData* data) {
171 // r3 : number of arguments 171 // r3 : number of arguments
172 // r4 : the target to call 172 // r4 : the target to call
173 Register registers[] = {r4, r3}; 173 Register registers[] = {r4, r3};
174 data->InitializePlatformSpecific(arraysize(registers), registers); 174 data->InitializePlatformSpecific(arraysize(registers), registers);
175 } 175 }
176 176
177 void CallForwardVarargsDescriptor::InitializePlatformSpecific(
178 CallInterfaceDescriptorData* data) {
179 // r5 : start index (to support rest parameters)
180 // r4 : the target to call
181 Register registers[] = {r4, r5};
182 data->InitializePlatformSpecific(arraysize(registers), registers);
183 }
177 184
178 void ConstructStubDescriptor::InitializePlatformSpecific( 185 void ConstructStubDescriptor::InitializePlatformSpecific(
179 CallInterfaceDescriptorData* data) { 186 CallInterfaceDescriptorData* data) {
180 // r3 : number of arguments 187 // r3 : number of arguments
181 // r4 : the target to call 188 // r4 : the target to call
182 // r6 : the new target 189 // r6 : the new target
183 // r5 : allocation site or undefined 190 // r5 : allocation site or undefined
184 Register registers[] = {r4, r6, r3, r5}; 191 Register registers[] = {r4, r6, r3, r5};
185 data->InitializePlatformSpecific(arraysize(registers), registers); 192 data->InitializePlatformSpecific(arraysize(registers), registers);
186 } 193 }
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 r3, // the value to pass to the generator 409 r3, // the value to pass to the generator
403 r4, // the JSGeneratorObject to resume 410 r4, // the JSGeneratorObject to resume
404 r5 // the resume mode (tagged) 411 r5 // the resume mode (tagged)
405 }; 412 };
406 data->InitializePlatformSpecific(arraysize(registers), registers); 413 data->InitializePlatformSpecific(arraysize(registers), registers);
407 } 414 }
408 } // namespace internal 415 } // namespace internal
409 } // namespace v8 416 } // namespace v8
410 417
411 #endif // V8_TARGET_ARCH_PPC 418 #endif // V8_TARGET_ARCH_PPC
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698