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)
commit05d8b591837b723be192e9df1ada8df1701a74b5 (patch)
tree2f37ec079458d2dd670f4ac91e414deec83d160b /generic/tclAssembly.c
parentbedb57a468dd806574089fc8b9eee940129c156b (diff)
downloadtcl-05d8b591837b723be192e9df1ada8df1701a74b5.zip
tcl-05d8b591837b723be192e9df1ada8df1701a74b5.tar.gz
tcl-05d8b591837b723be192e9df1ada8df1701a74b5.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 */
};
/*