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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 | 415 |
416 void InterpreterDispatchDescriptor::InitializePlatformSpecific( | 416 void InterpreterDispatchDescriptor::InitializePlatformSpecific( |
417 CallInterfaceDescriptorData* data) { | 417 CallInterfaceDescriptorData* data) { |
418 Register registers[] = { | 418 Register registers[] = { |
419 kInterpreterAccumulatorRegister, kInterpreterRegisterFileRegister, | 419 kInterpreterAccumulatorRegister, kInterpreterRegisterFileRegister, |
420 kInterpreterBytecodeOffsetRegister, kInterpreterBytecodeArrayRegister, | 420 kInterpreterBytecodeOffsetRegister, kInterpreterBytecodeArrayRegister, |
421 kInterpreterDispatchTableRegister}; | 421 kInterpreterDispatchTableRegister}; |
422 data->InitializePlatformSpecific(arraysize(registers), registers); | 422 data->InitializePlatformSpecific(arraysize(registers), registers); |
423 } | 423 } |
424 | 424 |
| 425 void InterpreterPushArgsAndCallICDescriptor::InitializePlatformSpecific( |
| 426 CallInterfaceDescriptorData* data) { |
| 427 Register registers[] = { |
| 428 rax, // argument count (not including receiver) |
| 429 rbx, // address of first argument |
| 430 rdi, // the target callable to be call |
| 431 rdx, // slot id |
| 432 r9, // type feedback vector // TODO(mythria): move to rbx to match |
| 433 // CallICStub. |
| 434 }; |
| 435 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 436 } |
| 437 |
425 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( | 438 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( |
426 CallInterfaceDescriptorData* data) { | 439 CallInterfaceDescriptorData* data) { |
427 Register registers[] = { | 440 Register registers[] = { |
428 rax, // argument count (not including receiver) | 441 rax, // argument count (not including receiver) |
429 rbx, // address of first argument | 442 rbx, // address of first argument |
430 rdi // the target callable to be call | 443 rdi // the target callable to be call |
431 }; | 444 }; |
432 data->InitializePlatformSpecific(arraysize(registers), registers); | 445 data->InitializePlatformSpecific(arraysize(registers), registers); |
433 } | 446 } |
434 | 447 |
(...skipping 15 matching lines...) Expand all Loading... |
450 r15, // address of first argument (argv) | 463 r15, // address of first argument (argv) |
451 rbx // the runtime function to call | 464 rbx // the runtime function to call |
452 }; | 465 }; |
453 data->InitializePlatformSpecific(arraysize(registers), registers); | 466 data->InitializePlatformSpecific(arraysize(registers), registers); |
454 } | 467 } |
455 | 468 |
456 } // namespace internal | 469 } // namespace internal |
457 } // namespace v8 | 470 } // namespace v8 |
458 | 471 |
459 #endif // V8_TARGET_ARCH_X64 | 472 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |