Skip to content
Tcl Source Code Artifact [1757fd6ebc]
Login

Artifact [1757fd6ebc]

Artifact 1757fd6ebc43d0e9cde478a88258a7d37c116343:

Manifest of check-in [1757fd6ebc] - Rewrite of the TclCompileScript() routine. Primarily this breaks that large, rather convoluted routine into many smaller more single-purpose routines for greater clarity. This also permits more sharing of function components. Ensemble compiles now share the same low level routines as top-level command compiles. This refactoring should also have the benefit of easing merging between branches by better locating patches according to what function or data structure they tweak. Also in this checkin: Minimized calls to Tcl_ResetResult() during compile. Several commands compile their detected syntax errors into bytecode that reports the syntax error. Significant reform to the TIP 280 machinery, including elimination of the litInfo hash table. Its function of finding the index of a compiled command in a script from a pc value has been redone using the codeDelta information already stored in ByteCode. by dgp on 2013-07-18 20:27:01.
B 023ab0d950cda0bdfbdeb98973b6726689f4928c
C Rewrite\sof\sthe\sTclCompileScript()\sroutine.\n\nPrimarily\sthis\sbreaks\sthat\slarge,\srather\sconvoluted\sroutine\sinto\smany\nsmaller\smore\ssingle-purpose\sroutines\sfor\sgreater\sclarity.\s\sThis\salso\npermits\smore\ssharing\sof\sfunction\scomponents.\s\sEnsemble\scompiles\snow\sshare\nthe\ssame\slow\slevel\sroutines\sas\stop-level\scommand\scompiles.\s\sThis\srefactoring\nshould\salso\shave\sthe\sbenefit\sof\seasing\smerging\sbetween\sbranches\sby\sbetter\nlocating\spatches\saccording\sto\swhat\sfunction\sor\sdata\sstructure\sthey\stweak.\n\nAlso\sin\sthis\scheckin:\n\s\s\s\sMinimized\scalls\sto\sTcl_ResetResult()\sduring\scompile.\n\s\s\s\sSeveral\scommands\scompile\stheir\sdetected\ssyntax\serrors\sinto\n\tbytecode\sthat\sreports\sthe\ssyntax\serror.\n\s\s\s\sSignificant\sreform\sto\sthe\sTIP\s280\smachinery,\sincluding\selimination\n\tof\sthe\slitInfo\shash\stable.\s\sIts\sfunction\sof\sfinding\sthe\sindex\n\tof\sa\scompiled\scommand\sin\sa\sscript\sfrom\sa\spc\svalue\shas\sbeen\sredone\n\tusing\sthe\scodeDelta\sinformation\salready\sstored\sin\sByteCode.
D 2013-07-18T20:27:01.761
F ChangeLog 214630deed8d0146713f28c5bc77de3d386118e8
F generic/tclAssembly.c d788a1fab9f5b80a17b80071c22507c045e4602f
F generic/tclBasic.c 3140e6991c1d604b3b63202878e3d0fb8e39f2ef
F generic/tclCompCmds.c e8e2476d212693a09e75221831b8e84fb86e2257
F generic/tclCompCmdsGR.c 6b6cb7a23dd0ed338b8afc233c76fd5498d009b9
F generic/tclCompCmdsSZ.c 3805ec834a6f0d7bb27d13f893242acb82229c36
F generic/tclCompile.c 9d93b86f3171e7782ebe354e4f3fa60d8fa393a0
F generic/tclCompile.h 5d561014a98e38e277c0d712414bdf5b7eba6a6e
F generic/tclConfig.c 00f9aa5fe79a6527d4195196a8df168d64fd7a0e
F generic/tclEnsemble.c 78026b2a5a6a078339936f1475c63cd0b39a4c85
F generic/tclExecute.c 2dbdcc64656a577c4bab24da2d2d1fb5ce6f1fce
F generic/tclInt.h 0240c4a367844ba0c8037cebb94089d782aab0a5
F generic/tclResult.c 17c66e2161a3b186f91ac4d6952e02b3d9e58e06
F generic/tclUtf.c 6df9363dfdde6e5b3ccc58c4e7911c1516dd3520
F library/tzdata/Africa/Casablanca 58d58aa215285262150a5b13f4a554b205222cdb
F library/tzdata/America/Asuncion 987b68f1597f932178e92f12d1a3431a923473d0
F library/tzdata/Antarctica/Macquarie f8184ccf599b48499b9351467cae493c14800a67
F library/tzdata/Asia/Gaza a29dcc78729c0708819113c972d8f9d7376f7df2
F library/tzdata/Asia/Hebron f1fa6604ece2c8b47167a2fec2765ea4eec18b57
F library/tzdata/Asia/Jerusalem a9863051501d63e8001a376606dd4039beff4e9b
F tests/assemble.test e6ca9bc277bba0d0ddd892ffa4f303e1c5a13118
F tests/info.test 4a21bf3bb16f0f4e9e923c2b054d0dbdfa232b2a
F tests/misc.test 1050a605cc61207f3c8d77f700060d0f17ffa8d3
F unix/Makefile.in 5d60f2d32da69ef65bc039f4fab05d5427ffc2fa
F unix/configure 0cf54c508fffa15a51eb625fc11c178749a7b308 x
F unix/tcl.m4 12995ea68d924deb73a5932e470bb964e3fa5620
P 91ed4186a8dd4deb14dd4fb8128c78c212ca26ef fd3954563915e3131a2845f016aae263af718834
R 4317302eaa32a686892752ea6c2ad592
U dgp
Z 634069b5a8a885a0c7a1384222423a81