diff options
author | dgp <dgp@users.sourceforge.net> | 2004-01-13 23:15:02 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2004-01-13 23:15:02 (GMT) |
commit | c9bd8ac5b1219903842bb5ad5e3f52220aa60701 (patch) | |
tree | f2698cb54a86867e9b452e99687cf78e827059d2 /ChangeLog.2000 | |
parent | 09c3e3c827f50de5bf0960ebae0ba665da9a0a77 (diff) | |
download | tcl-c9bd8ac5b1219903842bb5ad5e3f52220aa60701.zip tcl-c9bd8ac5b1219903842bb5ad5e3f52220aa60701.tar.gz tcl-c9bd8ac5b1219903842bb5ad5e3f52220aa60701.tar.bz2 |
Patch 876451: restores performance of [return]. Also allows forms
such as [return -code error $msg] to be bytecompiled.
* generic/tclInt.h: Factored Tcl_ReturnObjCmd() into two pieces:
* generic/tclCmdMZ.c: TclMergeReturnOptions(), which can parse the
options to [return], check their validity, and create the
corresponding return options dictionary, and TclProcessReturn(),
which takes that return options dictionary and performs the
[return] operation.
* generic/tclCompCmds.c: Rewrote TclCompileReturnCmd() to
call TclMergeReturnOptions() at compile time so the return options
dictionary is computed at compile time (when it is fully known).
The dictionary is pushed on the stack along with the result, and
the code and level values are included in the bytecode as operands.
Also supports optimized compilation of un-[catch]ed [return]s from
procs with default options into the INST_DONE instruction.
* generic/tclExecute.c: Rewrote INST_RETURN instruction to retrieve
the code and level operands, pop the return options from the stack,
and call TclProcessReturn() to perform the [return] operation.
* generic/tclCompile.h: New utilities include TclEmitInt4 macro
* generic/tclCompile.c: and TclWordKnownAtCompileTime().
Diffstat (limited to 'ChangeLog.2000')
0 files changed, 0 insertions, 0 deletions