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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 56 |
57 const Register ArgumentsAccessReadDescriptor::index() { return rdx; } | 57 const Register ArgumentsAccessReadDescriptor::index() { return rdx; } |
58 const Register ArgumentsAccessReadDescriptor::parameter_count() { return rax; } | 58 const Register ArgumentsAccessReadDescriptor::parameter_count() { return rax; } |
59 | 59 |
60 | 60 |
61 const Register ArgumentsAccessNewDescriptor::function() { return rdi; } | 61 const Register ArgumentsAccessNewDescriptor::function() { return rdi; } |
62 const Register ArgumentsAccessNewDescriptor::parameter_count() { return rcx; } | 62 const Register ArgumentsAccessNewDescriptor::parameter_count() { return rcx; } |
63 const Register ArgumentsAccessNewDescriptor::parameter_pointer() { return rdx; } | 63 const Register ArgumentsAccessNewDescriptor::parameter_pointer() { return rdx; } |
64 | 64 |
65 | 65 |
66 const Register RestParamAccessDescriptor::parameter_count() { return rcx; } | |
67 const Register RestParamAccessDescriptor::parameter_pointer() { return rdx; } | |
68 const Register RestParamAccessDescriptor::rest_parameter_index() { return rbx; } | |
69 | |
70 | |
71 const Register ApiGetterDescriptor::function_address() { return r8; } | 66 const Register ApiGetterDescriptor::function_address() { return r8; } |
72 | 67 |
73 | 68 |
74 const Register MathPowTaggedDescriptor::exponent() { return rdx; } | 69 const Register MathPowTaggedDescriptor::exponent() { return rdx; } |
75 | 70 |
76 | 71 |
77 const Register MathPowIntegerDescriptor::exponent() { | 72 const Register MathPowIntegerDescriptor::exponent() { |
78 return MathPowTaggedDescriptor::exponent(); | 73 return MathPowTaggedDescriptor::exponent(); |
79 } | 74 } |
80 | 75 |
81 | 76 |
82 const Register GrowArrayElementsDescriptor::ObjectRegister() { return rax; } | 77 const Register GrowArrayElementsDescriptor::ObjectRegister() { return rax; } |
83 const Register GrowArrayElementsDescriptor::KeyRegister() { return rbx; } | 78 const Register GrowArrayElementsDescriptor::KeyRegister() { return rbx; } |
84 | 79 |
85 | 80 |
86 void FastNewClosureDescriptor::InitializePlatformSpecific( | 81 void FastNewClosureDescriptor::InitializePlatformSpecific( |
87 CallInterfaceDescriptorData* data) { | 82 CallInterfaceDescriptorData* data) { |
88 Register registers[] = {rbx}; | 83 Register registers[] = {rbx}; |
89 data->InitializePlatformSpecific(arraysize(registers), registers); | 84 data->InitializePlatformSpecific(arraysize(registers), registers); |
90 } | 85 } |
91 | 86 |
92 | 87 |
93 void FastNewContextDescriptor::InitializePlatformSpecific( | 88 void FastNewContextDescriptor::InitializePlatformSpecific( |
94 CallInterfaceDescriptorData* data) { | 89 CallInterfaceDescriptorData* data) { |
95 Register registers[] = {rdi}; | 90 Register registers[] = {rdi}; |
96 data->InitializePlatformSpecific(arraysize(registers), registers); | 91 data->InitializePlatformSpecific(arraysize(registers), registers); |
97 } | 92 } |
98 | 93 |
99 | 94 |
| 95 void FastNewRestParameterDescriptor::InitializePlatformSpecific( |
| 96 CallInterfaceDescriptorData* data) { |
| 97 Register registers[] = {rdi}; |
| 98 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 99 } |
| 100 |
| 101 |
100 void TypeofDescriptor::InitializePlatformSpecific( | 102 void TypeofDescriptor::InitializePlatformSpecific( |
101 CallInterfaceDescriptorData* data) { | 103 CallInterfaceDescriptorData* data) { |
102 Register registers[] = {rbx}; | 104 Register registers[] = {rbx}; |
103 data->InitializePlatformSpecific(arraysize(registers), registers); | 105 data->InitializePlatformSpecific(arraysize(registers), registers); |
104 } | 106 } |
105 | 107 |
106 | 108 |
107 void ToNumberDescriptor::InitializePlatformSpecific( | 109 void ToNumberDescriptor::InitializePlatformSpecific( |
108 CallInterfaceDescriptorData* data) { | 110 CallInterfaceDescriptorData* data) { |
109 // ToNumberStub invokes a function, and therefore needs a context. | 111 // ToNumberStub invokes a function, and therefore needs a context. |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 r15, // address of first argument (argv) | 436 r15, // address of first argument (argv) |
435 rbx // the runtime function to call | 437 rbx // the runtime function to call |
436 }; | 438 }; |
437 data->InitializePlatformSpecific(arraysize(registers), registers); | 439 data->InitializePlatformSpecific(arraysize(registers), registers); |
438 } | 440 } |
439 | 441 |
440 } // namespace internal | 442 } // namespace internal |
441 } // namespace v8 | 443 } // namespace v8 |
442 | 444 |
443 #endif // V8_TARGET_ARCH_X64 | 445 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |