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 | |
438 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( | 425 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( |
439 CallInterfaceDescriptorData* data) { | 426 CallInterfaceDescriptorData* data) { |
440 Register registers[] = { | 427 Register registers[] = { |
441 rax, // argument count (not including receiver) | 428 rax, // argument count (not including receiver) |
442 rbx, // address of first argument | 429 rbx, // address of first argument |
443 rdi // the target callable to be call | 430 rdi // the target callable to be call |
444 }; | 431 }; |
445 data->InitializePlatformSpecific(arraysize(registers), registers); | 432 data->InitializePlatformSpecific(arraysize(registers), registers); |
446 } | 433 } |
447 | 434 |
(...skipping 15 matching lines...) Expand all Loading... |
463 r15, // address of first argument (argv) | 450 r15, // address of first argument (argv) |
464 rbx // the runtime function to call | 451 rbx // the runtime function to call |
465 }; | 452 }; |
466 data->InitializePlatformSpecific(arraysize(registers), registers); | 453 data->InitializePlatformSpecific(arraysize(registers), registers); |
467 } | 454 } |
468 | 455 |
469 } // namespace internal | 456 } // namespace internal |
470 } // namespace v8 | 457 } // namespace v8 |
471 | 458 |
472 #endif // V8_TARGET_ARCH_X64 | 459 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |