* src/vm/jit/patcher-common.h (patcher_patch_code): Added prototype.
[cacao.git] / src / vm / jit / mips / patcher.c
index 528a1be4a3cdeea9b84699878bf6c29f09e59e83..296b878b504fd9409dfde4db1c1d0dab0f78296f 100644 (file)
        md_icacheflush((u1 *) pr->mpc, PATCHER_CALL_SIZE);
 
 
-/* patcher_initialize_class ****************************************************
+/* patcher_patch_code **********************************************************
 
-   Initalizes a given classinfo pointer.  This function does not patch
-   any data.
+   Just patches back the original machine code.
 
 *******************************************************************************/
 
-bool patcher_initialize_class(patchref_t *pr)
+void patcher_patch_code(patchref_t *pr)
 {
-       classinfo *c;
-
-       /* get stuff from the stack */
-
-       c = (classinfo *) pr->ref;
-
-       /* check if the class is initialized */
-
-       if (!(c->state & CLASS_INITIALIZED))
-               if (!initialize_class(c))
-                       return false;
-
        PATCH_BACK_ORIGINAL_MCODE;
-
-       return true;
-}
-
-
-/* patcher_resolve_class *****************************************************
-
-   Initalizes a given classinfo pointer.  This function does not patch
-   any data.
-
-*******************************************************************************/
-
-#ifdef ENABLE_VERIFIER
-bool patcher_resolve_class(patchref_t *pr)
-{
-       unresolved_class *uc;
-
-       /* get stuff from the stack */
-
-       uc = (unresolved_class *) pr->ref;
-
-       /* resolve the class and check subtype constraints */
-
-       if (!resolve_class_eager_no_access_check(uc))
-               return false;
-
-       PATCH_BACK_ORIGINAL_MCODE;
-
-       return true;
 }
-#endif /* ENABLE_VERIFIER */
 
 
 /* patcher_get_putstatic *******************************************************