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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 | 47 |
48 | 48 |
49 const Register InstanceOfDescriptor::LeftRegister() { return rdx; } | 49 const Register InstanceOfDescriptor::LeftRegister() { return rdx; } |
50 const Register InstanceOfDescriptor::RightRegister() { return rax; } | 50 const Register InstanceOfDescriptor::RightRegister() { return rax; } |
51 | 51 |
52 | 52 |
53 const Register StringCompareDescriptor::LeftRegister() { return rdx; } | 53 const Register StringCompareDescriptor::LeftRegister() { return rdx; } |
54 const Register StringCompareDescriptor::RightRegister() { return rax; } | 54 const Register StringCompareDescriptor::RightRegister() { return rax; } |
55 | 55 |
56 | 56 |
| 57 const Register ArgumentsAccessNewDescriptor::function() { return rdi; } |
| 58 const Register ArgumentsAccessNewDescriptor::parameter_count() { return rcx; } |
| 59 const Register ArgumentsAccessNewDescriptor::parameter_pointer() { return rdx; } |
| 60 |
| 61 |
57 const Register ApiGetterDescriptor::function_address() { return r8; } | 62 const Register ApiGetterDescriptor::function_address() { return r8; } |
58 | 63 |
59 | 64 |
60 const Register MathPowTaggedDescriptor::exponent() { return rdx; } | 65 const Register MathPowTaggedDescriptor::exponent() { return rdx; } |
61 | 66 |
62 | 67 |
63 const Register MathPowIntegerDescriptor::exponent() { | 68 const Register MathPowIntegerDescriptor::exponent() { |
64 return MathPowTaggedDescriptor::exponent(); | 69 return MathPowTaggedDescriptor::exponent(); |
65 } | 70 } |
66 | 71 |
(...skipping 13 matching lines...) Expand all Loading... |
80 CallInterfaceDescriptorData* data) { | 85 CallInterfaceDescriptorData* data) { |
81 Register registers[] = {rdi}; | 86 Register registers[] = {rdi}; |
82 data->InitializePlatformSpecific(arraysize(registers), registers); | 87 data->InitializePlatformSpecific(arraysize(registers), registers); |
83 } | 88 } |
84 | 89 |
85 | 90 |
86 void FastNewRestParameterDescriptor::InitializePlatformSpecific( | 91 void FastNewRestParameterDescriptor::InitializePlatformSpecific( |
87 CallInterfaceDescriptorData* data) { | 92 CallInterfaceDescriptorData* data) { |
88 Register registers[] = {rdi}; | 93 Register registers[] = {rdi}; |
89 data->InitializePlatformSpecific(arraysize(registers), registers); | 94 data->InitializePlatformSpecific(arraysize(registers), registers); |
90 } | |
91 | |
92 void FastNewSloppyArgumentsDescriptor::InitializePlatformSpecific( | |
93 CallInterfaceDescriptorData* data) { | |
94 Register registers[] = {rdi}; | |
95 data->InitializePlatformSpecific(arraysize(registers), registers); | |
96 } | 95 } |
97 | 96 |
98 void FastNewStrictArgumentsDescriptor::InitializePlatformSpecific( | 97 void FastNewStrictArgumentsDescriptor::InitializePlatformSpecific( |
99 CallInterfaceDescriptorData* data) { | 98 CallInterfaceDescriptorData* data) { |
100 Register registers[] = {rdi}; | 99 Register registers[] = {rdi}; |
101 data->InitializePlatformSpecific(arraysize(registers), registers); | 100 data->InitializePlatformSpecific(arraysize(registers), registers); |
102 } | 101 } |
103 | 102 |
104 | 103 |
105 void TypeofDescriptor::InitializePlatformSpecific( | 104 void TypeofDescriptor::InitializePlatformSpecific( |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 r15, // address of first argument (argv) | 444 r15, // address of first argument (argv) |
446 rbx // the runtime function to call | 445 rbx // the runtime function to call |
447 }; | 446 }; |
448 data->InitializePlatformSpecific(arraysize(registers), registers); | 447 data->InitializePlatformSpecific(arraysize(registers), registers); |
449 } | 448 } |
450 | 449 |
451 } // namespace internal | 450 } // namespace internal |
452 } // namespace v8 | 451 } // namespace v8 |
453 | 452 |
454 #endif // V8_TARGET_ARCH_X64 | 453 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |