Authors: Andreas Krall
Christian Thalinger
- $Id: codegen.c 1604 2004-11-29 09:59:37Z twisti $
+ $Id: codegen.c 1608 2004-11-29 10:24:31Z twisti $
*/
{
clinitref *cref;
codegendata *tmpcd;
+ u1 xmcode;
+ u4 mcode;
tmpcd = DNEW(codegendata);
/* Get machine code which is patched back in later. A */
/* `call rel32' is 5 bytes long. */
xcodeptr = cd->mcodebase + cref->branchpos;
- cref->xmcode = *xcodeptr;
- cref->mcode = *((u4 *) (xcodeptr + 1));
+ xmcode = *xcodeptr;
+ mcode = *((u4 *) (xcodeptr + 1));
MCODECHECK(50);
i386_mov_reg_reg(cd, REG_SP, REG_ITMP1);
/* Push machine code bytes to patch onto the stack. */
- i386_push_imm(cd, (u4) cref->xmcode);
- i386_push_imm(cd, (u4) cref->mcode);
+ i386_push_imm(cd, (u4) xmcode);
+ i386_push_imm(cd, (u4) mcode);
i386_push_imm(cd, (u4) cref->class);
u1 *xcodeptr;
clinitref *cref;
codegendata *tmpcd;
+ u1 xmcode;
+ u4 mcode;
tmpcd = DNEW(codegendata);
/* Get machine code which is patched back in later. A */
/* `call rel32' is 5 bytes long. */
xcodeptr = cd->mcodebase + cref->branchpos;
- cref->xmcode = *xcodeptr;
- cref->mcode = *((u4 *) (xcodeptr + 1));
+ xmcode = *xcodeptr;
+ mcode = *((u4 *) (xcodeptr + 1));
/* patch in `call rel32' to call the following code */
tmpcd->mcodeptr = xcodeptr; /* set dummy mcode pointer */
i386_mov_reg_reg(cd, REG_SP, REG_ITMP1);
/* Push machine code bytes to patch onto the stack. */
- i386_push_imm(cd, (u4) cref->xmcode);
- i386_push_imm(cd, (u4) cref->mcode);
+ i386_push_imm(cd, (u4) xmcode);
+ i386_push_imm(cd, (u4) mcode);
i386_push_imm(cd, (u4) cref->class);
Authors: Andreas Krall
Christian Thalinger
- $Id: codegen.c 1604 2004-11-29 09:59:37Z twisti $
+ $Id: codegen.c 1608 2004-11-29 10:24:31Z twisti $
*/
{
clinitref *cref;
codegendata *tmpcd;
+ u1 xmcode;
+ u4 mcode;
tmpcd = DNEW(codegendata);
/* Get machine code which is patched back in later. A */
/* `call rel32' is 5 bytes long. */
xcodeptr = cd->mcodebase + cref->branchpos;
- cref->xmcode = *xcodeptr;
- cref->mcode = *((u4 *) (xcodeptr + 1));
+ xmcode = *xcodeptr;
+ mcode = *((u4 *) (xcodeptr + 1));
MCODECHECK(50);
i386_mov_reg_reg(cd, REG_SP, REG_ITMP1);
/* Push machine code bytes to patch onto the stack. */
- i386_push_imm(cd, (u4) cref->xmcode);
- i386_push_imm(cd, (u4) cref->mcode);
+ i386_push_imm(cd, (u4) xmcode);
+ i386_push_imm(cd, (u4) mcode);
i386_push_imm(cd, (u4) cref->class);
u1 *xcodeptr;
clinitref *cref;
codegendata *tmpcd;
+ u1 xmcode;
+ u4 mcode;
tmpcd = DNEW(codegendata);
/* Get machine code which is patched back in later. A */
/* `call rel32' is 5 bytes long. */
xcodeptr = cd->mcodebase + cref->branchpos;
- cref->xmcode = *xcodeptr;
- cref->mcode = *((u4 *) (xcodeptr + 1));
+ xmcode = *xcodeptr;
+ mcode = *((u4 *) (xcodeptr + 1));
/* patch in `call rel32' to call the following code */
tmpcd->mcodeptr = xcodeptr; /* set dummy mcode pointer */
i386_mov_reg_reg(cd, REG_SP, REG_ITMP1);
/* Push machine code bytes to patch onto the stack. */
- i386_push_imm(cd, (u4) cref->xmcode);
- i386_push_imm(cd, (u4) cref->mcode);
+ i386_push_imm(cd, (u4) xmcode);
+ i386_push_imm(cd, (u4) mcode);
i386_push_imm(cd, (u4) cref->class);