Index: vm/include/jit_runtime_support.h =================================================================== --- vm/include/jit_runtime_support.h (revision 588139) +++ vm/include/jit_runtime_support.h (working copy) @@ -19,6 +19,7 @@ #define _JIT_RUNTIME_SUPPORT_H_ #include "open/types.h" +#include "jni_types.h" /** * This is a complete set of functions used by the code generated by the JIT. @@ -775,6 +776,19 @@ */ VMEXPORT VM_RT_SUPPORT vm_helper_get_by_name(const char* name); +#ifndef Global_Env +struct Global_Env; +#endif + +jint helper_magic_init(Global_Env * vm_env); + +VMEXPORT jint regiter_magic_helper(VM_RT_SUPPORT id, + const char* class_name, + const char* method_name, + const char* method_descr); + +VMEXPORT Method_Handle get_magic_helper(VM_RT_SUPPORT id); + #ifdef __cplusplus } #endif // __cplusplus