diff options
| author | donal.k.fellows@manchester.ac.uk <dkf> | 2013-10-15 00:27:56 (GMT) |
|---|---|---|
| committer | donal.k.fellows@manchester.ac.uk <dkf> | 2013-10-15 00:27:56 (GMT) |
| commit | 9ee9857e24f9f831fa8a4426e70469bfb93efb28 (patch) | |
| tree | 7ee2b0d64d3baf69e1ed93317f150a8d59b9b25f /generic/tclCompile.c | |
| parent | 8eb735233a36c3da7c97ce4cf1ab2abb5949d1f8 (diff) | |
| download | tcl-9ee9857e24f9f831fa8a4426e70469bfb93efb28.zip tcl-9ee9857e24f9f831fa8a4426e70469bfb93efb28.tar.gz tcl-9ee9857e24f9f831fa8a4426e70469bfb93efb28.tar.bz2 | |
Do jump generation at places where INST_RETURN_IMM might occur.
Diffstat (limited to 'generic/tclCompile.c')
| -rw-r--r-- | generic/tclCompile.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c index 68b7649..427ccab 100644 --- a/generic/tclCompile.c +++ b/generic/tclCompile.c @@ -3931,8 +3931,7 @@ TclEmitInvoke( va_list argList; ExceptionRange *rangePtr; ExceptionAux *auxBreakPtr, *auxContinuePtr; - int arg1, arg2, wordCount = 0, loopRange, predictedDepth; - int breakRange = -1, continueRange = -1; + int arg1, arg2, wordCount = 0, loopRange, breakRange, continueRange; /* * Parse the arguments. @@ -3995,7 +3994,6 @@ TclEmitInvoke( loopRange = TclCreateExceptRange(LOOP_EXCEPTION_RANGE, envPtr); ExceptionRangeStarts(envPtr, loopRange); } - predictedDepth = envPtr->currStackDepth - wordCount; /* * Issue the invoke itself. @@ -4047,7 +4045,6 @@ TclEmitInvoke( if (auxBreakPtr != NULL) { TclAdjustStackDepth(-1, envPtr); - assert(envPtr->currStackDepth == predictedDepth); exceptAux->stackDepth = auxBreakPtr->stackDepth; exceptAux->expandTarget = auxBreakPtr->expandTarget; @@ -4061,7 +4058,6 @@ TclEmitInvoke( if (auxContinuePtr != NULL) { TclAdjustStackDepth(-1, envPtr); - assert(envPtr->currStackDepth == predictedDepth); exceptAux->stackDepth = auxContinuePtr->stackDepth; exceptAux->expandTarget = auxContinuePtr->expandTarget; |
