summaryrefslogtreecommitdiffstats
path: root/generic/tclCompCmds.c
Commit message (Collapse)AuthorAgeFilesLines
* Mark commands with potential to compile expansion arguments (as [list] does).dgp2013-07-241-0/+9
|
* Stop checking stack depth in [catch] compiler.dgp2013-07-231-10/+0
| | | | Stack depth is checked in compiles of *all* Tcl commands/scripts/bodies in debug builds already.
* merge trunkdgp2013-07-151-26/+11
|\
| * Prefer CompileWord() over CompileTokens() when possible.dgp2013-07-151-2/+1
| |
| * Global replace: CompileBody() -> BODY().dgp2013-07-121-16/+9
| |
| * Revise the CompileWord() and PushVarNameWord() macros to make explicit thedgp2013-07-111-8/+1
| | | | | | SetLineInformation() that's in each of them.
* | merge trunkdgp2013-07-111-4/+2
|\ \ | |/
| * Revert the revised macros used in developing the new tests.tip280_test_coveragedgp2013-07-111-10/+10
| |
| * Add tests for, and fix bugs in, the SetLineInformation() calls in tclCompCmds.c.dgp2013-07-101-11/+9
| |
| * Next attempt. Appears to have uncovered a bug.dgp2013-07-101-1/+1
| |
| * First additional test. Remove dup macros in tclEnsemble.c.dgp2013-07-101-1/+1
| |
* | Stop the compileProc routines leaving behind error messages in interp.dgp2013-06-271-2/+3
|/ | | | | (Nicer way to solve [Bug 20a81392ec].) Make simplifications in TclCompileScript() make possible by the new structure. Still a work in progress.
* Select improvements in stack depth estimates brought over from mig-review.dgp2013-06-111-22/+4
| | | | | Mostly these are just simplifications, removing code that wasn't needed. Some changes make the stack depth estimate more accurate instruction by instruction.
* Factor out stereotypical ways of getting variable indices.dkf2013-06-081-149/+40
|
* Simplify stack depth management.dkf2013-06-071-31/+33
|
* More efficient instruction sequence for [dict for] with correct exception ↵dkf2013-06-061-23/+10
| | | | depth handling.
* 3614382 Fix stack management of compiled [dict for] by shifting limitsdgp2013-06-061-3/+4
| | | of the catch range.
* Working on the optimizer, and finding a few bugs in bytecode generation.dkf2013-06-051-2/+0
|\
| * merge fixesdkf2013-06-051-12/+0
| |\ | |/ |/|
| * More cleaning up; factor out optimizer to new file. Some weird problems still.dkf2013-06-051-14/+16
| |
* | Stack Depth fixups.dgp2013-06-051-12/+2
|/
* Stack cleanup works now even in the most evil expansion cases.dkf2013-06-051-50/+12
|
* Next stage of fixing the break/continue generation.dkf2013-06-031-32/+44
|
* Generate [continue] optimally in [for] next clauses. Add tests for Bug 3614226.dkf2013-06-031-6/+5
|
* Many improvements to code generation of efficient break and continue.dkf2013-06-021-57/+36
|
* Getting better at doing more efficient break/continue instruction handling.dkf2013-06-011-50/+63
|
* Working towards the next batch of optimizations.dkf2013-05-301-0/+81
|
* Simplifications and tidying up of stack management issues. Work in progress.dgp2013-05-291-14/+13
|
* Stop emitting the instructions INST_*_SCALAR_STK*. They are identical todgp2013-05-291-21/+24
| | | | | | | their INST_*_STK* counterparts. Having done that, it is clear the "simpleVarName" return from TclPushVarName provides nothing of use to any of its callers. Eliminate that. Also make TPVN return void, instead of int. Bring the TPVN header comments up to date; they were quite rotten.
* Use the routines that provide "basic compile" instead of reinventing them.dgp2013-05-281-34/+16
|
* Plug the memory leak. Greater ambitions to improve this routine are provingdgp2013-05-281-0/+1
| | | more difficult than expected.
* Repair some stack depth housekeeping.dgp2013-05-251-0/+1
|
* 3613854 - Fixup stack maintenance /code generation for [array set x $oddList]. dgp2013-05-241-20/+17
| | | | Postscript - I see that this commit created a memory leak. Will commit a fix within a few days.
* Spare developers the burden and error risk of counting bytes in stringdgp2013-05-231-38/+34
| | | literals, or having to type them twice.
* Eliminate code duplication.dgp2013-05-231-69/+3
|
* Split tclCompCmds.c into two roughly-equal-sized pieces.dkf2013-05-181-2931/+32
|
* A better technique for [list {*}blah]. Remove the INST_LIST_EXPANDED opcode ↵dkf2013-05-151-2/+37
| | | | (and the complex machinery associated with it) as as it is no longer needed.
* Partial fix: still ongoingdkf2013-05-111-0/+3
|
* Optimizations and general bytecode generation improvements.dkf2013-05-101-29/+170
|
* Improve code generation for [array set] in a common case.dkf2013-04-291-23/+59
|
* New internal routine TclFetchLiteral() for better CompileEnv encapsulation.dgp2013-03-051-2/+1
|
* [3603163]: Prevent odd crashes in 'eval {array set ...}'dkf2013-02-041-18/+23
|
* More extensive use of the techniques to improve other edge cases in ensemble ↵dkf2013-01-281-41/+37
| | | | compilation.
* Slightly better compilation of some [array] cases.dkf2013-01-281-5/+25
|
* First attempt at fixing problems caused by [array set] inside [namespace eval],dkf2013-01-111-6/+15
| | | | | which caused partial bytecode generation followed by a reject which triggered the issuing of generic ensemble code with an extra push of the variable name at the start (which got the stack depth wrong).
* Fix memory leak in [format] compiler.dkf2013-01-041-1/+1
|
* All tests pass except one; not sure what's wrong there.dkf2013-01-021-4/+4
|
* Added compilation of [array exists], [array set] and [array unset]. Fixed a ↵merge_to_trunkdkf2012-11-051-22/+257
| | | | whole bunch of issues with opcode issuing that were causing problems with stack depth calculations.
* Added compilation of [string last] and improved the compilation of [string ↵dkf2012-11-031-0/+73
| | | | range]. This in turn enables compilation of [namespace qualifiers] and [namespace tail] (also done).
* Added compilation of [info object isa object] (i.e., object verification).dkf2012-11-031-0/+36
|