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