summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.h
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2013-06-20 11:05:20 (GMT)
committerdkf <dkf@noemail.net>2013-06-20 11:05:20 (GMT)
commitaf1d1fee153d23d39a1f792045ad1e5b452d9ab0 (patch)
treef14745f2116873e0bc99ff6fd376da56bb7e42cf /generic/tclCompile.h
parentf667a783ac44dea834750fdd312f70daa48d025b (diff)
downloadtcl-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.h8
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 {