| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 bool* auto_setup_scope); |
| 98 static const uint8_t* ResolveSymbolInLibrary(const Library& library, |
| 99 uword pc); |
| 100 static const uint8_t* ResolveSymbol(uword pc); |
| 98 static void NativeCallWrapper(Dart_NativeArguments args, | 101 static void NativeCallWrapper(Dart_NativeArguments args, |
| 99 Dart_NativeFunction func); | 102 Dart_NativeFunction func); |
| 100 static const ExternalLabel& NativeCallWrapperLabel(); | 103 static const ExternalLabel& NativeCallWrapperLabel(); |
| 101 }; | 104 }; |
| 102 | 105 |
| 103 } // namespace dart | 106 } // namespace dart |
| 104 | 107 |
| 105 #endif // VM_NATIVE_ENTRY_H_ | 108 #endif // VM_NATIVE_ENTRY_H_ |
| OLD | NEW |