| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |