Index: src/arm/interface-descriptors-arm.cc |
diff --git a/src/arm/interface-descriptors-arm.cc b/src/arm/interface-descriptors-arm.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e577278ab4a37b29f57f864b5b0edd6dfe51c46b |
--- /dev/null |
+++ b/src/arm/interface-descriptors-arm.cc |
@@ -0,0 +1,108 @@ |
+// Copyright 2012 the V8 project authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "src/v8.h" |
+ |
+#if V8_TARGET_ARCH_ARM |
+ |
+#include "src/interface-descriptors.h" |
+ |
+namespace v8 { |
+namespace internal { |
+ |
+const Register InterfaceDescriptor::ContextRegister() { return cp; } |
+ |
+ |
+void CallDescriptors::InitializeForIsolate(Isolate* isolate) { |
+ static PlatformInterfaceDescriptor default_descriptor = |
+ PlatformInterfaceDescriptor(CAN_INLINE_TARGET_ADDRESS); |
+ |
+ static PlatformInterfaceDescriptor noInlineDescriptor = |
+ PlatformInterfaceDescriptor(NEVER_INLINE_TARGET_ADDRESS); |
+ |
+ { |
+ CallInterfaceDescriptor* descriptor = |
+ isolate->call_descriptor(CallDescriptorKey::ArgumentAdaptorCall); |
+ Register registers[] = { |
+ cp, // context |
+ r1, // JSFunction |
+ r0, // actual number of arguments |
+ r2, // expected number of arguments |
+ }; |
+ Representation representations[] = { |
+ Representation::Tagged(), // context |
+ Representation::Tagged(), // JSFunction |
+ Representation::Integer32(), // actual number of arguments |
+ Representation::Integer32(), // expected number of arguments |
+ }; |
+ descriptor->Initialize(arraysize(registers), registers, representations, |
+ &default_descriptor); |
+ } |
+ { |
+ CallInterfaceDescriptor* descriptor = |
+ isolate->call_descriptor(CallDescriptorKey::KeyedCall); |
+ Register registers[] = { |
+ cp, // context |
+ r2, // key |
+ }; |
+ Representation representations[] = { |
+ Representation::Tagged(), // context |
+ Representation::Tagged(), // key |
+ }; |
+ descriptor->Initialize(arraysize(registers), registers, representations, |
+ &noInlineDescriptor); |
+ } |
+ { |
+ CallInterfaceDescriptor* descriptor = |
+ isolate->call_descriptor(CallDescriptorKey::NamedCall); |
+ Register registers[] = { |
+ cp, // context |
+ r2, // name |
+ }; |
+ Representation representations[] = { |
+ Representation::Tagged(), // context |
+ Representation::Tagged(), // name |
+ }; |
+ descriptor->Initialize(arraysize(registers), registers, representations, |
+ &noInlineDescriptor); |
+ } |
+ { |
+ CallInterfaceDescriptor* descriptor = |
+ isolate->call_descriptor(CallDescriptorKey::CallHandler); |
+ Register registers[] = { |
+ cp, // context |
+ r0, // receiver |
+ }; |
+ Representation representations[] = { |
+ Representation::Tagged(), // context |
+ Representation::Tagged(), // receiver |
+ }; |
+ descriptor->Initialize(arraysize(registers), registers, representations, |
+ &default_descriptor); |
+ } |
+ { |
+ CallInterfaceDescriptor* descriptor = |
+ isolate->call_descriptor(CallDescriptorKey::ApiFunctionCall); |
+ Register registers[] = { |
+ cp, // context |
+ r0, // callee |
+ r4, // call_data |
+ r2, // holder |
+ r1, // api_function_address |
+ }; |
+ Representation representations[] = { |
+ Representation::Tagged(), // context |
+ Representation::Tagged(), // callee |
+ Representation::Tagged(), // call_data |
+ Representation::Tagged(), // holder |
+ Representation::External(), // api_function_address |
+ }; |
+ descriptor->Initialize(arraysize(registers), registers, representations, |
+ &default_descriptor); |
+ } |
+} |
+} |
+} // namespace v8::internal |
+ |
+#endif // V8_TARGET_ARCH_ARM |