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

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

Issue 1775933005: Revert of Rework CallApi*Stubs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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') | src/s390/code-stubs-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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 CallInterfaceDescriptorData* data) { 373 CallInterfaceDescriptorData* data) {
374 Register registers[] = { 374 Register registers[] = {
375 r4, // JSFunction 375 r4, // JSFunction
376 r6, // the new target 376 r6, // the new target
377 r3, // actual number of arguments 377 r3, // actual number of arguments
378 r5, // expected number of arguments 378 r5, // expected number of arguments
379 }; 379 };
380 data->InitializePlatformSpecific(arraysize(registers), registers); 380 data->InitializePlatformSpecific(arraysize(registers), registers);
381 } 381 }
382 382
383 void ApiCallbackDescriptorBase::InitializePlatformSpecific( 383
384 void ApiFunctionDescriptor::InitializePlatformSpecific(
385 CallInterfaceDescriptorData* data) {
386 Register registers[] = {
387 r3, // callee
388 r7, // call_data
389 r5, // holder
390 r4, // api_function_address
391 r6, // actual number of arguments
392 };
393 data->InitializePlatformSpecific(arraysize(registers), registers);
394 }
395
396
397 void ApiAccessorDescriptor::InitializePlatformSpecific(
384 CallInterfaceDescriptorData* data) { 398 CallInterfaceDescriptorData* data) {
385 Register registers[] = { 399 Register registers[] = {
386 r3, // callee 400 r3, // callee
387 r7, // call_data 401 r7, // call_data
388 r5, // holder 402 r5, // holder
389 r4, // api_function_address 403 r4, // api_function_address
390 }; 404 };
391 data->InitializePlatformSpecific(arraysize(registers), registers); 405 data->InitializePlatformSpecific(arraysize(registers), registers);
392 } 406 }
393 407
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 r3, // argument count (argc) 441 r3, // argument count (argc)
428 r5, // address of first argument (argv) 442 r5, // address of first argument (argv)
429 r4 // the runtime function to call 443 r4 // the runtime function to call
430 }; 444 };
431 data->InitializePlatformSpecific(arraysize(registers), registers); 445 data->InitializePlatformSpecific(arraysize(registers), registers);
432 } 446 }
433 } // namespace internal 447 } // namespace internal
434 } // namespace v8 448 } // namespace v8
435 449
436 #endif // V8_TARGET_ARCH_PPC 450 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/ppc/code-stubs-ppc.cc ('k') | src/s390/code-stubs-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698