summaryrefslogtreecommitdiffstats
path: root/generic/tclOptimize.c
diff options
context:
space:
mode:
authordonal.k.fellows@manchester.ac.uk <dkf>2014-01-07 14:19:04 (GMT)
committerdonal.k.fellows@manchester.ac.uk <dkf>2014-01-07 14:19:04 (GMT)
commit1dd57e7f83b454f114c495ecec9d81fcfa8c13f6 (patch)
tree7d9ce87fc3e6d661dd7d680b10ab279348c76da9 /generic/tclOptimize.c
parent97e65e9d96d60d24def60a4484c6baec6303fdf7 (diff)
parente6361e562f8e0523dcba08b338dea7f925897d82 (diff)
downloadtcl-1dd57e7f83b454f114c495ecec9d81fcfa8c13f6.zip
tcl-1dd57e7f83b454f114c495ecec9d81fcfa8c13f6.tar.gz
tcl-1dd57e7f83b454f114c495ecec9d81fcfa8c13f6.tar.bz2
Add compilations for the following commands:
* concat * linsert * namespace origin * next * string replace * string tolower * string totitle * string toupper * string trim * string trimleft * string trimright
Diffstat (limited to 'generic/tclOptimize.c')
-rw-r--r--generic/tclOptimize.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclOptimize.c b/generic/tclOptimize.c
index 74de7a3..827d89d 100644
--- a/generic/tclOptimize.c
+++ b/generic/tclOptimize.c
@@ -191,7 +191,7 @@ TrimUnreachable(
* ConvertZeroEffectToNOP --
*
* Replace PUSH/POP sequences (when non-hazardous) with NOPs. Also
- * replace PUSH empty/CONCAT and TRY_CVT_NUMERIC (when followed by an
+ * replace PUSH empty/STR_CONCAT and TRY_CVT_NUMERIC (when followed by an
* operation that guarantees the check for arithmeticity) and eliminate
* LNOT when we can invert the following JUMP condition.
*
@@ -227,7 +227,7 @@ ConvertZeroEffectToNOP(
case INST_PUSH1:
if (nextInst == INST_POP) {
blank = size + InstLength(nextInst);
- } else if (nextInst == INST_CONCAT1
+ } else if (nextInst == INST_STR_CONCAT1
&& TclGetUInt1AtPtr(currentInstPtr + size + 1) == 2) {
Tcl_Obj *litPtr = TclFetchLiteral(envPtr,
TclGetUInt1AtPtr(currentInstPtr + 1));
@@ -242,7 +242,7 @@ ConvertZeroEffectToNOP(
case INST_PUSH4:
if (nextInst == INST_POP) {
blank = size + 1;
- } else if (nextInst == INST_CONCAT1
+ } else if (nextInst == INST_STR_CONCAT1
&& TclGetUInt1AtPtr(currentInstPtr + size + 1) == 2) {
Tcl_Obj *litPtr = TclFetchLiteral(envPtr,
TclGetUInt4AtPtr(currentInstPtr + 1));