OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef VM_NATIVE_ENTRY_H_ | 5 #ifndef VM_NATIVE_ENTRY_H_ |
6 #define VM_NATIVE_ENTRY_H_ | 6 #define VM_NATIVE_ENTRY_H_ |
7 | 7 |
8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
10 #include "vm/code_generator.h" | 10 #include "vm/code_generator.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 86 |
87 | 87 |
88 // Helper class for resolving and handling native functions. | 88 // Helper class for resolving and handling native functions. |
89 class NativeEntry : public AllStatic { | 89 class NativeEntry : public AllStatic { |
90 public: | 90 public: |
91 static const intptr_t kNumCallWrapperArguments = 2; | 91 static const intptr_t kNumCallWrapperArguments = 2; |
92 | 92 |
93 // Resolve specified dart native function to the actual native entrypoint. | 93 // Resolve specified dart native function to the actual native entrypoint. |
94 static NativeFunction ResolveNative(const Library& library, | 94 static NativeFunction ResolveNative(const Library& library, |
95 const String& function_name, | 95 const String& function_name, |
96 int number_of_arguments); | 96 int number_of_arguments, |
| 97 bool* auto_setup_scope); |
97 static void NativeCallWrapper(Dart_NativeArguments args, | 98 static void NativeCallWrapper(Dart_NativeArguments args, |
98 Dart_NativeFunction func); | 99 Dart_NativeFunction func); |
99 static const ExternalLabel& NativeCallWrapperLabel(); | 100 static const ExternalLabel& NativeCallWrapperLabel(); |
100 }; | 101 }; |
101 | 102 |
102 } // namespace dart | 103 } // namespace dart |
103 | 104 |
104 #endif // VM_NATIVE_ENTRY_H_ | 105 #endif // VM_NATIVE_ENTRY_H_ |
OLD | NEW |