Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
- $Id: patcher.c 7464 2007-03-06 00:26:31Z edwin $
+ $Id: patcher.c 7486 2007-03-08 13:50:07Z twisti $
*/
}
-/* patcher_checkcast_instanceof_interface **************************************
+/* patcher_checkcast_interface *************************************************
Machine code:
*((s4 *) (ra + 2 * 4)) |= (s4) (-(c->index) & 0x0000ffff);
/* *((s4 *) (ra + 5 * 4)) |= (s4) ((OFFSET(vftbl_t, interfacetable[0]) - */
/* c->index * sizeof(methodptr*)) & 0x0000ffff); */
- *((s4 *) (ra + 10 * 4)) |=
+ *((s4 *) (ra + 6 * 4)) |=
(s4) ((OFFSET(vftbl_t, interfacetable[0]) -
c->index * sizeof(methodptr*)) & 0x0000ffff);
/* synchronize instruction cache */
- md_icacheflush(ra + 2 * 4, 7 * 4);
+ md_icacheflush(ra + 2 * 4, 5 * 4);
}
else {
/* patch super class index */
*((s4 *) (sp + 2 * 4)) |= (s4) (-(c->index) & 0x0000ffff);
/* *((s4 *) (ra + 5 * 4)) |= (s4) ((OFFSET(vftbl_t, interfacetable[0]) - */
/* c->index * sizeof(methodptr*)) & 0x0000ffff); */
- *((s4 *) (ra + 10 * 4)) |=
+ *((s4 *) (ra + 6 * 4)) |=
(s4) ((OFFSET(vftbl_t, interfacetable[0]) -
c->index * sizeof(methodptr*)) & 0x0000ffff);
/* synchronize instruction cache */
- md_icacheflush(ra + 10 * 4, 1 * 4);
+ md_icacheflush(ra + 6 * 4, 1 * 4);
}
return true;