summaryrefslogtreecommitdiffstats
path: root/generic/tclAssembly.h
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2010-10-02 16:04:29 (GMT)
committerKevin B Kenny <kennykb@acm.org>2010-10-02 16:04:29 (GMT)
commit845f29c25c98e563d2887cbfcf16f1963ecc20bb (patch)
tree5f620de3f16a930ef11d1d791e3100d4b9983e9a /generic/tclAssembly.h
parent7761e7d99c2161de375c85db2076faef03f286e8 (diff)
downloadtcl-845f29c25c98e563d2887cbfcf16f1963ecc20bb.zip
tcl-845f29c25c98e563d2887cbfcf16f1963ecc20bb.tar.gz
tcl-845f29c25c98e563d2887cbfcf16f1963ecc20bb.tar.bz2
* generic/tclAssembly.c:
* generic/tclAssembly.h: * tests/assemble.test: Added dictAppend, dictIncrImm, dictLappend, dictSet, dictUnset, nsupvar, upvar, and variable. (Still need tests for the last three.) Merged changes from HEAD.
Diffstat (limited to 'generic/tclAssembly.h')
-rw-r--r--generic/tclAssembly.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/generic/tclAssembly.h b/generic/tclAssembly.h
index 0c8cd61..7f1a36e 100644
--- a/generic/tclAssembly.h
+++ b/generic/tclAssembly.h
@@ -49,7 +49,12 @@ typedef enum TalInstType {
ASSEM_CONCAT1, /* 1-byte unsigned-integer operand count, must be
* strictly positive, consumes N, produces 1 */
ASSEM_DICT_GET, /* 'dict get' and related - consumes N+1 operands,
- * produces 1, N >= 0 */
+ * produces 1, N > 0 */
+ ASSEM_DICT_SET, /* specifies key count and LVT index, consumes N+1 operands,
+ * produces 1, N > 0 */
+ ASSEM_DICT_UNSET,
+ /* specifies key count and LVT index, consumes N operands,
+ * produces 1, N > 0 */
ASSEM_EVAL, /* 'eval' - evaluate a constant script (by compiling it
* in line with the assembly code! I love Tcl!) */
ASSEM_INDEX, /* 4 byte operand, integer or end-integer */
@@ -74,6 +79,9 @@ typedef enum TalInstType {
ASSEM_PUSH, /* one literal operand */
ASSEM_REVERSE, /* REVERSE: 4-byte operand count, consumes N, produces N */
ASSEM_SINT1, /* One 1-byte signed-integer operand (INCR_STK_IMM) */
+ ASSEM_SINT4_LVT4,
+ /* Signed 4-byte integer operand followed by LVT entry.
+ * Fixed arity */
} TalInstType;
/* Description of an instruction recognized by the assembler. */