imported all finished opcodes that do not require jumping/relocation

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4076
This commit is contained in:
David Anderson 2006-09-20 03:56:24 +00:00
parent f7df595ca5
commit 7b3530de67
3 changed files with 1436 additions and 146 deletions

File diff suppressed because it is too large Load Diff

View File

@ -176,6 +176,7 @@ JITX86::JITX86()
OpAdvTable[OP_HALT] = sizeof(cell_t);
OpAdvTable[OP_BOUNDS] = sizeof(cell_t);
OpAdvTable[OP_PUSH_ADR] = sizeof(cell_t);
OpAdvTable[OP_PUSH_HEAP_C] = sizeof(cell_t);
/* instructions with 0 parameters */
OpAdvTable[OP_LOAD_I] = 0;
@ -236,6 +237,8 @@ JITX86::JITX86()
OpAdvTable[OP_SWAP_ALT] = 0;
OpAdvTable[OP_NOP] = 0;
OpAdvTable[OP_BREAK] = 0;
OpAdvTable[OP_HEAP_PRI] = 0;
OpAdvTable[OP_POP_HEAP_PRI] = 0;
/* opcodes that need relocation */
OpAdvTable[OP_CALL] = -2;

View File

@ -19,7 +19,7 @@ typedef enum
OP_LREF_ALT, //DONE
OP_LREF_S_PRI, //DONE
OP_LREF_S_ALT, //DONE
OP_LOAD_I, //DONE
OP_LOAD_I,
OP_LODB_I,
OP_CONST_PRI, //DONE
OP_CONST_ALT, //DONE
@ -33,9 +33,9 @@ typedef enum
OP_SREF_ALT, //DONE
OP_SREF_S_PRI, //DONE
OP_SREF_S_ALT, //DONE
OP_STOR_I, //DONE
OP_STOR_I,
OP_STRB_I,
OP_LIDX, //DONE
OP_LIDX,
OP_LIDX_B,
OP_IDXADDR, //DONE
OP_IDXADDR_B,
@ -48,33 +48,33 @@ typedef enum
OP_XCHG, //DONE
OP_PUSH_PRI, //DONE
OP_PUSH_ALT, //DONE
OP_PUSH_R, //DONE
OP_PUSH_R, //DEPRECATED
OP_PUSH_C, //DONE
OP_PUSH, //DONE
OP_PUSH_S, //DONE
OP_POP_PRI, //DONE
OP_POP_ALT, //DONE
OP_STACK, //DONE
OP_HEAP, //DONE
OP_STACK,
OP_HEAP,
OP_PROC, //DONE
OP_RET,
OP_RETN, //DONE
OP_RETN,
OP_CALL,
OP_CALL_PRI,
OP_JUMP, //DONE
OP_JREL, //DONE
OP_JZER, //DONE
OP_JNZ, //DONE
OP_JEQ, //DONE
OP_JNEQ, //DONE
OP_JLESS, //DONE
OP_JLEQ, //DONE
OP_JGRTR, //DONE
OP_JGEQ, //DONE
OP_JSLESS, //DONE
OP_JSLEQ, //DONE
OP_JSGRTR, //DONE
OP_JSGEQ, //DONE
OP_JUMP,
OP_JREL,
OP_JZER,
OP_JNZ,
OP_JEQ,
OP_JNEQ,
OP_JLESS,
OP_JLEQ,
OP_JGRTR,
OP_JGEQ,
OP_JSLESS,
OP_JSLEQ,
OP_JSGRTR,
OP_JSGEQ,
OP_SHL, //DONE
OP_SHR, //DONE
OP_SSHR, //DONE
@ -83,11 +83,11 @@ typedef enum
OP_SHR_C_PRI, //DONE
OP_SHR_C_ALT, //DONE
OP_SMUL, //DONE
OP_SDIV, //DONE
OP_SDIV_ALT, //DONE
OP_SDIV,
OP_SDIV_ALT,
OP_UMUL, //DONE
OP_UDIV, //DONE
OP_UDIV_ALT, //DONE
OP_UDIV,
OP_UDIV_ALT,
OP_ADD, //DONE
OP_SUB, //DONE
OP_SUB_ALT, //DONE
@ -128,25 +128,25 @@ typedef enum
OP_DEC_S, //DONE
OP_DEC_I, //DONE
OP_MOVS, //DONE
OP_CMPS, //DONE
OP_CMPS,
OP_FILL, //DONE
OP_HALT, //DONE
OP_HALT,
OP_BOUNDS,
OP_SYSREQ_PRI,
OP_SYSREQ_C,
OP_FILE,
OP_LINE,
OP_SYMBOL,
OP_SRANGE,
OP_FILE, //DEPRECATED
OP_LINE, //DEPRECATED
OP_SYMBOL, //DEPRECATED
OP_SRANGE, //DEPRECATED
OP_JUMP_PRI,
OP_SWITCH,
OP_CASETBL, //DONE
OP_CASETBL,
OP_SWAP_PRI, //DONE
OP_SWAP_ALT, //DONE
OP_PUSH_ADR, //DONE
OP_PUSH_ADR,
OP_NOP, //DONE
OP_SYSREQ_N,
OP_SYMTAG,
OP_SYMTAG, //DEPRECATED
OP_BREAK,
OP_PUSH2_C, //DONE
OP_PUSH2, //DONE
@ -169,12 +169,12 @@ typedef enum
OP_CONST,
OP_CONST_S,
/* ----- */
OP_SYSREQ_D,
OP_SYSREQ_ND,
OP_SYSREQ_D, //UNSUPPORTED
OP_SYSREQ_ND, //UNSUPPORTED
/* ----- */
OP_HEAP_PRI,
OP_PUSH_HEAP_C,
OP_POP_HEAP_PRI,
OP_HEAP_PRI, //DONE
OP_PUSH_HEAP_C, //DONE
OP_POP_HEAP_PRI, //DONE
/* ----- */
OP_NUM_OPCODES
} OPCODE;