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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 | 225 |
226 void CallTrampolineDescriptor::InitializePlatformSpecific( | 226 void CallTrampolineDescriptor::InitializePlatformSpecific( |
227 CallInterfaceDescriptorData* data) { | 227 CallInterfaceDescriptorData* data) { |
228 // x1: target | 228 // x1: target |
229 // x0: number of arguments | 229 // x0: number of arguments |
230 Register registers[] = {x1, x0}; | 230 Register registers[] = {x1, x0}; |
231 data->InitializePlatformSpecific(arraysize(registers), registers); | 231 data->InitializePlatformSpecific(arraysize(registers), registers); |
232 } | 232 } |
233 | 233 |
234 | 234 |
| 235 void ConstructStubDescriptor::InitializePlatformSpecific( |
| 236 CallInterfaceDescriptorData* data) { |
| 237 // x3: new target |
| 238 // x1: target |
| 239 // x0: number of arguments |
| 240 // x2: allocation site or undefined |
| 241 Register registers[] = {x1, x3, x0, x2}; |
| 242 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 243 } |
| 244 |
| 245 |
235 void ConstructTrampolineDescriptor::InitializePlatformSpecific( | 246 void ConstructTrampolineDescriptor::InitializePlatformSpecific( |
236 CallInterfaceDescriptorData* data) { | 247 CallInterfaceDescriptorData* data) { |
237 // x3: new target | 248 // x3: new target |
238 // x1: target | 249 // x1: target |
239 // x0: number of arguments | 250 // x0: number of arguments |
240 Register registers[] = {x1, x3, x0}; | 251 Register registers[] = {x1, x3, x0}; |
241 data->InitializePlatformSpecific(arraysize(registers), registers); | 252 data->InitializePlatformSpecific(arraysize(registers), registers); |
242 } | 253 } |
243 | 254 |
244 | 255 |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 x1 // the runtime function to call | 492 x1 // the runtime function to call |
482 }; | 493 }; |
483 data->InitializePlatformSpecific(arraysize(registers), registers); | 494 data->InitializePlatformSpecific(arraysize(registers), registers); |
484 } | 495 } |
485 | 496 |
486 | 497 |
487 } // namespace internal | 498 } // namespace internal |
488 } // namespace v8 | 499 } // namespace v8 |
489 | 500 |
490 #endif // V8_TARGET_ARCH_ARM64 | 501 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |