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

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

Issue 1748123003: Rework CallApi*Stubs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Minor fixes and make Win compiler happy. 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
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 439 void ApiCallbackDescriptorBase::InitializePlatformSpecific(
440 void ApiFunctionDescriptor::InitializePlatformSpecific(
441 CallInterfaceDescriptorData* data) { 440 CallInterfaceDescriptorData* data) {
442 static PlatformInterfaceDescriptor default_descriptor = 441 static PlatformInterfaceDescriptor default_descriptor =
443 PlatformInterfaceDescriptor(CAN_INLINE_TARGET_ADDRESS); 442 PlatformInterfaceDescriptor(CAN_INLINE_TARGET_ADDRESS);
444
445 Register registers[] = {
446 x0, // callee
447 x4, // call_data
448 x2, // holder
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 443
462 Register registers[] = { 444 Register registers[] = {
463 x0, // callee 445 x0, // callee
464 x4, // call_data 446 x4, // call_data
465 x2, // holder 447 x2, // holder
466 x1, // api_function_address 448 x1, // api_function_address
467 }; 449 };
468 data->InitializePlatformSpecific(arraysize(registers), registers, 450 data->InitializePlatformSpecific(arraysize(registers), registers,
469 &default_descriptor); 451 &default_descriptor);
470 } 452 }
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 x1 // the runtime function to call 489 x1 // the runtime function to call
508 }; 490 };
509 data->InitializePlatformSpecific(arraysize(registers), registers); 491 data->InitializePlatformSpecific(arraysize(registers), registers);
510 } 492 }
511 493
512 494
513 } // namespace internal 495 } // namespace internal
514 } // namespace v8 496 } // namespace v8
515 497
516 #endif // V8_TARGET_ARCH_ARM64 498 #endif // V8_TARGET_ARCH_ARM64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698