* Removed all Id tags.
[cacao.git] / src / vm / jit / patcher-common.h
index 8ec54b184103f097c609df6898cf86e9d9a248f1..91e46eda06bafdb9a1d498965f5624e7bd789078 100644 (file)
@@ -22,8 +22,6 @@
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    02110-1301, USA.
 
-   $Id$
-
 */
 
 
@@ -67,17 +65,18 @@ typedef struct patchref_t {
 /* function prototypes ********************************************************/
 
 void patcher_list_create(codeinfo *code);
+void patcher_list_reset(codeinfo *code);
 void patcher_list_free(codeinfo *code);
 
 void patcher_add_patch_ref(jitdata *jd, functionptr patcher, voidptr ref,
                            s4 disp);
 
-java_objectheader *patcher_handler(u1 *pc);
+java_handle_t *patcher_handler(u1 *pc);
 
 
 /* patcher prototypes and macros **********************************************/
 
-#if defined(__ALPHA__) || defined(__ARM__) || defined(__POWERPC__) || defined (__S390__)
+#if defined(__ALPHA__) || defined(__ARM__) || defined(__MIPS__) || defined(__POWERPC__) || defined (__S390__)
 
 /* new patcher functions */
 
@@ -140,7 +139,7 @@ bool patcher_invokevirtual(patchref_t *pr);
 bool patcher_invokeinterface(patchref_t *pr);
 #define PATCHER_invokeinterface (functionptr) patcher_invokeinterface
 
-#if defined(__ALPHA__) || defined(__POWERPC__) || defined(__S390__)
+#if defined(__ALPHA__) || defined(__MIPS__) || defined(__POWERPC__) || defined(__S390__) 
 
 bool patcher_checkcast_interface(patchref_t *pr);
 #define PATCHER_checkcast_interface (functionptr) patcher_checkcast_interface
@@ -148,9 +147,13 @@ bool patcher_checkcast_interface(patchref_t *pr);
 bool patcher_instanceof_interface(patchref_t *pr);
 #define PATCHER_instanceof_interface (functionptr) patcher_instanceof_interface
 
-#endif /* defined(__ALPHA__) */
+#endif /* defined(__ALPHA__) || defined(__MIPS__) || defined(__POWERPC__) || defined(__S390__) */
+
+/* very old patcher functions */
+/* XXX use newer patcher function names above! */
 
 #if defined(__S390__)
+
 bool patcher_clinit(patchref_t *pr);
 #define PATCHER_clinit (functionptr) patcher_clinit
 
@@ -159,6 +162,7 @@ bool patcher_athrow_areturn(patchref_t *pr);
 
 bool patcher_checkcast_instanceof_interface(patchref_t *pr);
 #define PATCHER_checkcast_instanceof_interface (functionptr) patcher_checkcast_instanceof_interface
+
 #endif /* defined (__S390__) */
 
 #endif /* architecture list */