| 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 Register registers[] = {r1}; | 279 Register registers[] = {r1}; |
| 280 data->InitializePlatformSpecific(arraysize(registers), registers); | 280 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 281 } | 281 } |
| 282 | 282 |
| 283 void StringAddDescriptor::InitializePlatformSpecific( | 283 void StringAddDescriptor::InitializePlatformSpecific( |
| 284 CallInterfaceDescriptorData* data) { | 284 CallInterfaceDescriptorData* data) { |
| 285 Register registers[] = {r1, r0}; | 285 Register registers[] = {r1, r0}; |
| 286 data->InitializePlatformSpecific(arraysize(registers), registers); | 286 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 287 } | 287 } |
| 288 | 288 |
| 289 | |
| 290 void KeyedDescriptor::InitializePlatformSpecific( | |
| 291 CallInterfaceDescriptorData* data) { | |
| 292 static PlatformInterfaceDescriptor noInlineDescriptor = | |
| 293 PlatformInterfaceDescriptor(NEVER_INLINE_TARGET_ADDRESS); | |
| 294 | |
| 295 Register registers[] = { | |
| 296 r2, // key | |
| 297 }; | |
| 298 data->InitializePlatformSpecific(arraysize(registers), registers, | |
| 299 &noInlineDescriptor); | |
| 300 } | |
| 301 | |
| 302 | |
| 303 void NamedDescriptor::InitializePlatformSpecific( | |
| 304 CallInterfaceDescriptorData* data) { | |
| 305 static PlatformInterfaceDescriptor noInlineDescriptor = | |
| 306 PlatformInterfaceDescriptor(NEVER_INLINE_TARGET_ADDRESS); | |
| 307 | |
| 308 Register registers[] = { | |
| 309 r2, // name | |
| 310 }; | |
| 311 data->InitializePlatformSpecific(arraysize(registers), registers, | |
| 312 &noInlineDescriptor); | |
| 313 } | |
| 314 | |
| 315 | |
| 316 void CallHandlerDescriptor::InitializePlatformSpecific( | |
| 317 CallInterfaceDescriptorData* data) { | |
| 318 static PlatformInterfaceDescriptor default_descriptor = | |
| 319 PlatformInterfaceDescriptor(CAN_INLINE_TARGET_ADDRESS); | |
| 320 | |
| 321 Register registers[] = { | |
| 322 r0, // receiver | |
| 323 }; | |
| 324 data->InitializePlatformSpecific(arraysize(registers), registers, | |
| 325 &default_descriptor); | |
| 326 } | |
| 327 | |
| 328 | |
| 329 void ArgumentAdaptorDescriptor::InitializePlatformSpecific( | 289 void ArgumentAdaptorDescriptor::InitializePlatformSpecific( |
| 330 CallInterfaceDescriptorData* data) { | 290 CallInterfaceDescriptorData* data) { |
| 331 static PlatformInterfaceDescriptor default_descriptor = | 291 static PlatformInterfaceDescriptor default_descriptor = |
| 332 PlatformInterfaceDescriptor(CAN_INLINE_TARGET_ADDRESS); | 292 PlatformInterfaceDescriptor(CAN_INLINE_TARGET_ADDRESS); |
| 333 | 293 |
| 334 Register registers[] = { | 294 Register registers[] = { |
| 335 r1, // JSFunction | 295 r1, // JSFunction |
| 336 r3, // the new target | 296 r3, // the new target |
| 337 r0, // actual number of arguments | 297 r0, // actual number of arguments |
| 338 r2, // expected number of arguments | 298 r2, // expected number of arguments |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 Register registers[] = { | 382 Register registers[] = { |
| 423 r1, // loaded new FP | 383 r1, // loaded new FP |
| 424 }; | 384 }; |
| 425 data->InitializePlatformSpecific(arraysize(registers), registers); | 385 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 426 } | 386 } |
| 427 | 387 |
| 428 } // namespace internal | 388 } // namespace internal |
| 429 } // namespace v8 | 389 } // namespace v8 |
| 430 | 390 |
| 431 #endif // V8_TARGET_ARCH_ARM | 391 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |