diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2007-08-14 21:04:27 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2007-08-14 21:04:27 (GMT) |
commit | d320d81dec73fb4809b297d876646aeec43be25e (patch) | |
tree | 286b8acc42cfd2e777af7ac446431861ae0a1d55 /generic | |
parent | 8a072651446c2a003629e41f779dcb6d19634120 (diff) | |
download | tcl-d320d81dec73fb4809b297d876646aeec43be25e.zip tcl-d320d81dec73fb4809b297d876646aeec43be25e.tar.gz tcl-d320d81dec73fb4809b297d876646aeec43be25e.tar.bz2 |
* generic/tclExecute.c (INST_INVOKE*): peephole opt, do not get
the interp's result if it will be pushed/popped.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclExecute.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c index a54ee92..43bd58a 100644 --- a/generic/tclExecute.c +++ b/generic/tclExecute.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclExecute.c,v 1.313 2007/08/13 23:07:36 dgp Exp $ + * RCS: @(#) $Id: tclExecute.c,v 1.314 2007/08/14 21:04:28 msofer Exp $ */ #include "tclInt.h" @@ -2042,6 +2042,11 @@ TclExecuteByteCode( if (result == TCL_OK) { Tcl_Obj *objPtr; +#ifndef TCL_COMPILE_DEBUG + if (*(pc+pcAdjustment) == INST_POP) { + NEXT_INST_V((pcAdjustment+1), objc, 0); + } +#endif /* * Push the call's object result and continue execution with * the next instruction. |