summaryrefslogtreecommitdiffstats
path: root/generic/tclAssembly.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-10-30 18:20:28 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-10-30 18:20:28 (GMT)
commitee5f41d14197e71e1598091f7497821a45c91357 (patch)
treefbe68dcfedfe80e6188afe653fa790c24ed4e415 /generic/tclAssembly.c
parent71560be8195a455b260188f4dbffe1575feb0e07 (diff)
downloadtcl-ee5f41d14197e71e1598091f7497821a45c91357.zip
tcl-ee5f41d14197e71e1598091f7497821a45c91357.tar.gz
tcl-ee5f41d14197e71e1598091f7497821a45c91357.tar.bz2
Compilation of [string first] and [string range] (with constant indices).
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 10df71a..9d2854d 100644
--- a/generic/tclAssembly.c
+++ b/generic/tclAssembly.c
@@ -472,6 +472,7 @@ static const TalInstDesc TalInstructionTable[] = {
{"storeStk", ASSEM_1BYTE, INST_STORE_SCALAR_STK, 2, 1},
{"strcmp", ASSEM_1BYTE, INST_STR_CMP, 2, 1},
{"streq", ASSEM_1BYTE, INST_STR_EQ, 2, 1},
+ {"strfind", ASSEM_1BYTE, INST_STR_FIND, 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},
@@ -509,10 +510,11 @@ static const unsigned char NonThrowingByteCodes[] = {
INST_REVERSE, /* 126 */
INST_NOP, /* 132 */
INST_STR_MAP, /* 141 */
- INST_COROUTINE_NAME, /* 143 */
- INST_NS_CURRENT, /* 144 */
- INST_INFO_LEVEL_NUM, /* 145 */
- INST_RESOLVE_COMMAND /* 147 */
+ INST_STR_FIND, /* 142 */
+ INST_COROUTINE_NAME, /* 145 */
+ INST_NS_CURRENT, /* 146 */
+ INST_INFO_LEVEL_NUM, /* 147 */
+ INST_RESOLVE_COMMAND /* 149 */
};
/*