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

Side by Side Diff: src/arm64/interface-descriptors-arm64.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/arm64/code-stubs-arm64.cc ('k') | src/code-stubs.h » ('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/arm64/interface-descriptors-arm64.h" 5 #include "src/arm64/interface-descriptors-arm64.h"
6 6
7 #if V8_TARGET_ARCH_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "src/interface-descriptors.h" 9 #include "src/interface-descriptors.h"
10 10
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 Register registers[] = { 429 Register registers[] = {
430 x1, // JSFunction 430 x1, // JSFunction
431 x3, // the new target 431 x3, // the new target
432 x0, // actual number of arguments 432 x0, // actual number of arguments
433 x2, // expected number of arguments 433 x2, // expected number of arguments
434 }; 434 };
435 data->InitializePlatformSpecific(arraysize(registers), registers, 435 data->InitializePlatformSpecific(arraysize(registers), registers,
436 &default_descriptor); 436 &default_descriptor);
437 } 437 }
438 438
439 void ApiCallbackDescriptorBase::InitializePlatformSpecific( 439
440 void ApiFunctionDescriptor::InitializePlatformSpecific(
440 CallInterfaceDescriptorData* data) { 441 CallInterfaceDescriptorData* data) {
441 static PlatformInterfaceDescriptor default_descriptor = 442 static PlatformInterfaceDescriptor default_descriptor =
442 PlatformInterfaceDescriptor(CAN_INLINE_TARGET_ADDRESS); 443 PlatformInterfaceDescriptor(CAN_INLINE_TARGET_ADDRESS);
443 444
444 Register registers[] = { 445 Register registers[] = {
445 x0, // callee 446 x0, // callee
446 x4, // call_data 447 x4, // call_data
447 x2, // holder 448 x2, // holder
448 x1, // api_function_address 449 x1, // api_function_address
450 x3, // actual number of arguments
451 };
452 data->InitializePlatformSpecific(arraysize(registers), registers,
453 &default_descriptor);
454 }
455
456
457 void ApiAccessorDescriptor::InitializePlatformSpecific(
458 CallInterfaceDescriptorData* data) {
459 static PlatformInterfaceDescriptor default_descriptor =
460 PlatformInterfaceDescriptor(CAN_INLINE_TARGET_ADDRESS);
461
462 Register registers[] = {
463 x0, // callee
464 x4, // call_data
465 x2, // holder
466 x1, // api_function_address
449 }; 467 };
450 data->InitializePlatformSpecific(arraysize(registers), registers, 468 data->InitializePlatformSpecific(arraysize(registers), registers,
451 &default_descriptor); 469 &default_descriptor);
452 } 470 }
453 471
454 void InterpreterDispatchDescriptor::InitializePlatformSpecific( 472 void InterpreterDispatchDescriptor::InitializePlatformSpecific(
455 CallInterfaceDescriptorData* data) { 473 CallInterfaceDescriptorData* data) {
456 Register registers[] = { 474 Register registers[] = {
457 kInterpreterAccumulatorRegister, kInterpreterRegisterFileRegister, 475 kInterpreterAccumulatorRegister, kInterpreterRegisterFileRegister,
458 kInterpreterBytecodeOffsetRegister, kInterpreterBytecodeArrayRegister, 476 kInterpreterBytecodeOffsetRegister, kInterpreterBytecodeArrayRegister,
(...skipping 30 matching lines...) Expand all
489 x1 // the runtime function to call 507 x1 // the runtime function to call
490 }; 508 };
491 data->InitializePlatformSpecific(arraysize(registers), registers); 509 data->InitializePlatformSpecific(arraysize(registers), registers);
492 } 510 }
493 511
494 512
495 } // namespace internal 513 } // namespace internal
496 } // namespace v8 514 } // namespace v8
497 515
498 #endif // V8_TARGET_ARCH_ARM64 516 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698