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