Changes:
- $Id: patcher.c 3461 2005-10-20 09:53:00Z edwin $
+ $Id: patcher.c 3569 2005-11-04 16:47:25Z twisti $
*/
#include "vm/field.h"
#include "vm/initialize.h"
#include "vm/options.h"
+#include "vm/resolve.h"
#include "vm/references.h"
-#include "vm/jit/helper.h"
#include "vm/jit/patcher.h"
*((u4 *) (ra + 8 + 0)) = (u4) mcode;
*((u1 *) (ra + 8 + 4)) = (u1) (mcode >> 32);
- /* patch the class' vftbl pointer */
+ /* patch the classinfo pointer */
- *((ptrint *) (ra + 4)) = (ptrint) c->vftbl;
+ *((ptrint *) (ra + 4)) = (ptrint) c;
/* if we show disassembly, we have to skip the nop's */
if (opt_showdisassemble)
ra = ra + 5;
- /* patch the class' vftbl pointer */
+ /* patch the classinfo pointer */
- *((ptrint *) (ra + 7 + 4)) = (ptrint) c->vftbl;
+ *((ptrint *) (ra + 7 + 4)) = (ptrint) c;
/* patch new function address */
if (opt_showdisassemble)
ra = ra + 5;
- /* patch the class' vftbl pointer */
+ /* patch the classinfo pointer */
- *((ptrint *) (ra + 4)) = (ptrint) c->vftbl;
+ *((ptrint *) (ra + 4)) = (ptrint) c;
/* patch new function address */
*((u4 *) (ra + 8 + 0)) = (u4) mcode;
*((u1 *) (ra + 8 + 4)) = (u1) (mcode >> 32);
- /* patch the class' vftbl pointer */
+ /* patch the classinfo pointer */
- *((ptrint *) (ra + 4)) = (ptrint) c->vftbl;
+ *((ptrint *) (ra + 4)) = (ptrint) c;
/* if we show disassembly, we have to skip the nop's */