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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 } | 183 } |
184 | 184 |
185 | 185 |
186 void CallFunctionWithFeedbackAndVectorDescriptor::InitializePlatformSpecific( | 186 void CallFunctionWithFeedbackAndVectorDescriptor::InitializePlatformSpecific( |
187 CallInterfaceDescriptorData* data) { | 187 CallInterfaceDescriptorData* data) { |
188 Register registers[] = {r1, r3, r2}; | 188 Register registers[] = {r1, r3, r2}; |
189 data->InitializePlatformSpecific(arraysize(registers), registers); | 189 data->InitializePlatformSpecific(arraysize(registers), registers); |
190 } | 190 } |
191 | 191 |
192 | 192 |
193 void ConstructDescriptor::InitializePlatformSpecific( | 193 void CallConstructDescriptor::InitializePlatformSpecific( |
194 CallInterfaceDescriptorData* data) { | 194 CallInterfaceDescriptorData* data) { |
195 // r0 : number of arguments | 195 // r0 : number of arguments |
196 // r1 : the function to call | 196 // r1 : the function to call |
197 // r2 : feedback vector | 197 // r2 : feedback vector |
198 // r3 : slot in feedback vector (Smi, for RecordCallTarget) | 198 // r3 : slot in feedback vector (Smi, for RecordCallTarget) |
| 199 // r4 : new target (for IsSuperConstructorCall) |
199 // TODO(turbofan): So far we don't gather type feedback and hence skip the | 200 // TODO(turbofan): So far we don't gather type feedback and hence skip the |
200 // slot parameter, but ArrayConstructStub needs the vector to be undefined. | 201 // slot parameter, but ArrayConstructStub needs the vector to be undefined. |
201 Register registers[] = {r0, r1, r2, r3}; | 202 Register registers[] = {r0, r1, r4, r2}; |
202 data->InitializePlatformSpecific(arraysize(registers), registers); | 203 data->InitializePlatformSpecific(arraysize(registers), registers); |
203 } | 204 } |
204 | 205 |
205 | 206 |
206 void CallTrampolineDescriptor::InitializePlatformSpecific( | 207 void CallTrampolineDescriptor::InitializePlatformSpecific( |
207 CallInterfaceDescriptorData* data) { | 208 CallInterfaceDescriptorData* data) { |
208 // r0 : number of arguments | 209 // r0 : number of arguments |
209 // r1 : the target to call | 210 // r1 : the target to call |
210 Register registers[] = {r1, r0}; | 211 Register registers[] = {r1, r0}; |
211 data->InitializePlatformSpecific(arraysize(registers), registers); | 212 data->InitializePlatformSpecific(arraysize(registers), registers); |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 r2, // address of first argument (argv) | 468 r2, // address of first argument (argv) |
468 r1 // the runtime function to call | 469 r1 // the runtime function to call |
469 }; | 470 }; |
470 data->InitializePlatformSpecific(arraysize(registers), registers); | 471 data->InitializePlatformSpecific(arraysize(registers), registers); |
471 } | 472 } |
472 | 473 |
473 } // namespace internal | 474 } // namespace internal |
474 } // namespace v8 | 475 } // namespace v8 |
475 | 476 |
476 #endif // V8_TARGET_ARCH_ARM | 477 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |