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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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, // allocation site feedback if available, undefined otherwise | 394 rbx, // allocation site feedback if available, undefined otherwise |
395 rcx, // address of first argument | 395 rcx, // address of first argument |
396 }; | 396 }; |
397 data->InitializePlatformSpecific(arraysize(registers), registers); | 397 data->InitializePlatformSpecific(arraysize(registers), registers); |
398 } | 398 } |
399 | 399 |
| 400 void InterpreterPushArgsAndConstructArrayDescriptor::InitializePlatformSpecific( |
| 401 CallInterfaceDescriptorData* data) { |
| 402 Register registers[] = { |
| 403 rax, // argument count (not including receiver) |
| 404 rdx, // target to the call. It is checked to be Array function. |
| 405 rbx, // allocation site feedback |
| 406 rcx, // address of first argument |
| 407 }; |
| 408 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 409 } |
| 410 |
400 void InterpreterCEntryDescriptor::InitializePlatformSpecific( | 411 void InterpreterCEntryDescriptor::InitializePlatformSpecific( |
401 CallInterfaceDescriptorData* data) { | 412 CallInterfaceDescriptorData* data) { |
402 Register registers[] = { | 413 Register registers[] = { |
403 rax, // argument count (argc) | 414 rax, // argument count (argc) |
404 r15, // address of first argument (argv) | 415 r15, // address of first argument (argv) |
405 rbx // the runtime function to call | 416 rbx // the runtime function to call |
406 }; | 417 }; |
407 data->InitializePlatformSpecific(arraysize(registers), registers); | 418 data->InitializePlatformSpecific(arraysize(registers), registers); |
408 } | 419 } |
409 | 420 |
410 void ResumeGeneratorDescriptor::InitializePlatformSpecific( | 421 void ResumeGeneratorDescriptor::InitializePlatformSpecific( |
411 CallInterfaceDescriptorData* data) { | 422 CallInterfaceDescriptorData* data) { |
412 Register registers[] = { | 423 Register registers[] = { |
413 rax, // the value to pass to the generator | 424 rax, // the value to pass to the generator |
414 rbx, // the JSGeneratorObject to resume | 425 rbx, // the JSGeneratorObject to resume |
415 rdx // the resume mode (tagged) | 426 rdx // the resume mode (tagged) |
416 }; | 427 }; |
417 data->InitializePlatformSpecific(arraysize(registers), registers); | 428 data->InitializePlatformSpecific(arraysize(registers), registers); |
418 } | 429 } |
419 | 430 |
420 } // namespace internal | 431 } // namespace internal |
421 } // namespace v8 | 432 } // namespace v8 |
422 | 433 |
423 #endif // V8_TARGET_ARCH_X64 | 434 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |