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