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

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

Issue 1673333004: [Interpreter] Make InterpreterAssembler a subclass of CodeStubAssembler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address review comments. Created 4 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
« no previous file with comments | « src/mips64/interface-descriptors-mips64.cc ('k') | src/x64/interface-descriptors-x64.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 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 CallInterfaceDescriptorData* data) { 397 CallInterfaceDescriptorData* data) {
398 Register registers[] = { 398 Register registers[] = {
399 r3, // callee 399 r3, // callee
400 r7, // call_data 400 r7, // call_data
401 r5, // holder 401 r5, // holder
402 r4, // api_function_address 402 r4, // api_function_address
403 }; 403 };
404 data->InitializePlatformSpecific(arraysize(registers), registers); 404 data->InitializePlatformSpecific(arraysize(registers), registers);
405 } 405 }
406 406
407 void InterpreterDispatchDescriptor::InitializePlatformSpecific(
408 CallInterfaceDescriptorData* data) {
409 Register registers[] = {
410 kInterpreterAccumulatorRegister, kInterpreterRegisterFileRegister,
411 kInterpreterBytecodeOffsetRegister, kInterpreterBytecodeArrayRegister,
412 kInterpreterDispatchTableRegister};
413 data->InitializePlatformSpecific(arraysize(registers), registers);
414 }
407 415
408 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( 416 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific(
409 CallInterfaceDescriptorData* data) { 417 CallInterfaceDescriptorData* data) {
410 Register registers[] = { 418 Register registers[] = {
411 r3, // argument count (not including receiver) 419 r3, // argument count (not including receiver)
412 r5, // address of first argument 420 r5, // address of first argument
413 r4 // the target callable to be call 421 r4 // the target callable to be call
414 }; 422 };
415 data->InitializePlatformSpecific(arraysize(registers), registers); 423 data->InitializePlatformSpecific(arraysize(registers), registers);
416 } 424 }
417 425
418
419 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific( 426 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific(
420 CallInterfaceDescriptorData* data) { 427 CallInterfaceDescriptorData* data) {
421 Register registers[] = { 428 Register registers[] = {
422 r3, // argument count (not including receiver) 429 r3, // argument count (not including receiver)
423 r6, // new target 430 r6, // new target
424 r4, // constructor to call 431 r4, // constructor to call
425 r5 // address of the first argument 432 r5 // address of the first argument
426 }; 433 };
427 data->InitializePlatformSpecific(arraysize(registers), registers); 434 data->InitializePlatformSpecific(arraysize(registers), registers);
428 } 435 }
429 436
430
431 void InterpreterCEntryDescriptor::InitializePlatformSpecific( 437 void InterpreterCEntryDescriptor::InitializePlatformSpecific(
432 CallInterfaceDescriptorData* data) { 438 CallInterfaceDescriptorData* data) {
433 Register registers[] = { 439 Register registers[] = {
434 r3, // argument count (argc) 440 r3, // argument count (argc)
435 r5, // address of first argument (argv) 441 r5, // address of first argument (argv)
436 r4 // the runtime function to call 442 r4 // the runtime function to call
437 }; 443 };
438 data->InitializePlatformSpecific(arraysize(registers), registers); 444 data->InitializePlatformSpecific(arraysize(registers), registers);
439 } 445 }
440 } // namespace internal 446 } // namespace internal
441 } // namespace v8 447 } // namespace v8
442 448
443 #endif // V8_TARGET_ARCH_PPC 449 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/mips64/interface-descriptors-mips64.cc ('k') | src/x64/interface-descriptors-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698