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

Side by Side Diff: src/x64/interface-descriptors-x64.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/x64/code-stubs-x64.cc ('k') | src/x87/code-stubs-x87.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 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 CallInterfaceDescriptorData* data) { 374 CallInterfaceDescriptorData* data) {
375 Register registers[] = { 375 Register registers[] = {
376 rdi, // JSFunction 376 rdi, // JSFunction
377 rdx, // the new target 377 rdx, // the new target
378 rax, // actual number of arguments 378 rax, // actual number of arguments
379 rbx, // expected number of arguments 379 rbx, // expected number of arguments
380 }; 380 };
381 data->InitializePlatformSpecific(arraysize(registers), registers); 381 data->InitializePlatformSpecific(arraysize(registers), registers);
382 } 382 }
383 383
384 void ApiCallbackDescriptorBase::InitializePlatformSpecific( 384
385 void ApiFunctionDescriptor::InitializePlatformSpecific(
386 CallInterfaceDescriptorData* data) {
387 Register registers[] = {
388 rdi, // callee
389 rbx, // call_data
390 rcx, // holder
391 rdx, // api_function_address
392 rax, // actual number of arguments
393 };
394 data->InitializePlatformSpecific(arraysize(registers), registers);
395 }
396
397
398 void ApiAccessorDescriptor::InitializePlatformSpecific(
385 CallInterfaceDescriptorData* data) { 399 CallInterfaceDescriptorData* data) {
386 Register registers[] = { 400 Register registers[] = {
387 rdi, // callee 401 rdi, // callee
388 rbx, // call_data 402 rbx, // call_data
389 rcx, // holder 403 rcx, // holder
390 rdx, // api_function_address 404 rdx, // api_function_address
391 }; 405 };
392 data->InitializePlatformSpecific(arraysize(registers), registers); 406 data->InitializePlatformSpecific(arraysize(registers), registers);
393 } 407 }
394 408
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 r15, // address of first argument (argv) 443 r15, // address of first argument (argv)
430 rbx // the runtime function to call 444 rbx // the runtime function to call
431 }; 445 };
432 data->InitializePlatformSpecific(arraysize(registers), registers); 446 data->InitializePlatformSpecific(arraysize(registers), registers);
433 } 447 }
434 448
435 } // namespace internal 449 } // namespace internal
436 } // namespace v8 450 } // namespace v8
437 451
438 #endif // V8_TARGET_ARCH_X64 452 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x87/code-stubs-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698