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)
commitf33e163df8aba6bc58d84fc11c3c487e6874ae32 (patch)
treefbe68dcfedfe80e6188afe653fa790c24ed4e415 /generic/tclAssembly.c
parenta0eff2e10d8d67a7d2a9ed66aec116ebf483dfc8 (diff)
downloadtcl-f33e163df8aba6bc58d84fc11c3c487e6874ae32.zip
tcl-f33e163df8aba6bc58d84fc11c3c487e6874ae32.tar.gz
tcl-f33e163df8aba6bc58d84fc11c3c487e6874ae32.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 */
};
/*