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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 void CallTrampolineDescriptor::InitializePlatformSpecific( | 148 void CallTrampolineDescriptor::InitializePlatformSpecific( |
149 CallInterfaceDescriptorData* data) { | 149 CallInterfaceDescriptorData* data) { |
150 // rax : number of arguments | 150 // rax : number of arguments |
151 // rdi : the target to call | 151 // rdi : the target to call |
152 Register registers[] = {rdi, rax}; | 152 Register registers[] = {rdi, rax}; |
153 data->InitializePlatformSpecific(arraysize(registers), registers); | 153 data->InitializePlatformSpecific(arraysize(registers), registers); |
154 } | 154 } |
155 | 155 |
156 void CallForwardVarargsDescriptor::InitializePlatformSpecific( | 156 void CallForwardVarargsDescriptor::InitializePlatformSpecific( |
157 CallInterfaceDescriptorData* data) { | 157 CallInterfaceDescriptorData* data) { |
| 158 // rax : number of arguments |
158 // rcx : start index (to support rest parameters) | 159 // rcx : start index (to support rest parameters) |
159 // rdi : the target to call | 160 // rdi : the target to call |
160 Register registers[] = {rdi, rcx}; | 161 Register registers[] = {rdi, rax, rcx}; |
161 data->InitializePlatformSpecific(arraysize(registers), registers); | 162 data->InitializePlatformSpecific(arraysize(registers), registers); |
162 } | 163 } |
163 | 164 |
| 165 void ConstructForwardVarargsDescriptor::InitializePlatformSpecific( |
| 166 CallInterfaceDescriptorData* data) { |
| 167 // rax : number of arguments |
| 168 // rdx : the new target |
| 169 // rcx : start index (to support rest parameters) |
| 170 // rdi : the target to call |
| 171 Register registers[] = {rdi, rdx, rax, rcx}; |
| 172 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 173 } |
| 174 |
164 void ConstructStubDescriptor::InitializePlatformSpecific( | 175 void ConstructStubDescriptor::InitializePlatformSpecific( |
165 CallInterfaceDescriptorData* data) { | 176 CallInterfaceDescriptorData* data) { |
166 // rax : number of arguments | 177 // rax : number of arguments |
167 // rdx : the new target | 178 // rdx : the new target |
168 // rdi : the target to call | 179 // rdi : the target to call |
169 // rbx : allocation site or undefined | 180 // rbx : allocation site or undefined |
170 Register registers[] = {rdi, rdx, rax, rbx}; | 181 Register registers[] = {rdi, rdx, rax, rbx}; |
171 data->InitializePlatformSpecific(arraysize(registers), registers); | 182 data->InitializePlatformSpecific(arraysize(registers), registers); |
172 } | 183 } |
173 | 184 |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 Register registers[] = { | 381 Register registers[] = { |
371 rbx, // loaded new FP | 382 rbx, // loaded new FP |
372 }; | 383 }; |
373 data->InitializePlatformSpecific(arraysize(registers), registers); | 384 data->InitializePlatformSpecific(arraysize(registers), registers); |
374 } | 385 } |
375 | 386 |
376 } // namespace internal | 387 } // namespace internal |
377 } // namespace v8 | 388 } // namespace v8 |
378 | 389 |
379 #endif // V8_TARGET_ARCH_X64 | 390 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |