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/arm/interface-descriptors-arm.h" | 5 #include "src/arm/interface-descriptors-arm.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM | 7 #if V8_TARGET_ARCH_ARM |
8 | 8 |
9 #include "src/interface-descriptors.h" | 9 #include "src/interface-descriptors.h" |
10 | 10 |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 | 172 |
173 | 173 |
174 void CallTrampolineDescriptor::InitializePlatformSpecific( | 174 void CallTrampolineDescriptor::InitializePlatformSpecific( |
175 CallInterfaceDescriptorData* data) { | 175 CallInterfaceDescriptorData* data) { |
176 // r0 : number of arguments | 176 // r0 : number of arguments |
177 // r1 : the target to call | 177 // r1 : the target to call |
178 Register registers[] = {r1, r0}; | 178 Register registers[] = {r1, r0}; |
179 data->InitializePlatformSpecific(arraysize(registers), registers); | 179 data->InitializePlatformSpecific(arraysize(registers), registers); |
180 } | 180 } |
181 | 181 |
| 182 void CallForwardVarargsDescriptor::InitializePlatformSpecific( |
| 183 CallInterfaceDescriptorData* data) { |
| 184 // r2 : start index (to support rest parameters) |
| 185 // r1 : the target to call |
| 186 Register registers[] = {r1, r2}; |
| 187 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 188 } |
182 | 189 |
183 void ConstructStubDescriptor::InitializePlatformSpecific( | 190 void ConstructStubDescriptor::InitializePlatformSpecific( |
184 CallInterfaceDescriptorData* data) { | 191 CallInterfaceDescriptorData* data) { |
185 // r0 : number of arguments | 192 // r0 : number of arguments |
186 // r1 : the target to call | 193 // r1 : the target to call |
187 // r3 : the new target | 194 // r3 : the new target |
188 // r2 : allocation site or undefined | 195 // r2 : allocation site or undefined |
189 Register registers[] = {r1, r3, r0, r2}; | 196 Register registers[] = {r1, r3, r0, r2}; |
190 data->InitializePlatformSpecific(arraysize(registers), registers); | 197 data->InitializePlatformSpecific(arraysize(registers), registers); |
191 } | 198 } |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 r1, // the JSGeneratorObject to resume | 434 r1, // the JSGeneratorObject to resume |
428 r2 // the resume mode (tagged) | 435 r2 // the resume mode (tagged) |
429 }; | 436 }; |
430 data->InitializePlatformSpecific(arraysize(registers), registers); | 437 data->InitializePlatformSpecific(arraysize(registers), registers); |
431 } | 438 } |
432 | 439 |
433 } // namespace internal | 440 } // namespace internal |
434 } // namespace v8 | 441 } // namespace v8 |
435 | 442 |
436 #endif // V8_TARGET_ARCH_ARM | 443 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |