- maybe we should always use `const char *' in function declarations
[cacao.git] / asmpart.h
index 75d0ee085547124aeb0adbaa7676720a36587641..0ce6e85e76c189eee20118e32c25b8cca6922db9 100644 (file)
--- a/asmpart.h
+++ b/asmpart.h
@@ -29,7 +29,7 @@
 
    Changes: Christian Thalinger
 
-   $Id: asmpart.h 1063 2004-05-16 13:48:43Z twisti $
+   $Id: asmpart.h 1296 2004-07-10 17:02:15Z stefan $
 
 */
 
@@ -39,6 +39,7 @@
 
 #include "global.h"
 #include "jni.h"
+#include "threads/thread.h"
 
 /* 
    determines if the byte support instruction set (21164a and higher)
@@ -75,6 +76,12 @@ java_objectheader *asm_calljavafunction2(methodinfo *m, u4 count, u4 size, void
 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();
+#endif
 
 
 void asm_handle_exception();
@@ -83,6 +90,8 @@ void asm_handle_nat_exception();
 void asm_check_clinit();
 
 void asm_handle_builtin_exception(classinfo *);
+void asm_throw_and_handle_exception();
+void asm_throw_and_handle_hardware_arithmetic_exception();
 
 java_objectarray* Java_java_lang_VMSecurityManager_getClassContext(JNIEnv *env, jclass clazz);
 stacktraceelement *asm_get_stackTrace();
@@ -94,7 +103,12 @@ void *asm_switchstackandcall(void *stack, void *func, void **stacktopsave, void
 void asm_builtin_trace();
 void asm_builtin_exittrace();
 
-int asm_xadd(int *, int);
+#if defined(USE_THREADS) && defined(NATIVE_THREADS)
+extern threadcritnode asm_criticalsections;
+#endif
+
+void asm_getclassvalues_atomic(vftbl_t *super, vftbl_t *sub, castinfo *out);
+
 
 #endif /* _ASMPART_H */