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 262 matching lines...) Loading... |
273 void ArrayNoArgumentConstructorDescriptor::InitializePlatformSpecific( | 273 void ArrayNoArgumentConstructorDescriptor::InitializePlatformSpecific( |
274 CallInterfaceDescriptorData* data) { | 274 CallInterfaceDescriptorData* data) { |
275 // register state | 275 // register state |
276 // x1: function | 276 // x1: function |
277 // x2: allocation site with elements kind | 277 // x2: allocation site with elements kind |
278 // x0: number of arguments to the constructor function | 278 // x0: number of arguments to the constructor function |
279 Register registers[] = {x1, x2, x0}; | 279 Register registers[] = {x1, x2, x0}; |
280 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 280 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
281 } | 281 } |
282 | 282 |
283 void ArrayConstructorConstantArgCountDescriptor::InitializePlatformSpecific( | 283 void ArraySingleArgumentConstructorDescriptor::InitializePlatformSpecific( |
284 CallInterfaceDescriptorData* data) { | 284 CallInterfaceDescriptorData* data) { |
| 285 // register state |
| 286 // x0: number of arguments |
285 // x1: function | 287 // x1: function |
286 // x2: allocation site with elements kind | 288 // x2: allocation site with elements kind |
287 // x0: number of arguments to the constructor function | 289 Register registers[] = {x1, x2, x0}; |
288 Register registers[] = {x1, x2}; | 290 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
289 data->InitializePlatformSpecific(arraysize(registers), registers); | |
290 } | 291 } |
291 | 292 |
292 | |
293 void ArrayConstructorDescriptor::InitializePlatformSpecific( | 293 void ArrayConstructorDescriptor::InitializePlatformSpecific( |
294 CallInterfaceDescriptorData* data) { | 294 CallInterfaceDescriptorData* data) { |
295 // stack param count needs (constructor pointer, and single argument) | 295 // stack param count needs (constructor pointer, and single argument) |
296 Register registers[] = {x1, x2, x0}; | 296 Register registers[] = {x1, x2, x0}; |
297 data->InitializePlatformSpecific(arraysize(registers), registers); | 297 data->InitializePlatformSpecific(arraysize(registers), registers); |
298 } | 298 } |
299 | 299 |
300 | 300 |
301 void InternalArrayConstructorConstantArgCountDescriptor:: | |
302 InitializePlatformSpecific(CallInterfaceDescriptorData* data) { | |
303 // x1: constructor function | |
304 // x0: number of arguments to the constructor function | |
305 Register registers[] = {x1}; | |
306 data->InitializePlatformSpecific(arraysize(registers), registers); | |
307 } | |
308 | |
309 | |
310 void InternalArrayConstructorDescriptor::InitializePlatformSpecific( | 301 void InternalArrayConstructorDescriptor::InitializePlatformSpecific( |
311 CallInterfaceDescriptorData* data) { | 302 CallInterfaceDescriptorData* data) { |
312 // stack param count needs (constructor pointer, and single argument) | 303 // stack param count needs (constructor pointer, and single argument) |
313 Register registers[] = {x1, x0}; | 304 Register registers[] = {x1, x0}; |
314 data->InitializePlatformSpecific(arraysize(registers), registers); | 305 data->InitializePlatformSpecific(arraysize(registers), registers); |
315 } | 306 } |
316 | 307 |
317 void FastArrayPushDescriptor::InitializePlatformSpecific( | 308 void FastArrayPushDescriptor::InitializePlatformSpecific( |
318 CallInterfaceDescriptorData* data) { | 309 CallInterfaceDescriptorData* data) { |
319 // stack param count needs (arg count) | 310 // stack param count needs (arg count) |
(...skipping 158 matching lines...) Loading... |
478 x1, // the JSGeneratorObject to resume | 469 x1, // the JSGeneratorObject to resume |
479 x2 // the resume mode (tagged) | 470 x2 // the resume mode (tagged) |
480 }; | 471 }; |
481 data->InitializePlatformSpecific(arraysize(registers), registers); | 472 data->InitializePlatformSpecific(arraysize(registers), registers); |
482 } | 473 } |
483 | 474 |
484 } // namespace internal | 475 } // namespace internal |
485 } // namespace v8 | 476 } // namespace v8 |
486 | 477 |
487 #endif // V8_TARGET_ARCH_ARM64 | 478 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |