-#include "vm/jit/asmpart.h"
-
-
-/* for raising exceptions from native methods */
-
-#if !defined(USE_THREADS) || !defined(NATIVE_THREADS)
-java_objectheader *_exceptionptr = NULL;
-#endif
-
-
-/******* replace some external functions *********/
-
-functionptr native_findfunction(utf *cname, utf *mname, utf *desc, bool isstatic)
-{ return NULL; }
-
-java_objectheader *native_new_and_init(classinfo *c) { return NULL; }
-java_objectheader *native_new_and_init_string(classinfo *c, java_lang_String *s) { return NULL; }
-java_objectheader *native_new_and_init_int(classinfo *c, s4 i) { return NULL; }
-java_objectheader *native_new_and_init_throwable(classinfo *c, java_lang_Throwable *t) { return NULL; }
-
-
-java_objectheader *asm_calljavafunction(methodinfo *m, void *arg1, void *arg2,
- void *arg3, void *arg4) { return NULL; }
-
-void asm_call_jit_compiler(void) {}
-
-/* code patching functions */
-void patcher_builtin_new(u1 *sp) {}
-void patcher_builtin_newarray(u1 *sp) {}
-void patcher_builtin_arraycheckcast(u1 *sp) {}
-void patcher_builtin_arrayinstanceof(u1 *sp) {}
-
-s4 asm_builtin_idiv(s4 a, s4 b) { return 0; }
-s4 asm_builtin_irem(s4 a, s4 b) { return 0; }
-s8 asm_builtin_ldiv(s8 a, s8 b) { return 0; }
-s8 asm_builtin_lrem(s8 a, s8 b) { return 0; }
-
-s4 asm_builtin_f2i(float a) { return 0; }
-s8 asm_builtin_f2l(float a) { return 0; }
-s4 asm_builtin_d2i(double a) { return 0; }
-s8 asm_builtin_d2l(double a) { return 0; }
-
-void use_class_as_object(void) {}
-void asm_builtin_monitorenter(java_objectheader *o) {}
-void *asm_builtin_monitorexit(java_objectheader *o) { return NULL; }
-
-s4 asm_builtin_arraycheckcast(java_objectheader *obj, vftbl_t *target)
-{
- return 0;
-}
-
-#if defined(__MIPS__)
-long compare_and_swap(long *p, long oldval, long newval)
-{
- if (*p == oldval) {
- *p = newval;
- return oldval;
- } else
- return *p;
-}
-#endif
-
-
-void asm_builtin_aastore(java_objectarray *a, s4 index, java_objectheader *o) {}
-
-functionptr createcompilerstub(methodinfo *m) { return NULL; }
-functionptr codegen_createnativestub(functionptr f, methodinfo *m) { return NULL; }
-
-void removecompilerstub(functionptr stub) {}
-void removenativestub(functionptr stub) {}
-
-void asm_perform_threadswitch(u1 **from, u1 **to, u1 **stackTop) {}
-u1* asm_initialize_thread_stack(void *func, u1 *stack) { return NULL; }
-
-void *asm_switchstackandcall(void *stack, void *func, void **stacktopsave, void * p) { return NULL; }
-
-void asm_handle_builtin_exception(classinfo *c) {}
-void asm_getclassvalues_atomic(vftbl_t *super, vftbl_t *sub, castinfo *out) {}
-
-
-void setVMClassField(classinfo *c) {}
-void *Java_java_lang_VMObject_clone(void *env, void *clazz, void * this)
-{
- return NULL;
-}
-
-tristate_t typeinfo_is_assignable_to_class(typeinfo *value,classref_or_classinfo dest)
-{
- return true;
-}
-
-bool typeinfo_init_class(typeinfo *info,classref_or_classinfo c)
-{
- return true;
-}
-
-void typeinfo_print(FILE *file,typeinfo *info,int indent)
-{
-}
-
-/* exception functions ********************************************************/
-
-/* these should not be called */
-
-void throw_exception(void) { assert(0); }
-void throw_exception_exit(void) { assert(0); }
-
-java_objectheader *new_verifyerror(methodinfo *m, const char *message)
-{
- assert(0);
-
- /* keep compiler happy */