Merged with tip.
[cacao.git] / src / vm / jit / powerpc64 / patcher.c
index b2ccfdeceb9c91ec385e3cf4a217125b4d6410e0..8f6f160ad37bf1e942993e94e7206f5df6121fd4 100644 (file)
@@ -1,9 +1,7 @@
 /* src/vm/jit/powerpc64/patcher.c - PowerPC64 code patching functions
 
-   Copyright (C) 1996-2005, 2006, 2007 R. Grafl, A. Krall, C. Kruegel,
-   C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
-   E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
-   J. Wenninger, Institut f. Computersprachen - TU Wien
+   Copyright (C) 1996-2005, 2006, 2007, 2008
+   CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
 
    This file is part of CACAO.
 
@@ -104,8 +102,8 @@ bool patcher_get_putstatic(patchref_t *pr)
 
        /* check if the field's class is initialized */
 
-       if (!(fi->class->state & CLASS_INITIALIZED))
-               if (!initialize_class(fi->class))
+       if (!(fi->clazz->state & CLASS_INITIALIZED))
+               if (!initialize_class(fi->clazz))
                        return false;
 
        /* patch back original code */
@@ -335,7 +333,7 @@ bool patcher_invokeinterface(patchref_t *pr)
        /* patch interfacetable index */
 
        disp = OFFSET(vftbl_t, interfacetable[0]) -
-               sizeof(methodptr*) * m->class->index;
+               sizeof(methodptr*) * m->clazz->index;
 
        /* XXX TWISTI: check displacement */
 
@@ -343,7 +341,7 @@ bool patcher_invokeinterface(patchref_t *pr)
 
        /* patch method offset */
 
-       disp = sizeof(methodptr) * (m - m->class->methods);
+       disp = sizeof(methodptr) * (m - m->clazz->methods);
 
        /* XXX TWISTI: check displacement */