NativeSymbol.h 726 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #if !RUINTIME_TINY
  3. #include "vm/MetadataCache.h"
  4. #endif
  5. #include "vm/StackTrace.h"
  6. #include "vm-utils/MethodDefinitionKey.h"
  7. #include "vm-utils/VmMethod.h"
  8. #include <stdint.h>
  9. #include <vector>
  10. namespace il2cpp
  11. {
  12. namespace utils
  13. {
  14. class NativeSymbol
  15. {
  16. public:
  17. #if (IL2CPP_ENABLE_NATIVE_STACKTRACES && (!RUNTIME_TINY || IL2CPP_TINY_DEBUG_METADATA))
  18. static void RegisterMethods(const std::vector<MethodDefinitionKey>& managedMethods);
  19. static const VmMethod* GetMethodFromNativeSymbol(Il2CppMethodPointer nativeMethod);
  20. static bool GetMethodDebugInfo(const MethodInfo* method, Il2CppMethodDebugInfo* methodDebugInfo);
  21. #endif
  22. };
  23. } /* namespace vm */
  24. } /* namespace mono */