Changes: Edwin Steiner
- $Id: builtin.h 1324 2004-07-21 12:35:07Z twisti $
+ $Id: builtin.h 1369 2004-08-01 21:53:32Z stefan $
*/
java_objectheader *builtin_throw_exception(java_objectheader *exception);
/* NOT AN OP */
-java_objectheader *builtin_trace_exception(java_objectheader *_exceptionptr,
- methodinfo *method,
- int *pos, int line, int noindent);
-/* NOT AN OP */
-
-static inline java_objectheader **builtin_get_exceptionptrptr();
-/* NOT AN OP */
-static inline methodinfo **builtin_get_threadrootmethod();
+java_objectheader *builtin_trace_exception(java_objectheader *xptr,
+ methodinfo *m,
+ void *pos,
+ s4 line,
+ s4 noindent);
/* NOT AN OP */
java_objectheader *builtin_new(classinfo *c);
#ifdef TRACE_ARGS_NUM
#if TRACE_ARGS_NUM == 6
-void builtin_trace_args(s8 a0, s8 a1, s8 a2, s8 a3, s8 a4, s8 a5, methodinfo *method);
+void builtin_trace_args(s8 a0, s8 a1, s8 a2, s8 a3, s8 a4, s8 a5, methodinfo *m);
/* NOT AN OP */
#else
-void builtin_trace_args(s8 a0, s8 a1, s8 a2, s8 a3, s8 a4, s8 a5, s8 a6, s8 a7, methodinfo *method);
+void builtin_trace_args(s8 a0, s8 a1, s8 a2, s8 a3, s8 a4, s8 a5, s8 a6, s8 a7, methodinfo *m);
/* NOT AN OP */
#endif
#endif
-void builtin_displaymethodstart(methodinfo *method);
+void builtin_displaymethodstart(methodinfo *m);
/* NOT AN OP */
-void builtin_displaymethodstop(methodinfo *method, s8 l, double d, float f);
+void builtin_displaymethodstop(methodinfo *m, s8 l, double d, float f);
/* NOT AN OP */
void builtin_monitorenter(java_objectheader *o);
/* NOT AN OP */
void asm_builtin_monitorenter(java_objectheader *o);
#define BUILTIN_monitorenter (functionptr) asm_builtin_monitorenter
-void builtin_monitorexit(java_objectheader *o);
+void *builtin_monitorexit(java_objectheader *o);
/* NOT AN OP */
-void asm_builtin_monitorexit(java_objectheader *o);
+void *asm_builtin_monitorexit(java_objectheader *o);
#define BUILTIN_monitorexit (functionptr) asm_builtin_monitorexit
s4 builtin_idiv(s4 a, s4 b);
/* this is a wrapper for calls from asmpart */
java_objectheader **builtin_asm_get_exceptionptrptr();
+#if defined(USE_THREADS) && defined(NATIVE_THREADS)
+static inline java_objectheader **builtin_get_exceptionptrptr();
+/* NOT AN OP */
+static inline methodinfo **builtin_get_threadrootmethod();
+/* NOT AN OP */
+
inline java_objectheader **builtin_get_exceptionptrptr()
{
-#if defined(USE_THREADS) && defined(NATIVE_THREADS)
return &THREADINFO->_exceptionptr;
-#else
-#error builtin_get_exceptionptrptr should not be used in this configuration
-#endif
}
inline methodinfo **builtin_get_threadrootmethod()
{
-#if defined(USE_THREADS) && defined(NATIVE_THREADS)
return &THREADINFO->_threadrootmethod;
-#else
-#error builting_get_threadrootmethod should not be used in this configuration
-#endif
}
+#endif
+
/* returns the root method of a thread. this is used in asmpart.S and delivers the abort condition
for the stack unwinding for getClassContext and getClassLoader. For the main thread this is the main function.