diff options
author | dkf <dkf@noemail.net> | 2013-06-20 11:05:20 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2013-06-20 11:05:20 (GMT) |
commit | af1d1fee153d23d39a1f792045ad1e5b452d9ab0 (patch) | |
tree | f14745f2116873e0bc99ff6fd376da56bb7e42cf /generic/tclCompile.h | |
parent | f667a783ac44dea834750fdd312f70daa48d025b (diff) | |
download | tcl-af1d1fee153d23d39a1f792045ad1e5b452d9ab0.zip tcl-af1d1fee153d23d39a1f792045ad1e5b452d9ab0.tar.gz tcl-af1d1fee153d23d39a1f792045ad1e5b452d9ab0.tar.bz2 |
Properly encode more operand types to reduce the number of special cases in the disassembler.
FossilOrigin-Name: 9d361e7c7456b689e0a2129787acf0587595cbd5
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 { |