summaryrefslogtreecommitdiffstats
path: root/generic/tclAssembly.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-10-29 21:35:49 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-10-29 21:35:49 (GMT)
commit2b2fbb042125fc15bc6a507585c6d971887ebdbe (patch)
tree2f37ec079458d2dd670f4ac91e414deec83d160b /generic/tclAssembly.c
parent598ca907fafae5ae4feb34eb2aa90a7388c73a78 (diff)
downloadtcl-2b2fbb042125fc15bc6a507585c6d971887ebdbe.zip
tcl-2b2fbb042125fc15bc6a507585c6d971887ebdbe.tar.gz
tcl-2b2fbb042125fc15bc6a507585c6d971887ebdbe.tar.bz2
Added compilation of simplest practical case of [string map].
Diffstat (limited to 'generic/tclAssembly.c')
-rw-r--r--generic/tclAssembly.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/generic/tclAssembly.c b/generic/tclAssembly.c
index 5ff96fd..10df71a 100644
--- a/generic/tclAssembly.c
+++ b/generic/tclAssembly.c
@@ -474,6 +474,7 @@ static const TalInstDesc TalInstructionTable[] = {
{"streq", ASSEM_1BYTE, INST_STR_EQ, 2, 1},
{"strindex", ASSEM_1BYTE, INST_STR_INDEX, 2, 1},
{"strlen", ASSEM_1BYTE, INST_STR_LEN, 1, 1},
+ {"strmap", ASSEM_1BYTE, INST_STR_MAP, 3, 1},
{"strmatch", ASSEM_BOOL, INST_STR_MATCH, 2, 1},
{"strneq", ASSEM_1BYTE, INST_STR_NEQ, 2, 1},
{"sub", ASSEM_1BYTE, INST_SUB, 2, 1},
@@ -507,10 +508,11 @@ static const unsigned char NonThrowingByteCodes[] = {
INST_PUSH_RETURN_OPTIONS, /* 108 */
INST_REVERSE, /* 126 */
INST_NOP, /* 132 */
- INST_COROUTINE_NAME, /* 142 */
- INST_NS_CURRENT, /* 143 */
- INST_INFO_LEVEL_NUM, /* 144 */
- INST_RESOLVE_COMMAND /* 146 */
+ INST_STR_MAP, /* 141 */
+ INST_COROUTINE_NAME, /* 143 */
+ INST_NS_CURRENT, /* 144 */
+ INST_INFO_LEVEL_NUM, /* 145 */
+ INST_RESOLVE_COMMAND /* 147 */
};
/*