-/*
- This function calls a Java-method (which possibly needs compilation)
- with up to 4 parameters. This function calls a Java-method (which
- possibly needs compilation) with up to 4 parameters.
- also supports a return value
-*/
-java_objectheader *asm_calljavafunction(methodinfo *m, void *arg1, void *arg2,
- void *arg3, void *arg4);
-java_objectheader *asm_calljavafunction2(methodinfo *m, u4 count, u4 size, void *callblock);
-jdouble asm_calljavafunction2double(methodinfo *m, u4 count, u4 size, void *callblock);
-jlong asm_calljavafunction2long(methodinfo *m, u4 count, u4 size, void *callblock);
-
-/* We need these two labels in codegen.inc to add the asm_calljavafunction*'s
- into the methodtable */
-#if defined(__I386__) || defined(__X86_64__)
-void calljava_xhandler();
-void calljava_xhandler2();
+void asm_vm_call_method_exception_handler(void);
+void asm_vm_call_method_end(void);
+#endif
+
+#if defined(ENABLE_INTRP)
+java_objectheader *intrp_asm_vm_call_method(methodinfo *m, s4 vmargscount,
+ vm_arg *vmargs);
+
+s4 intrp_asm_vm_call_method_int(methodinfo *m, s4 vmargscount,
+ vm_arg *vmargs);
+s8 intrp_asm_vm_call_method_long(methodinfo *m, s4 vmargscount,
+ vm_arg *vmargs);
+float intrp_asm_vm_call_method_float(methodinfo *m, s4 vmargscount,
+ vm_arg *vmargs);
+double intrp_asm_vm_call_method_double(methodinfo *m, s4 vmargscount,
+ vm_arg *vmargs);