Changes:
- $Id: patcher.c 3484 2005-10-21 13:43:51Z twisti $
+ $Id: patcher.c 3556 2005-11-03 21:39:25Z twisti $
*/
disp = *((s4 *) (sp + 1 * 4));
pv = (u1 *) *((ptrint *) (sp + 0 * 4));
- /* calculate and set the new return address */
-
- ra = ra - 4;
- *((ptrint *) (sp + 5 * 4)) = (ptrint) ra;
-
PATCHER_MONITORENTER;
/* get the fieldinfo */
uf = (unresolved_field *) *((ptrint *) (sp + 2 * 4));
pv = (u1 *) *((ptrint *) (sp + 1 * 4));
- /* calculate and set the new return address */
-
- ra = ra - 4;
- *((ptrint *) (sp + 5 * 4)) = (ptrint) ra;
-
PATCHER_MONITORENTER;
/* get the fieldinfo */
/* calculate and set the new return address */
- ra = ra - (2 * 4);
+ ra = ra - 1 * 4;
*((ptrint *) (sp + 5 * 4)) = (ptrint) ra;
PATCHER_MONITORENTER;
/* calculate and set the new return address */
- ra = ra - 2 * 4;
+ ra = ra - 1 * 4;
*((ptrint *) (sp + 5 * 4)) = (ptrint) ra;
PATCHER_MONITORENTER;
disp = *((s4 *) (sp + 1 * 4));
pv = (u1 *) *((ptrint *) (sp + 0 * 4));
- /* calculate and set the new return address */
-
- ra = ra - 4;
- *((ptrint *) (sp + 5 * 4)) = (ptrint) ra;
-
PATCHER_MONITORENTER;
/* get the classinfo */
disp = *((s4 *) (sp + 1 * 4));
pv = (u1 *) *((ptrint *) (sp + 0 * 4));
- /* calculate and set the new return address */
-
- ra = ra - 1 * 4;
- *((ptrint *) (sp + 5 * 4)) = (ptrint) ra;
-
PATCHER_MONITORENTER;
/* get the classinfo */
/* calculate and set the new return address */
- ra = ra - 2 * 4;
+ ra = ra - 1 * 4;
*((ptrint *) (sp + 5 * 4)) = (ptrint) ra;
PATCHER_MONITORENTER;
disp = *((s4 *) (sp + 1 * 4));
pv = (u1 *) *((ptrint *) (sp + 0 * 4));
- /* calculate and set the new return address */
-
- ra = ra - 4;
- *((ptrint *) (sp + 5 * 4)) = (ptrint) ra;
-
PATCHER_MONITORENTER;
/* get the fieldinfo */
mcode = *((u4 *) (sp + 3 * 4));
um = (unresolved_method *) *((ptrint *) (sp + 2 * 4));
- /* calculate and set the new return address */
-
- ra = ra - 4;
- *((ptrint *) (sp + 5 * 4)) = (ptrint) ra;
-
PATCHER_MONITORENTER;
/* get the fieldinfo */
mcode = *((u4 *) (sp + 3 * 4));
um = (unresolved_method *) *((ptrint *) (sp + 2 * 4));
- /* calculate and set the new return address */
-
- ra = ra - 4;
- *((ptrint *) (sp + 5 * 4)) = (ptrint) ra;
-
PATCHER_MONITORENTER;
/* get the fieldinfo */
disp = *((s4 *) (sp + 1 * 4));
pv = (u1 *) *((ptrint *) (sp + 0 * 4));
- /* calculate and set the new return address */
-
- ra = ra - 4;
- *((ptrint *) (sp + 5 * 4)) = (ptrint) ra;
-
PATCHER_MONITORENTER;
/* get the fieldinfo */
mcode = *((u4 *) (sp + 3 * 4));
cr = (constant_classref *) *((ptrint *) (sp + 2 * 4));
- /* calculate and set the new return address */
-
- ra = ra - 4;
- *((ptrint *) (sp + 5 * 4)) = (ptrint) ra;
-
PATCHER_MONITORENTER;
/* get the fieldinfo */
disp = *((s4 *) (sp + 1 * 4));
pv = (u1 *) *((ptrint *) (sp + 0 * 4));
- /* calculate and set the new return address */
-
- ra = ra - 4;
- *((ptrint *) (sp + 5 * 4)) = (ptrint) ra;
-
PATCHER_MONITORENTER;
/* get the fieldinfo */
disp = *((s4 *) (sp + 1 * 4));
pv = (u1 *) *((ptrint *) (sp + 0 * 4));
- /* calculate and set the new return address */
-
- ra = ra - 4;
- *((ptrint *) (sp + 5 * 4)) = (ptrint) ra;
-
PATCHER_MONITORENTER;
/* get the fieldinfo */
mcode = *((u4 *) (sp + 3 * 4));
c = (classinfo *) *((ptrint *) (sp + 2 * 4));
- /* calculate and set the new return address */
-
- ra = ra - 4;
- *((ptrint *) (sp + 5 * 4)) = (ptrint) ra;
-
PATCHER_MONITORENTER;
/* check if the class is initialized */
mcode = *((u4 *) (sp + 3 * 4));
uc = (unresolved_class *) *((ptrint *) (sp + 2 * 4));
- /* calculate and set the new return address */
-
- ra = ra - 4;
- *((ptrint *) (sp + 5 * 4)) = (ptrint) ra;
-
PATCHER_MONITORENTER;
/* resolve the class */
/* calculate and set the new return address */
- ra = ra - 4;
+ ra = ra - 1 * 4;
*((ptrint *) (sp + 5 * 4)) = (ptrint) ra;
PATCHER_MONITORENTER;