il2cpp-codegen-tiny.cpp 1005 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #include "il2cpp-config.h"
  2. #if RUNTIME_TINY
  3. #include "il2cpp-codegen.h"
  4. #include "vm/StackTrace.h"
  5. #include "vm/LastError.h"
  6. #include <string>
  7. void il2cpp_codegen_stacktrace_push_frame(TinyStackFrameInfo& frame)
  8. {
  9. tiny::vm::StackTrace::PushFrame(frame);
  10. }
  11. void il2cpp_codegen_stacktrace_pop_frame()
  12. {
  13. tiny::vm::StackTrace::PopFrame();
  14. }
  15. void il2cpp_codegen_marshal_store_last_error()
  16. {
  17. tiny::vm::LastError::StoreLastError();
  18. }
  19. NORETURN void il2cpp_codegen_raise_generic_virtual_method_exception(const char* methodFullName)
  20. {
  21. std::string message;
  22. message = "Tiny does not support generic virtual method invocation. ";
  23. message += "The method being invoked is: '";
  24. message += methodFullName;
  25. message += "'";
  26. il2cpp_codegen_raise_exception(message.c_str());
  27. IL2CPP_UNREACHABLE;
  28. }
  29. NORETURN void il2cpp_codegen_raise_overflow_exception(const RuntimeMethod* method)
  30. {
  31. IL2CPP_RAISE_MANAGED_EXCEPTION(il2cpp_codegen_get_overflow_exception(), method);
  32. }
  33. #endif