summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2013-10-18 07:08:46 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2013-10-18 07:08:46 (GMT)
commitc00bdffb6aa0fca3575ef0ab1a07813f696f1839 (patch)
treef8d33120c8c5b9c348641830fbb900eff86cd578 /generic/tclCompile.c
parent21e6601f4971f249f7681508432b98605729fb9d (diff)
downloadtcl-c00bdffb6aa0fca3575ef0ab1a07813f696f1839.zip
tcl-c00bdffb6aa0fca3575ef0ab1a07813f696f1839.tar.gz
tcl-c00bdffb6aa0fca3575ef0ab1a07813f696f1839.tar.bz2
Tackle evalStk by reusing existing machinery.
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r--generic/tclCompile.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index 427ccab..f91c2fd 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.c
@@ -2458,7 +2458,7 @@ TclCompileCmdWord(
*/
TclCompileTokens(interp, tokenPtr, count, envPtr);
- TclEmitOpcode(INST_EVAL_STK, envPtr);
+ TclEmitInvoke(envPtr, INST_EVAL_STK);
}
}
@@ -3954,6 +3954,7 @@ TclEmitInvoke(
break;
default:
Tcl_Panic("unexpected opcode");
+ case INST_EVAL_STK:
case INST_INVOKE_EXPANDED:
wordCount = arg1 = arg2 = 0;
break;
@@ -4009,6 +4010,9 @@ TclEmitInvoke(
case INST_INVOKE_EXPANDED:
TclEmitOpcode(INST_INVOKE_EXPANDED, envPtr);
break;
+ case INST_EVAL_STK:
+ TclEmitOpcode(INST_EVAL_STK, envPtr);
+ break;
case INST_INVOKE_REPLACE:
TclEmitInstInt4(INST_INVOKE_REPLACE, arg1, envPtr);
TclEmitInt1(arg2, envPtr);