added stradjust.pri opcode to the JIT

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40206
This commit is contained in:
Borja Ferrer 2006-12-09 01:47:07 +00:00
parent 34c711fffd
commit 455c03321c
3 changed files with 14 additions and 0 deletions

View File

@ -1750,6 +1750,14 @@ inline void WriteOp_Tracker_Pop_SetHeap(JitWriter *jit)
IA32_Pop_Reg(jit, AMX_REG_PRI);
}
inline void WriteOp_Stradjust_Pri(JitWriter *jit)
{
//add eax, 4
//sar eax, 2
IA32_Add_Rm_Imm8(jit, AMX_REG_PRI, 4, MOD_REG);
IA32_Sar_Rm_Imm8(jit, AMX_REG_PRI, 2, MOD_REG);
}
/*************************************************
*************************************************
* JIT PROPER ************************************

View File

@ -260,6 +260,7 @@ typedef enum
OP_TRACKER_POP_SETHEAP, //VERIFIED
OP_GENARRAY, //VERIFIED
OP_GENARRAY_Z, //-VERIFIED (not tested for 1D arrays)
OP_STRADJUST_PRI, //VERIFIED
/* ----- */
OP_NUM_OPCODES
} OPCODE;

View File

@ -673,6 +673,11 @@
WriteOp_GenArray(jit, true);
break;
}
case OP_STRADJUST_PRI:
{
WriteOp_Stradjust_Pri(jit);
break;
}
#if defined USE_UNGEN_OPCODES
#include "ungen_opcode_switch.inc"
#endif