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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 | 214 |
215 void CallTrampolineDescriptor::InitializePlatformSpecific( | 215 void CallTrampolineDescriptor::InitializePlatformSpecific( |
216 CallInterfaceDescriptorData* data) { | 216 CallInterfaceDescriptorData* data) { |
217 // x1: target | 217 // x1: target |
218 // x0: number of arguments | 218 // x0: number of arguments |
219 Register registers[] = {x1, x0}; | 219 Register registers[] = {x1, x0}; |
220 data->InitializePlatformSpecific(arraysize(registers), registers); | 220 data->InitializePlatformSpecific(arraysize(registers), registers); |
221 } | 221 } |
222 | 222 |
223 | 223 |
| 224 void ConstructTrampolineDescriptor::InitializePlatformSpecific( |
| 225 CallInterfaceDescriptorData* data) { |
| 226 // x3: new target |
| 227 // x1: target |
| 228 // x0: number of arguments |
| 229 Register registers[] = {x1, x3, x0}; |
| 230 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 231 } |
| 232 |
| 233 |
224 void RegExpConstructResultDescriptor::InitializePlatformSpecific( | 234 void RegExpConstructResultDescriptor::InitializePlatformSpecific( |
225 CallInterfaceDescriptorData* data) { | 235 CallInterfaceDescriptorData* data) { |
226 // x2: length | 236 // x2: length |
227 // x1: index (of last match) | 237 // x1: index (of last match) |
228 // x0: string | 238 // x0: string |
229 Register registers[] = {x2, x1, x0}; | 239 Register registers[] = {x2, x1, x0}; |
230 data->InitializePlatformSpecific(arraysize(registers), registers); | 240 data->InitializePlatformSpecific(arraysize(registers), registers); |
231 } | 241 } |
232 | 242 |
233 | 243 |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 x1 // the runtime function to call | 491 x1 // the runtime function to call |
482 }; | 492 }; |
483 data->InitializePlatformSpecific(arraysize(registers), registers); | 493 data->InitializePlatformSpecific(arraysize(registers), registers); |
484 } | 494 } |
485 | 495 |
486 | 496 |
487 } // namespace internal | 497 } // namespace internal |
488 } // namespace v8 | 498 } // namespace v8 |
489 | 499 |
490 #endif // V8_TARGET_ARCH_ARM64 | 500 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |