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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 } | 202 } |
203 | 203 |
204 | 204 |
205 void CallFunctionWithFeedbackAndVectorDescriptor::InitializePlatformSpecific( | 205 void CallFunctionWithFeedbackAndVectorDescriptor::InitializePlatformSpecific( |
206 CallInterfaceDescriptorData* data) { | 206 CallInterfaceDescriptorData* data) { |
207 Register registers[] = {x1, x3, x2}; | 207 Register registers[] = {x1, x3, x2}; |
208 data->InitializePlatformSpecific(arraysize(registers), registers); | 208 data->InitializePlatformSpecific(arraysize(registers), registers); |
209 } | 209 } |
210 | 210 |
211 | 211 |
212 void ConstructDescriptor::InitializePlatformSpecific( | 212 void CallConstructDescriptor::InitializePlatformSpecific( |
213 CallInterfaceDescriptorData* data) { | 213 CallInterfaceDescriptorData* data) { |
214 // x0 : number of arguments | 214 // x0 : number of arguments |
215 // x1 : the function to call | 215 // x1 : the function to call |
216 // x2 : feedback vector | 216 // x2 : feedback vector |
217 // x3 : slot in feedback vector (Smi, for RecordCallTarget) | 217 // x3 : slot in feedback vector (Smi, for RecordCallTarget) |
| 218 // x4 : new target (for IsSuperConstructorCall) |
218 // TODO(turbofan): So far we don't gather type feedback and hence skip the | 219 // TODO(turbofan): So far we don't gather type feedback and hence skip the |
219 // slot parameter, but ArrayConstructStub needs the vector to be undefined. | 220 // slot parameter, but ArrayConstructStub needs the vector to be undefined. |
220 Register registers[] = {x0, x1, x3, x3}; | 221 Register registers[] = {x0, x1, x4, x2}; |
221 data->InitializePlatformSpecific(arraysize(registers), registers); | 222 data->InitializePlatformSpecific(arraysize(registers), registers); |
222 } | 223 } |
223 | 224 |
224 | 225 |
225 void CallTrampolineDescriptor::InitializePlatformSpecific( | 226 void CallTrampolineDescriptor::InitializePlatformSpecific( |
226 CallInterfaceDescriptorData* data) { | 227 CallInterfaceDescriptorData* data) { |
227 // x1: target | 228 // x1: target |
228 // x0: number of arguments | 229 // x0: number of arguments |
229 Register registers[] = {x1, x0}; | 230 Register registers[] = {x1, x0}; |
230 data->InitializePlatformSpecific(arraysize(registers), registers); | 231 data->InitializePlatformSpecific(arraysize(registers), registers); |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 x1 // the runtime function to call | 502 x1 // the runtime function to call |
502 }; | 503 }; |
503 data->InitializePlatformSpecific(arraysize(registers), registers); | 504 data->InitializePlatformSpecific(arraysize(registers), registers); |
504 } | 505 } |
505 | 506 |
506 | 507 |
507 } // namespace internal | 508 } // namespace internal |
508 } // namespace v8 | 509 } // namespace v8 |
509 | 510 |
510 #endif // V8_TARGET_ARCH_ARM64 | 511 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |