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 |
11 namespace v8 { | 11 namespace v8 { |
12 namespace internal { | 12 namespace internal { |
13 | 13 |
14 const Register CallInterfaceDescriptor::ContextRegister() { return cp; } | 14 const Register CallInterfaceDescriptor::ContextRegister() { return cp; } |
15 | 15 |
| 16 void CallInterfaceDescriptor::DefaultInitializePlatformSpecific( |
| 17 CallInterfaceDescriptorData* data, int register_parameter_count) { |
| 18 const Register default_stub_registers[] = {r0, r1, r2, r3, r4}; |
| 19 CHECK_LE(static_cast<size_t>(register_parameter_count), |
| 20 arraysize(default_stub_registers)); |
| 21 data->InitializePlatformSpecific(register_parameter_count, |
| 22 default_stub_registers); |
| 23 } |
16 | 24 |
17 const Register LoadDescriptor::ReceiverRegister() { return r1; } | 25 const Register LoadDescriptor::ReceiverRegister() { return r1; } |
18 const Register LoadDescriptor::NameRegister() { return r2; } | 26 const Register LoadDescriptor::NameRegister() { return r2; } |
19 const Register LoadDescriptor::SlotRegister() { return r0; } | 27 const Register LoadDescriptor::SlotRegister() { return r0; } |
20 | 28 |
21 | 29 |
22 const Register LoadWithVectorDescriptor::VectorRegister() { return r3; } | 30 const Register LoadWithVectorDescriptor::VectorRegister() { return r3; } |
23 | 31 |
24 | 32 |
25 const Register StoreDescriptor::ReceiverRegister() { return r1; } | 33 const Register StoreDescriptor::ReceiverRegister() { return r1; } |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 66 |
59 | 67 |
60 const Register MathPowIntegerDescriptor::exponent() { | 68 const Register MathPowIntegerDescriptor::exponent() { |
61 return MathPowTaggedDescriptor::exponent(); | 69 return MathPowTaggedDescriptor::exponent(); |
62 } | 70 } |
63 | 71 |
64 | 72 |
65 const Register GrowArrayElementsDescriptor::ObjectRegister() { return r0; } | 73 const Register GrowArrayElementsDescriptor::ObjectRegister() { return r0; } |
66 const Register GrowArrayElementsDescriptor::KeyRegister() { return r3; } | 74 const Register GrowArrayElementsDescriptor::KeyRegister() { return r3; } |
67 | 75 |
68 const Register HasPropertyDescriptor::ObjectRegister() { return r0; } | |
69 const Register HasPropertyDescriptor::KeyRegister() { return r3; } | |
70 | 76 |
71 void FastNewClosureDescriptor::InitializePlatformSpecific( | 77 void FastNewClosureDescriptor::InitializePlatformSpecific( |
72 CallInterfaceDescriptorData* data) { | 78 CallInterfaceDescriptorData* data) { |
73 Register registers[] = {r2}; | 79 Register registers[] = {r2}; |
74 data->InitializePlatformSpecific(arraysize(registers), registers); | 80 data->InitializePlatformSpecific(arraysize(registers), registers); |
75 } | 81 } |
76 | 82 |
77 | 83 |
78 void FastNewContextDescriptor::InitializePlatformSpecific( | 84 void FastNewContextDescriptor::InitializePlatformSpecific( |
79 CallInterfaceDescriptorData* data) { | 85 CallInterfaceDescriptorData* data) { |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 r1, // the JSGeneratorObject to resume | 441 r1, // the JSGeneratorObject to resume |
436 r2 // the resume mode (tagged) | 442 r2 // the resume mode (tagged) |
437 }; | 443 }; |
438 data->InitializePlatformSpecific(arraysize(registers), registers); | 444 data->InitializePlatformSpecific(arraysize(registers), registers); |
439 } | 445 } |
440 | 446 |
441 } // namespace internal | 447 } // namespace internal |
442 } // namespace v8 | 448 } // namespace v8 |
443 | 449 |
444 #endif // V8_TARGET_ARCH_ARM | 450 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |