summaryrefslogtreecommitdiffstats
path: root/generic/tclAssembly.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-10-26 07:32:47 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-10-26 07:32:47 (GMT)
commitecb8fcec67eaa9ecc3902b669ad242dd76038562 (patch)
treeadc7c064741a37afc892c059151bdb56e457191a /generic/tclAssembly.c
parent8c9ab6bacf51046f3bb722ac655d9a3ddfd237d2 (diff)
downloadtcl-ecb8fcec67eaa9ecc3902b669ad242dd76038562.zip
tcl-ecb8fcec67eaa9ecc3902b669ad242dd76038562.tar.gz
tcl-ecb8fcec67eaa9ecc3902b669ad242dd76038562.tar.bz2
Compile [namespace which -command]; big performance saving in some contexts.
Diffstat (limited to 'generic/tclAssembly.c')
-rw-r--r--generic/tclAssembly.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclAssembly.c b/generic/tclAssembly.c
index 132ee68..27720c7 100644
--- a/generic/tclAssembly.c
+++ b/generic/tclAssembly.c
@@ -461,6 +461,7 @@ static const TalInstDesc TalInstructionTable[] = {
0, 1},
{"pushResult", ASSEM_1BYTE, INST_PUSH_RESULT, 0, 1},
{"regexp", ASSEM_REGEXP, INST_REGEXP, 2, 1},
+ {"resolveCmd", ASSEM_1BYTE, INST_RESOLVE_COMMAND, 1, 1},
{"reverse", ASSEM_REVERSE, INST_REVERSE, INT_MIN,-1-0},
{"rshift", ASSEM_1BYTE, INST_RSHIFT, 2, 1},
{"store", ASSEM_LVT, (INST_STORE_SCALAR1<<8
@@ -507,7 +508,8 @@ static const unsigned char NonThrowingByteCodes[] = {
INST_NOP, /* 132 */
INST_NS_CURRENT, /* 141 */
INST_COROUTINE_NAME, /* 142 */
- INST_INFO_LEVEL_NUM /* 143 */
+ INST_INFO_LEVEL_NUM, /* 143 */
+ INST_RESOLVE_COMMAND /* 145 */
};
/*