| 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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 }; | 384 }; |
| 385 data->InitializePlatformSpecific(arraysize(registers), registers); | 385 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 386 } | 386 } |
| 387 | 387 |
| 388 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific( | 388 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific( |
| 389 CallInterfaceDescriptorData* data) { | 389 CallInterfaceDescriptorData* data) { |
| 390 Register registers[] = { | 390 Register registers[] = { |
| 391 rax, // argument count (not including receiver) | 391 rax, // argument count (not including receiver) |
| 392 rdx, // new target | 392 rdx, // new target |
| 393 rdi, // constructor | 393 rdi, // constructor |
| 394 rbx, // address of first argument | 394 rbx, // allocation site feedback if available, undefined otherwise |
| 395 rcx, // address of first argument |
| 395 }; | 396 }; |
| 396 data->InitializePlatformSpecific(arraysize(registers), registers); | 397 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 397 } | 398 } |
| 398 | 399 |
| 399 void InterpreterCEntryDescriptor::InitializePlatformSpecific( | 400 void InterpreterCEntryDescriptor::InitializePlatformSpecific( |
| 400 CallInterfaceDescriptorData* data) { | 401 CallInterfaceDescriptorData* data) { |
| 401 Register registers[] = { | 402 Register registers[] = { |
| 402 rax, // argument count (argc) | 403 rax, // argument count (argc) |
| 403 r15, // address of first argument (argv) | 404 r15, // address of first argument (argv) |
| 404 rbx // the runtime function to call | 405 rbx // the runtime function to call |
| 405 }; | 406 }; |
| 406 data->InitializePlatformSpecific(arraysize(registers), registers); | 407 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 407 } | 408 } |
| 408 | 409 |
| 409 void ResumeGeneratorDescriptor::InitializePlatformSpecific( | 410 void ResumeGeneratorDescriptor::InitializePlatformSpecific( |
| 410 CallInterfaceDescriptorData* data) { | 411 CallInterfaceDescriptorData* data) { |
| 411 Register registers[] = { | 412 Register registers[] = { |
| 412 rax, // the value to pass to the generator | 413 rax, // the value to pass to the generator |
| 413 rbx, // the JSGeneratorObject to resume | 414 rbx, // the JSGeneratorObject to resume |
| 414 rdx // the resume mode (tagged) | 415 rdx // the resume mode (tagged) |
| 415 }; | 416 }; |
| 416 data->InitializePlatformSpecific(arraysize(registers), registers); | 417 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 417 } | 418 } |
| 418 | 419 |
| 419 } // namespace internal | 420 } // namespace internal |
| 420 } // namespace v8 | 421 } // namespace v8 |
| 421 | 422 |
| 422 #endif // V8_TARGET_ARCH_X64 | 423 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |