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

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

Issue 2057253002: PPC: [stubs] Remove N-argument Hydrogen-based Array constructor stub (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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/code-stubs-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 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 CallInterfaceDescriptorData* data) { 260 CallInterfaceDescriptorData* data) {
261 // register state 261 // register state
262 // r3 -- number of arguments 262 // r3 -- number of arguments
263 // r4 -- function 263 // r4 -- function
264 // r5 -- allocation site with elements kind 264 // r5 -- allocation site with elements kind
265 Register registers[] = {r4, r5, r3}; 265 Register registers[] = {r4, r5, r3};
266 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 266 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
267 } 267 }
268 268
269 269
270 void ArrayConstructorDescriptor::InitializePlatformSpecific( 270 void ArrayNArgumentsConstructorDescriptor::InitializePlatformSpecific(
271 CallInterfaceDescriptorData* data) { 271 CallInterfaceDescriptorData* data) {
272 // stack param count needs (constructor pointer, and single argument) 272 // stack param count needs (constructor pointer, and single argument)
273 Register registers[] = {r4, r5, r3}; 273 Register registers[] = {r4, r5, r3};
274 data->InitializePlatformSpecific(arraysize(registers), registers); 274 data->InitializePlatformSpecific(arraysize(registers), registers);
275 } 275 }
276 276
277 277
278 void InternalArrayConstructorDescriptor::InitializePlatformSpecific(
279 CallInterfaceDescriptorData* data) {
280 // stack param count needs (constructor pointer, and single argument)
281 Register registers[] = {r4, r3};
282 data->InitializePlatformSpecific(arraysize(registers), registers);
283 }
284
285 void VarArgFunctionDescriptor::InitializePlatformSpecific( 278 void VarArgFunctionDescriptor::InitializePlatformSpecific(
286 CallInterfaceDescriptorData* data) { 279 CallInterfaceDescriptorData* data) {
287 // stack param count needs (arg count) 280 // stack param count needs (arg count)
288 Register registers[] = {r3}; 281 Register registers[] = {r3};
289 data->InitializePlatformSpecific(arraysize(registers), registers); 282 data->InitializePlatformSpecific(arraysize(registers), registers);
290 } 283 }
291 284
292 void CompareDescriptor::InitializePlatformSpecific( 285 void CompareDescriptor::InitializePlatformSpecific(
293 CallInterfaceDescriptorData* data) { 286 CallInterfaceDescriptorData* data) {
294 Register registers[] = {r4, r3}; 287 Register registers[] = {r4, r3};
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 r3, // the value to pass to the generator 409 r3, // the value to pass to the generator
417 r4, // the JSGeneratorObject to resume 410 r4, // the JSGeneratorObject to resume
418 r5 // the resume mode (tagged) 411 r5 // the resume mode (tagged)
419 }; 412 };
420 data->InitializePlatformSpecific(arraysize(registers), registers); 413 data->InitializePlatformSpecific(arraysize(registers), registers);
421 } 414 }
422 } // namespace internal 415 } // namespace internal
423 } // namespace v8 416 } // namespace v8
424 417
425 #endif // V8_TARGET_ARCH_PPC 418 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/ppc/code-stubs-ppc.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698