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 #include "src/arm64/interface-descriptors-arm64.h" | 5 #include "src/arm64/interface-descriptors-arm64.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
8 | 8 |
9 #include "src/interface-descriptors.h" | 9 #include "src/interface-descriptors.h" |
10 | 10 |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 | 169 |
170 | 170 |
171 void CallTrampolineDescriptor::InitializePlatformSpecific( | 171 void CallTrampolineDescriptor::InitializePlatformSpecific( |
172 CallInterfaceDescriptorData* data) { | 172 CallInterfaceDescriptorData* data) { |
173 // x1: target | 173 // x1: target |
174 // x0: number of arguments | 174 // x0: number of arguments |
175 Register registers[] = {x1, x0}; | 175 Register registers[] = {x1, x0}; |
176 data->InitializePlatformSpecific(arraysize(registers), registers); | 176 data->InitializePlatformSpecific(arraysize(registers), registers); |
177 } | 177 } |
178 | 178 |
| 179 void CallVarargsDescriptor::InitializePlatformSpecific( |
| 180 CallInterfaceDescriptorData* data) { |
| 181 // x0 : number of arguments (on the stack, not including receiver) |
| 182 // x1 : the target to call |
| 183 // x2 : arguments list (FixedArray) |
| 184 // x4 : arguments list length (untagged) |
| 185 Register registers[] = {x1, x0, x2, x4}; |
| 186 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 187 } |
| 188 |
179 void CallForwardVarargsDescriptor::InitializePlatformSpecific( | 189 void CallForwardVarargsDescriptor::InitializePlatformSpecific( |
180 CallInterfaceDescriptorData* data) { | 190 CallInterfaceDescriptorData* data) { |
181 // x1: target | 191 // x1: target |
182 // x0: number of arguments | 192 // x0: number of arguments |
183 // x2: start index (to supported rest parameters) | 193 // x2: start index (to supported rest parameters) |
184 Register registers[] = {x1, x0, x2}; | 194 Register registers[] = {x1, x0, x2}; |
185 data->InitializePlatformSpecific(arraysize(registers), registers); | 195 data->InitializePlatformSpecific(arraysize(registers), registers); |
186 } | 196 } |
187 | 197 |
| 198 void CallWithArrayLikeDescriptor::InitializePlatformSpecific( |
| 199 CallInterfaceDescriptorData* data) { |
| 200 // x1 : the target to call |
| 201 // x2 : the arguments list |
| 202 Register registers[] = {x1, x2}; |
| 203 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 204 } |
| 205 |
| 206 void ConstructVarargsDescriptor::InitializePlatformSpecific( |
| 207 CallInterfaceDescriptorData* data) { |
| 208 // x0 : number of arguments (on the stack, not including receiver) |
| 209 // x1 : the target to call |
| 210 // x3 : the new target |
| 211 // x2 : arguments list (FixedArray) |
| 212 // x4 : arguments list length (untagged) |
| 213 Register registers[] = {x1, x3, x0, x2, x4}; |
| 214 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 215 } |
| 216 |
188 void ConstructForwardVarargsDescriptor::InitializePlatformSpecific( | 217 void ConstructForwardVarargsDescriptor::InitializePlatformSpecific( |
189 CallInterfaceDescriptorData* data) { | 218 CallInterfaceDescriptorData* data) { |
190 // x3: new target | 219 // x3: new target |
191 // x1: target | 220 // x1: target |
192 // x0: number of arguments | 221 // x0: number of arguments |
193 // x2: start index (to supported rest parameters) | 222 // x2: start index (to supported rest parameters) |
194 Register registers[] = {x1, x3, x0, x2}; | 223 Register registers[] = {x1, x3, x0, x2}; |
195 data->InitializePlatformSpecific(arraysize(registers), registers); | 224 data->InitializePlatformSpecific(arraysize(registers), registers); |
196 } | 225 } |
197 | 226 |
| 227 void ConstructWithArrayLikeDescriptor::InitializePlatformSpecific( |
| 228 CallInterfaceDescriptorData* data) { |
| 229 // x1 : the target to call |
| 230 // x3 : the new target |
| 231 // x2 : the arguments list |
| 232 Register registers[] = {x1, x3, x2}; |
| 233 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 234 } |
| 235 |
198 void ConstructStubDescriptor::InitializePlatformSpecific( | 236 void ConstructStubDescriptor::InitializePlatformSpecific( |
199 CallInterfaceDescriptorData* data) { | 237 CallInterfaceDescriptorData* data) { |
200 // x3: new target | 238 // x3: new target |
201 // x1: target | 239 // x1: target |
202 // x0: number of arguments | 240 // x0: number of arguments |
203 // x2: allocation site or undefined | 241 // x2: allocation site or undefined |
204 Register registers[] = {x1, x3, x0, x2}; | 242 Register registers[] = {x1, x3, x0, x2}; |
205 data->InitializePlatformSpecific(arraysize(registers), registers); | 243 data->InitializePlatformSpecific(arraysize(registers), registers); |
206 } | 244 } |
207 | 245 |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 Register registers[] = { | 458 Register registers[] = { |
421 x1, // loaded new FP | 459 x1, // loaded new FP |
422 }; | 460 }; |
423 data->InitializePlatformSpecific(arraysize(registers), registers); | 461 data->InitializePlatformSpecific(arraysize(registers), registers); |
424 } | 462 } |
425 | 463 |
426 } // namespace internal | 464 } // namespace internal |
427 } // namespace v8 | 465 } // namespace v8 |
428 | 466 |
429 #endif // V8_TARGET_ARCH_ARM64 | 467 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |