diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2013-06-20 11:05:20 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2013-06-20 11:05:20 (GMT) |
commit | 2859532759626d4782896f4c151bf58a668da85b (patch) | |
tree | f14745f2116873e0bc99ff6fd376da56bb7e42cf /generic/tclCompile.h | |
parent | ccccb754c0f55dc8e8250ab8c3a2019c96c6add2 (diff) | |
download | tcl-2859532759626d4782896f4c151bf58a668da85b.zip tcl-2859532759626d4782896f4c151bf58a668da85b.tar.gz tcl-2859532759626d4782896f4c151bf58a668da85b.tar.bz2 |
Properly encode more operand types to reduce the number of special cases in the disassembler.
Diffstat (limited to 'generic/tclCompile.h')
-rw-r--r-- | generic/tclCompile.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/generic/tclCompile.h b/generic/tclCompile.h index cf7b563..1f42b05 100644 --- a/generic/tclCompile.h +++ b/generic/tclCompile.h @@ -822,8 +822,14 @@ typedef enum InstOperandType { * variable table. */ OPERAND_LVT4, /* Four byte unsigned index into the local * variable table. */ - OPERAND_AUX4 /* Four byte unsigned index into the aux data + OPERAND_AUX4, /* Four byte unsigned index into the aux data * table. */ + OPERAND_OFFSET1, /* One byte signed jump offset. */ + OPERAND_OFFSET4, /* Four byte signed jump offset. */ + OPERAND_LIT1, /* One byte unsigned index into table of + * literals. */ + OPERAND_LIT4 /* Four byte unsigned index into table of + * literals. */ } InstOperandType; typedef struct InstructionDesc { |