| 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 | 206 |
| 207 void CallTrampolineDescriptor::InitializePlatformSpecific( | 207 void CallTrampolineDescriptor::InitializePlatformSpecific( |
| 208 CallInterfaceDescriptorData* data) { | 208 CallInterfaceDescriptorData* data) { |
| 209 // r0 : number of arguments | 209 // r0 : number of arguments |
| 210 // r1 : the target to call | 210 // r1 : the target to call |
| 211 Register registers[] = {r1, r0}; | 211 Register registers[] = {r1, r0}; |
| 212 data->InitializePlatformSpecific(arraysize(registers), registers); | 212 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 213 } | 213 } |
| 214 | 214 |
| 215 | 215 |
| 216 void ConstructStubDescriptor::InitializePlatformSpecific( |
| 217 CallInterfaceDescriptorData* data) { |
| 218 // r0 : number of arguments |
| 219 // r1 : the target to call |
| 220 // r3 : the new target |
| 221 // r2 : allocation site or undefined |
| 222 Register registers[] = {r1, r3, r0, r2}; |
| 223 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 224 } |
| 225 |
| 226 |
| 216 void ConstructTrampolineDescriptor::InitializePlatformSpecific( | 227 void ConstructTrampolineDescriptor::InitializePlatformSpecific( |
| 217 CallInterfaceDescriptorData* data) { | 228 CallInterfaceDescriptorData* data) { |
| 218 // r0 : number of arguments | 229 // r0 : number of arguments |
| 219 // r1 : the target to call | 230 // r1 : the target to call |
| 220 // r3 : the new target | 231 // r3 : the new target |
| 221 Register registers[] = {r1, r3, r0}; | 232 Register registers[] = {r1, r3, r0}; |
| 222 data->InitializePlatformSpecific(arraysize(registers), registers); | 233 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 223 } | 234 } |
| 224 | 235 |
| 225 | 236 |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 r2, // address of first argument (argv) | 458 r2, // address of first argument (argv) |
| 448 r1 // the runtime function to call | 459 r1 // the runtime function to call |
| 449 }; | 460 }; |
| 450 data->InitializePlatformSpecific(arraysize(registers), registers); | 461 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 451 } | 462 } |
| 452 | 463 |
| 453 } // namespace internal | 464 } // namespace internal |
| 454 } // namespace v8 | 465 } // namespace v8 |
| 455 | 466 |
| 456 #endif // V8_TARGET_ARCH_ARM | 467 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |