| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 CallInterfaceDescriptorData* data) { | 170 CallInterfaceDescriptorData* data) { |
| 171 // x1: target | 171 // x1: target |
| 172 // x0: number of arguments | 172 // x0: number of arguments |
| 173 Register registers[] = {x1, x0}; | 173 Register registers[] = {x1, x0}; |
| 174 data->InitializePlatformSpecific(arraysize(registers), registers); | 174 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 175 } | 175 } |
| 176 | 176 |
| 177 void CallForwardVarargsDescriptor::InitializePlatformSpecific( | 177 void CallForwardVarargsDescriptor::InitializePlatformSpecific( |
| 178 CallInterfaceDescriptorData* data) { | 178 CallInterfaceDescriptorData* data) { |
| 179 // x1: target | 179 // x1: target |
| 180 // x0: number of arguments |
| 180 // x2: start index (to supported rest parameters) | 181 // x2: start index (to supported rest parameters) |
| 181 Register registers[] = {x1, x2}; | 182 Register registers[] = {x1, x0, x2}; |
| 182 data->InitializePlatformSpecific(arraysize(registers), registers); | 183 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 183 } | 184 } |
| 184 | 185 |
| 186 void ConstructForwardVarargsDescriptor::InitializePlatformSpecific( |
| 187 CallInterfaceDescriptorData* data) { |
| 188 // x3: new target |
| 189 // x1: target |
| 190 // x0: number of arguments |
| 191 // x2: start index (to supported rest parameters) |
| 192 Register registers[] = {x1, x3, x0, x2}; |
| 193 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 194 } |
| 195 |
| 185 void ConstructStubDescriptor::InitializePlatformSpecific( | 196 void ConstructStubDescriptor::InitializePlatformSpecific( |
| 186 CallInterfaceDescriptorData* data) { | 197 CallInterfaceDescriptorData* data) { |
| 187 // x3: new target | 198 // x3: new target |
| 188 // x1: target | 199 // x1: target |
| 189 // x0: number of arguments | 200 // x0: number of arguments |
| 190 // x2: allocation site or undefined | 201 // x2: allocation site or undefined |
| 191 Register registers[] = {x1, x3, x0, x2}; | 202 Register registers[] = {x1, x3, x0, x2}; |
| 192 data->InitializePlatformSpecific(arraysize(registers), registers); | 203 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 193 } | 204 } |
| 194 | 205 |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 Register registers[] = { | 418 Register registers[] = { |
| 408 x1, // loaded new FP | 419 x1, // loaded new FP |
| 409 }; | 420 }; |
| 410 data->InitializePlatformSpecific(arraysize(registers), registers); | 421 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 411 } | 422 } |
| 412 | 423 |
| 413 } // namespace internal | 424 } // namespace internal |
| 414 } // namespace v8 | 425 } // namespace v8 |
| 415 | 426 |
| 416 #endif // V8_TARGET_ARCH_ARM64 | 427 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |