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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 const Register ToObjectDescriptor::ReceiverRegister() { return rax; } | 119 const Register ToObjectDescriptor::ReceiverRegister() { return rax; } |
120 | 120 |
121 | 121 |
122 void NumberToStringDescriptor::InitializePlatformSpecific( | 122 void NumberToStringDescriptor::InitializePlatformSpecific( |
123 CallInterfaceDescriptorData* data) { | 123 CallInterfaceDescriptorData* data) { |
124 Register registers[] = {rax}; | 124 Register registers[] = {rax}; |
125 data->InitializePlatformSpecific(arraysize(registers), registers); | 125 data->InitializePlatformSpecific(arraysize(registers), registers); |
126 } | 126 } |
127 | 127 |
128 | 128 |
| 129 void FastCloneRegExpDescriptor::InitializePlatformSpecific( |
| 130 CallInterfaceDescriptorData* data) { |
| 131 Register registers[] = {rdi, rax, rcx, rdx}; |
| 132 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 133 } |
| 134 |
| 135 |
129 void FastCloneShallowArrayDescriptor::InitializePlatformSpecific( | 136 void FastCloneShallowArrayDescriptor::InitializePlatformSpecific( |
130 CallInterfaceDescriptorData* data) { | 137 CallInterfaceDescriptorData* data) { |
131 Register registers[] = {rax, rbx, rcx}; | 138 Register registers[] = {rax, rbx, rcx}; |
132 data->InitializePlatformSpecific(arraysize(registers), registers); | 139 data->InitializePlatformSpecific(arraysize(registers), registers); |
133 } | 140 } |
134 | 141 |
135 | 142 |
136 void FastCloneShallowObjectDescriptor::InitializePlatformSpecific( | 143 void FastCloneShallowObjectDescriptor::InitializePlatformSpecific( |
137 CallInterfaceDescriptorData* data) { | 144 CallInterfaceDescriptorData* data) { |
138 Register registers[] = {rax, rbx, rcx, rdx}; | 145 Register registers[] = {rax, rbx, rcx, rdx}; |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 r15, // address of first argument (argv) | 442 r15, // address of first argument (argv) |
436 rbx // the runtime function to call | 443 rbx // the runtime function to call |
437 }; | 444 }; |
438 data->InitializePlatformSpecific(arraysize(registers), registers); | 445 data->InitializePlatformSpecific(arraysize(registers), registers); |
439 } | 446 } |
440 | 447 |
441 } // namespace internal | 448 } // namespace internal |
442 } // namespace v8 | 449 } // namespace v8 |
443 | 450 |
444 #endif // V8_TARGET_ARCH_X64 | 451 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |