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

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

Issue 2352163004: [stubs] ApiCallbackDescriptor cleanup - make it independent on the number of JS parameters. (Closed)
Patch Set: Created 4 years, 3 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') | src/s390/interface-descriptors-s390.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 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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 CallInterfaceDescriptorData* data) { 344 CallInterfaceDescriptorData* data) {
345 Register registers[] = { 345 Register registers[] = {
346 r4, // JSFunction 346 r4, // JSFunction
347 r6, // the new target 347 r6, // the new target
348 r3, // actual number of arguments 348 r3, // actual number of arguments
349 r5, // expected number of arguments 349 r5, // expected number of arguments
350 }; 350 };
351 data->InitializePlatformSpecific(arraysize(registers), registers); 351 data->InitializePlatformSpecific(arraysize(registers), registers);
352 } 352 }
353 353
354 void ApiCallbackDescriptorBase::InitializePlatformSpecific( 354 void ApiCallbackDescriptor::InitializePlatformSpecific(
355 CallInterfaceDescriptorData* data) { 355 CallInterfaceDescriptorData* data) {
356 Register registers[] = { 356 Register registers[] = {
357 r3, // callee 357 r3, // callee
358 r7, // call_data 358 r7, // call_data
359 r5, // holder 359 r5, // holder
360 r4, // api_function_address 360 r4, // api_function_address
361 }; 361 };
362 data->InitializePlatformSpecific(arraysize(registers), registers); 362 data->InitializePlatformSpecific(arraysize(registers), registers);
363 } 363 }
364 364
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 r3, // the value to pass to the generator 419 r3, // the value to pass to the generator
420 r4, // the JSGeneratorObject to resume 420 r4, // the JSGeneratorObject to resume
421 r5 // the resume mode (tagged) 421 r5 // the resume mode (tagged)
422 }; 422 };
423 data->InitializePlatformSpecific(arraysize(registers), registers); 423 data->InitializePlatformSpecific(arraysize(registers), registers);
424 } 424 }
425 } // namespace internal 425 } // namespace internal
426 } // namespace v8 426 } // namespace v8
427 427
428 #endif // V8_TARGET_ARCH_PPC 428 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/mips64/interface-descriptors-mips64.cc ('k') | src/s390/interface-descriptors-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698