Skip to content
Tcl Source Code Artifact [7022410d0d]
Login

Artifact [7022410d0d]

Artifact 7022410d0dc0efc04bccf5ea811354fa804d2454:

Manifest of check-in [7022410d0d] - * generic/tclBasic.c (DeleteInterpProc,TclArgumentBCEnter, TclArgumentBCRelease, TclArgumentGet): * generic/tclCompile.c (EnterCmdWordIndex, TclCleanupByteCode, TclInitCompileEnv, TclCompileScript): * generic/tclCompile.h (ExtCmdLoc): * generic/tclExecute.c (TclExecuteByteCode): * generic/tclInt.h (ExtIndex, CFWordBC): * tests/info.test (info-39.0): Backport of some changes made to the Tcl head, to handle literal sharing better. The code here is much simpler (trimmed down) compared to the head as the 8.5 branch is not bytecode compiling whole files, and doesn't compile eval'd code either. Reworked the handling of literal command arguments in bytecode to be saved (compiler) and used (execution) per command (See the TCL_INVOKE_STK* instructions), and not per the whole bytecode. This removes the problems with location data caused by literal sharing in proc bodies. Simplified the associated datastructures (ExtIndex is gone, as is the function EnterCmdWordIndex). by andreas_kupries on 2009-07-14 16:33:12.
B 2d7deaad2f7eae5e2b452763220ec8144a24179b
C \n\t*\sgeneric/tclBasic.c\s(DeleteInterpProc,TclArgumentBCEnter,\n\tTclArgumentBCRelease,\sTclArgumentGet):\n\t*\sgeneric/tclCompile.c\s(EnterCmdWordIndex,\sTclCleanupByteCode,\n\tTclInitCompileEnv,\sTclCompileScript):\n\t*\sgeneric/tclCompile.h\s(ExtCmdLoc):\n\t*\sgeneric/tclExecute.c\s(TclExecuteByteCode):\n\t*\sgeneric/tclInt.h\s(ExtIndex,\sCFWordBC):\n\t*\stests/info.test\s(info-39.0):\n\n\tBackport\sof\ssome\schanges\smade\sto\sthe\sTcl\shead,\sto\shandle\sliteral\n\tsharing\sbetter.\sThe\scode\shere\sis\smuch\ssimpler\s(trimmed\sdown)\n\tcompared\sto\sthe\shead\sas\sthe\s8.5\sbranch\sis\snot\sbytecode\scompiling\n\twhole\sfiles,\sand\sdoesn't\scompile\seval'd\scode\seither.\n\n\tReworked\sthe\shandling\sof\sliteral\scommand\sarguments\sin\sbytecode\sto\n\tbe\ssaved\s(compiler)\sand\sused\s(execution)\sper\scommand\s(See\sthe\n\tTCL_INVOKE_STK*\sinstructions),\sand\snot\sper\sthe\swhole\sbytecode.\n\tThis\sremoves\sthe\sproblems\swith\slocation\sdata\scaused\sby\sliteral\n\tsharing\sin\sproc\sbodies.\sSimplified\sthe\sassociated\sdatastructures\n\t(ExtIndex\sis\sgone,\sas\sis\sthe\sfunction\sEnterCmdWordIndex).\n
D 2009-07-14T16:33:12
F ChangeLog 4751470b57e077ee0fac88170121e986f45d5546
F generic/tclBasic.c 5a82347ae134b9ae4f5bc1d2d3d63001bff0ef8b
F generic/tclCompile.c d7af79124601cea0652641109b730a94c5add96f
F generic/tclCompile.h 2a22aebbab519dc5381a7d71ba4d71e271572036
F generic/tclExecute.c 518d88b8483fcf070c3228f7148195ea204cf8ed
F generic/tclInt.h 149d3f8351d274e4e5b2272b62c9c2145259e6be
F generic/tclStringObj.c 4b9da3482dd462b0fa062b5e435f28ecbdad6031
F tests/info.test d29ee4d3504abeb380505108109f2cba85a686d0
P a36d676c2553caae3cdfc2cfa2174a6fd8a214f7
U andreas_kupries
Z 355f522a8880c970a914c1c1c269764f