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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 } | 265 } |
266 | 266 |
267 #define SIMD128_ALLOC_DESC(TYPE, Type, type, lane_count, lane_type) \ | 267 #define SIMD128_ALLOC_DESC(TYPE, Type, type, lane_count, lane_type) \ |
268 void Allocate##Type##Descriptor::InitializePlatformSpecific( \ | 268 void Allocate##Type##Descriptor::InitializePlatformSpecific( \ |
269 CallInterfaceDescriptorData* data) { \ | 269 CallInterfaceDescriptorData* data) { \ |
270 data->InitializePlatformSpecific(0, nullptr, nullptr); \ | 270 data->InitializePlatformSpecific(0, nullptr, nullptr); \ |
271 } | 271 } |
272 SIMD128_TYPES(SIMD128_ALLOC_DESC) | 272 SIMD128_TYPES(SIMD128_ALLOC_DESC) |
273 #undef SIMD128_ALLOC_DESC | 273 #undef SIMD128_ALLOC_DESC |
274 | 274 |
| 275 void ArrayNoArgumentConstructorDescriptor::InitializePlatformSpecific( |
| 276 CallInterfaceDescriptorData* data) { |
| 277 // register state |
| 278 // x1: function |
| 279 // x2: allocation site with elements kind |
| 280 // x0: number of arguments to the constructor function |
| 281 Register registers[] = {x1, x2, x0}; |
| 282 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
| 283 } |
| 284 |
275 void ArrayConstructorConstantArgCountDescriptor::InitializePlatformSpecific( | 285 void ArrayConstructorConstantArgCountDescriptor::InitializePlatformSpecific( |
276 CallInterfaceDescriptorData* data) { | 286 CallInterfaceDescriptorData* data) { |
277 // x1: function | 287 // x1: function |
278 // x2: allocation site with elements kind | 288 // x2: allocation site with elements kind |
279 // x0: number of arguments to the constructor function | 289 // x0: number of arguments to the constructor function |
280 Register registers[] = {x1, x2}; | 290 Register registers[] = {x1, x2}; |
281 data->InitializePlatformSpecific(arraysize(registers), registers); | 291 data->InitializePlatformSpecific(arraysize(registers), registers); |
282 } | 292 } |
283 | 293 |
284 | 294 |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 x1, // the JSGeneratorObject to resume | 480 x1, // the JSGeneratorObject to resume |
471 x2 // the resume mode (tagged) | 481 x2 // the resume mode (tagged) |
472 }; | 482 }; |
473 data->InitializePlatformSpecific(arraysize(registers), registers); | 483 data->InitializePlatformSpecific(arraysize(registers), registers); |
474 } | 484 } |
475 | 485 |
476 } // namespace internal | 486 } // namespace internal |
477 } // namespace v8 | 487 } // namespace v8 |
478 | 488 |
479 #endif // V8_TARGET_ARCH_ARM64 | 489 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |