summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.h
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2013-06-20 11:05:20 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2013-06-20 11:05:20 (GMT)
commit2859532759626d4782896f4c151bf58a668da85b (patch)
treef14745f2116873e0bc99ff6fd376da56bb7e42cf /generic/tclCompile.h
parentccccb754c0f55dc8e8250ab8c3a2019c96c6add2 (diff)
downloadtcl-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.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 {