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

Side by Side Diff: src/arm/interface-descriptors-arm.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 | « WATCHLISTS ('k') | src/arm64/interface-descriptors-arm64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #include "src/arm/interface-descriptors-arm.h" 5 #include "src/arm/interface-descriptors-arm.h"
6 6
7 #if V8_TARGET_ARCH_ARM 7 #if V8_TARGET_ARCH_ARM
8 8
9 #include "src/interface-descriptors.h" 9 #include "src/interface-descriptors.h"
10 10
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 Register registers[] = { 424 Register registers[] = {
425 r0, // callee 425 r0, // callee
426 r4, // call_data 426 r4, // call_data
427 r2, // holder 427 r2, // holder
428 r1, // api_function_address 428 r1, // api_function_address
429 }; 429 };
430 data->InitializePlatformSpecific(arraysize(registers), registers, 430 data->InitializePlatformSpecific(arraysize(registers), registers,
431 &default_descriptor); 431 &default_descriptor);
432 } 432 }
433 433
434 void InterpreterDispatchDescriptor::InitializePlatformSpecific(
435 CallInterfaceDescriptorData* data) {
436 Register registers[] = {
437 kInterpreterAccumulatorRegister, kInterpreterRegisterFileRegister,
438 kInterpreterBytecodeOffsetRegister, kInterpreterBytecodeArrayRegister,
439 kInterpreterDispatchTableRegister};
440 data->InitializePlatformSpecific(arraysize(registers), registers);
441 }
434 442
435 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( 443 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific(
436 CallInterfaceDescriptorData* data) { 444 CallInterfaceDescriptorData* data) {
437 Register registers[] = { 445 Register registers[] = {
438 r0, // argument count (not including receiver) 446 r0, // argument count (not including receiver)
439 r2, // address of first argument 447 r2, // address of first argument
440 r1 // the target callable to be call 448 r1 // the target callable to be call
441 }; 449 };
442 data->InitializePlatformSpecific(arraysize(registers), registers); 450 data->InitializePlatformSpecific(arraysize(registers), registers);
443 } 451 }
444 452
445
446 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific( 453 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific(
447 CallInterfaceDescriptorData* data) { 454 CallInterfaceDescriptorData* data) {
448 Register registers[] = { 455 Register registers[] = {
449 r0, // argument count (not including receiver) 456 r0, // argument count (not including receiver)
450 r3, // new target 457 r3, // new target
451 r1, // constructor to call 458 r1, // constructor to call
452 r2 // address of the first argument 459 r2 // address of the first argument
453 }; 460 };
454 data->InitializePlatformSpecific(arraysize(registers), registers); 461 data->InitializePlatformSpecific(arraysize(registers), registers);
455 } 462 }
456 463
457
458 void InterpreterCEntryDescriptor::InitializePlatformSpecific( 464 void InterpreterCEntryDescriptor::InitializePlatformSpecific(
459 CallInterfaceDescriptorData* data) { 465 CallInterfaceDescriptorData* data) {
460 Register registers[] = { 466 Register registers[] = {
461 r0, // argument count (argc) 467 r0, // argument count (argc)
462 r2, // address of first argument (argv) 468 r2, // address of first argument (argv)
463 r1 // the runtime function to call 469 r1 // the runtime function to call
464 }; 470 };
465 data->InitializePlatformSpecific(arraysize(registers), registers); 471 data->InitializePlatformSpecific(arraysize(registers), registers);
466 } 472 }
467 473
468 } // namespace internal 474 } // namespace internal
469 } // namespace v8 475 } // namespace v8
470 476
471 #endif // V8_TARGET_ARCH_ARM 477 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « WATCHLISTS ('k') | src/arm64/interface-descriptors-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698