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/v8.h" | 5 #include "src/v8.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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 void ApiFunctionDescriptor::Initialize(CallInterfaceDescriptorData* data) { | 311 void ApiFunctionDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
312 static PlatformInterfaceDescriptor default_descriptor = | 312 static PlatformInterfaceDescriptor default_descriptor = |
313 PlatformInterfaceDescriptor(CAN_INLINE_TARGET_ADDRESS); | 313 PlatformInterfaceDescriptor(CAN_INLINE_TARGET_ADDRESS); |
314 | 314 |
315 Register registers[] = { | 315 Register registers[] = { |
316 cp, // context | 316 cp, // context |
317 r0, // callee | 317 r0, // callee |
318 r4, // call_data | 318 r4, // call_data |
319 r2, // holder | 319 r2, // holder |
320 r1, // api_function_address | 320 r1, // api_function_address |
| 321 r3, // actual number of arguments |
| 322 }; |
| 323 Representation representations[] = { |
| 324 Representation::Tagged(), // context |
| 325 Representation::Tagged(), // callee |
| 326 Representation::Tagged(), // call_data |
| 327 Representation::Tagged(), // holder |
| 328 Representation::External(), // api_function_address |
| 329 Representation::Integer32(), // actual number of arguments |
| 330 }; |
| 331 data->Initialize(arraysize(registers), registers, representations, |
| 332 &default_descriptor); |
| 333 } |
| 334 |
| 335 |
| 336 void ApiAccessorDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
| 337 static PlatformInterfaceDescriptor default_descriptor = |
| 338 PlatformInterfaceDescriptor(CAN_INLINE_TARGET_ADDRESS); |
| 339 |
| 340 Register registers[] = { |
| 341 cp, // context |
| 342 r0, // callee |
| 343 r4, // call_data |
| 344 r2, // holder |
| 345 r1, // api_function_address |
321 }; | 346 }; |
322 Representation representations[] = { | 347 Representation representations[] = { |
323 Representation::Tagged(), // context | 348 Representation::Tagged(), // context |
324 Representation::Tagged(), // callee | 349 Representation::Tagged(), // callee |
325 Representation::Tagged(), // call_data | 350 Representation::Tagged(), // call_data |
326 Representation::Tagged(), // holder | 351 Representation::Tagged(), // holder |
327 Representation::External(), // api_function_address | 352 Representation::External(), // api_function_address |
328 }; | 353 }; |
329 data->Initialize(arraysize(registers), registers, representations, | 354 data->Initialize(arraysize(registers), registers, representations, |
330 &default_descriptor); | 355 &default_descriptor); |
331 } | 356 } |
332 } | 357 } |
333 } // namespace v8::internal | 358 } // namespace v8::internal |
334 | 359 |
335 #endif // V8_TARGET_ARCH_ARM | 360 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |