| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 | 107 |
| 108 | 108 |
| 109 void FastNewStrictArgumentsDescriptor::InitializePlatformSpecific( | 109 void FastNewStrictArgumentsDescriptor::InitializePlatformSpecific( |
| 110 CallInterfaceDescriptorData* data) { | 110 CallInterfaceDescriptorData* data) { |
| 111 // x1: function | 111 // x1: function |
| 112 Register registers[] = {x1}; | 112 Register registers[] = {x1}; |
| 113 data->InitializePlatformSpecific(arraysize(registers), registers); | 113 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 114 } | 114 } |
| 115 | 115 |
| 116 | 116 |
| 117 void ToNumberDescriptor::InitializePlatformSpecific( | |
| 118 CallInterfaceDescriptorData* data) { | |
| 119 // x0: value | |
| 120 Register registers[] = {x0}; | |
| 121 data->InitializePlatformSpecific(arraysize(registers), registers); | |
| 122 } | |
| 123 | |
| 124 | |
| 125 // static | 117 // static |
| 126 const Register ToLengthDescriptor::ReceiverRegister() { return x0; } | 118 const Register TypeConversionDescriptor::ArgumentRegister() { return x0; } |
| 127 | |
| 128 | |
| 129 // static | |
| 130 const Register ToStringDescriptor::ReceiverRegister() { return x0; } | |
| 131 | |
| 132 | |
| 133 // static | |
| 134 const Register ToNameDescriptor::ReceiverRegister() { return x0; } | |
| 135 | |
| 136 | |
| 137 // static | |
| 138 const Register ToObjectDescriptor::ReceiverRegister() { return x0; } | |
| 139 | |
| 140 | |
| 141 void NumberToStringDescriptor::InitializePlatformSpecific( | |
| 142 CallInterfaceDescriptorData* data) { | |
| 143 // x0: value | |
| 144 Register registers[] = {x0}; | |
| 145 data->InitializePlatformSpecific(arraysize(registers), registers); | |
| 146 } | |
| 147 | |
| 148 | 119 |
| 149 void TypeofDescriptor::InitializePlatformSpecific( | 120 void TypeofDescriptor::InitializePlatformSpecific( |
| 150 CallInterfaceDescriptorData* data) { | 121 CallInterfaceDescriptorData* data) { |
| 151 Register registers[] = {x3}; | 122 Register registers[] = {x3}; |
| 152 data->InitializePlatformSpecific(arraysize(registers), registers); | 123 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 153 } | 124 } |
| 154 | 125 |
| 155 | 126 |
| 156 void FastCloneRegExpDescriptor::InitializePlatformSpecific( | 127 void FastCloneRegExpDescriptor::InitializePlatformSpecific( |
| 157 CallInterfaceDescriptorData* data) { | 128 CallInterfaceDescriptorData* data) { |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 | 310 |
| 340 void CompareDescriptor::InitializePlatformSpecific( | 311 void CompareDescriptor::InitializePlatformSpecific( |
| 341 CallInterfaceDescriptorData* data) { | 312 CallInterfaceDescriptorData* data) { |
| 342 // x1: left operand | 313 // x1: left operand |
| 343 // x0: right operand | 314 // x0: right operand |
| 344 Register registers[] = {x1, x0}; | 315 Register registers[] = {x1, x0}; |
| 345 data->InitializePlatformSpecific(arraysize(registers), registers); | 316 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 346 } | 317 } |
| 347 | 318 |
| 348 | 319 |
| 349 void ToBooleanDescriptor::InitializePlatformSpecific( | |
| 350 CallInterfaceDescriptorData* data) { | |
| 351 // x0: value | |
| 352 Register registers[] = {x0}; | |
| 353 data->InitializePlatformSpecific(arraysize(registers), registers); | |
| 354 } | |
| 355 | |
| 356 | |
| 357 void BinaryOpDescriptor::InitializePlatformSpecific( | 320 void BinaryOpDescriptor::InitializePlatformSpecific( |
| 358 CallInterfaceDescriptorData* data) { | 321 CallInterfaceDescriptorData* data) { |
| 359 // x1: left operand | 322 // x1: left operand |
| 360 // x0: right operand | 323 // x0: right operand |
| 361 Register registers[] = {x1, x0}; | 324 Register registers[] = {x1, x0}; |
| 362 data->InitializePlatformSpecific(arraysize(registers), registers); | 325 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 363 } | 326 } |
| 364 | 327 |
| 365 | 328 |
| 366 void BinaryOpWithAllocationSiteDescriptor::InitializePlatformSpecific( | 329 void BinaryOpWithAllocationSiteDescriptor::InitializePlatformSpecific( |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 x1 // the runtime function to call | 452 x1 // the runtime function to call |
| 490 }; | 453 }; |
| 491 data->InitializePlatformSpecific(arraysize(registers), registers); | 454 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 492 } | 455 } |
| 493 | 456 |
| 494 | 457 |
| 495 } // namespace internal | 458 } // namespace internal |
| 496 } // namespace v8 | 459 } // namespace v8 |
| 497 | 460 |
| 498 #endif // V8_TARGET_ARCH_ARM64 | 461 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |