summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.h
Commit message (Collapse)AuthorAgeFilesLines
* Factor out stereotypical ways of getting variable indices.dkf2013-06-081-0/+14
|
* Minor grammar fix.dkf2013-06-061-3/+3
|
* More cleaning up; factor out optimizer to new file. Some weird problems still.dkf2013-06-051-0/+1
|
* Stack cleanup works now even in the most evil expansion cases.dkf2013-06-051-0/+7
|
* Next stage of fixing the break/continue generation.dkf2013-06-031-1/+3
|
* Generate [continue] optimally in [for] next clauses. Add tests for Bug 3614226.dkf2013-06-031-1/+12
|
* Remove useless macro, use existing macro where it makes sense.dkf2013-06-021-3/+0
|
* Many improvements to code generation of efficient break and continue.dkf2013-06-021-6/+46
|
* Getting better at doing more efficient break/continue instruction handling.dkf2013-06-011-0/+6
|
* Working towards the next batch of optimizations.dkf2013-05-301-0/+6
|
* Stop emitting the instructions INST_*_SCALAR_STK*. They are identical todgp2013-05-291-5/+4
| | | | | | | 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.
* Spare developers the burden and error risk of counting bytes in stringdgp2013-05-231-2/+6
| | | literals, or having to type them twice.
* Eliminate code duplication.dgp2013-05-231-0/+65
|
* A better technique for [list {*}blah]. Remove the INST_LIST_EXPANDED opcode ↵dkf2013-05-151-2/+1
| | | | (and the complex machinery associated with it) as as it is no longer needed.
* Optimizations and general bytecode generation improvements.dkf2013-05-101-5/+31
|
* New internal routine TclFetchLiteral() for better CompileEnv encapsulation.dgp2013-03-051-0/+1
|
* Remove from tclCompile.h declarations used in only one source file.dgp2013-03-051-3/+0
|\
| * Remove from tclCompile.h declarations used in only one source file.dgp2013-03-051-3/+0
| |
* | Remove TclInitCompilation() declaration with no definition.dgp2013-03-051-1/+0
|\ \ | |/
| * Remove TclInitCompilation() declaration with no definition.dgp2013-03-051-1/+0
| |\
| | * Remove TclInitCompilation() declaration that's never had a definitiondgp2013-03-051-1/+0
| | | | | | | | | (14 years!).
* | | Working towards more efficient treatment of non-bytecoded ensemble subcommands.dkf2012-12-311-1/+3
| | |
* | | Added compilation of [array exists], [array set] and [array unset]. Fixed a ↵merge_to_trunkdkf2012-11-051-1/+7
| | | | | | | | | | | | 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-13/+15
| | | | | | | | | | | | 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-1/+2
| | |
* | | Added more TclOO introspection bytecodes ([info object class], [info object ↵dkf2012-11-021-1/+3
| | | | | | | | | | | | namespace]). Also moved TclOO-in-8.6 to using the main Tcl internal ensemble builder.
* | | Added compilation of [tailcall]. Not a particularly efficient compilation ↵dkf2012-11-011-7/+8
| | | | | | | | | | | | though; it does not detect tailcall-of-self as a special case.
* | | Added compilation of [dict create] and [dict merge].dkf2012-11-011-12/+13
| | |
* | | Added [dict exists] compilation; implementation is 95% shared with [dict get].dkf2012-10-301-12/+13
| | |
* | | Compilation of [string first] and [string range] (with constant indices).dkf2012-10-301-8/+10
| | |
* | | Added compilation of simplest practical case of [string map].dkf2012-10-291-8/+11
| | |
* | | Working towards a BCCed [yield]; this doesn't work right now.dkf2012-10-261-7/+10
| | |
* | | Compile [namespace which -command]; big performance saving in some contexts.dkf2012-10-261-2/+3
| | |
* | | yet another small introspector: [self]dkf2012-10-191-1/+2
| | |
* | | merge trunkdkf2012-08-041-2/+11
|\ \ \
| * | | Factor out a number of common patterns of use of Tcl_DStringAppend.dkf2012-07-031-0/+10
| | | |
| * | | NRInterpCoroutine -> TclNRInterpCoroutinejan.nijtmans2012-07-021-2/+1
| | | | | | | | | | | | | | | | make NRCommand static make TalInstructionTable static const
* | | | Compilation of misc info sometimes used in high-performance code.dkf2012-03-041-1/+7
|/ / /
* | | Commit of patch relating to interp resolversdkf2011-10-151-0/+2
| | |
* | | * generic/tclCompCmds.c (TclCompileDictWithCmd): Corrected handling ofdkf2011-10-091-0/+1
| | | | | | | | | | | | qualified names, and added spacial cases for empty bodies (used when [dict with] is just used for extracting variables).
* | | Added support for having the dict var itself referenced by LVT index.dkf2011-10-031-2/+3
| | |
* | | Experimental compilation of the [dict with] subcommand. No tests yet, and notdkf2011-10-021-1/+4
| | | | | | | | | | | | yet certain that the added bytecode opcodes are correct; evaluation is still needed (but the test suite does pass...)
* | | Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
|\ \ \ | |/ / | | | cause more harm than good. Purged them (except in zlib files).
| * | Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
| |\ \ | | |/ | | | more harm than good. Purged them.
| | * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | | | | | | | more harm than good. Purged them.
| | * * generic/tclBasic.c (Tcl_CreateInterp, Tcl_EvalTokensStandard,andreas_kupries2009-08-251-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | EvalTokensStandard, Tcl_EvalEx, EvalEx, TclAdvanceContinuations, TclEvalObjEx): * generic/tclCmdMZ.c (Tcl_SwitchObjCmd, ListLines): * generic/tclCompCmds.c (*): * generic/tclCompile.c (TclSetByteCodeFromAny, TclInitCompileEnv, TclFreeCompileEnv, TclCompileScript): * generic/tclCompile.h (CompileEnv): * generic/tclInt.h (ContLineLoc, Interp): * generic/tclObj.c (ThreadSpecificData, ContLineLocFree, TclThreadFinalizeObjects, TclInitObjSubsystem, TclContinuationsEnter, TclContinuationsEnterDerived, TclContinuationsCopy, TclContinuationsGet, TclFreeObj): * generic/tclProc.c (TclCreateProc): * generic/tclVar.c (TclPtrSetVar): * tests/info.test (info-30.0-22): Extended parser, compiler, and execution with code and attendant data structures tracking the positions of continuation lines which are not visible in script's, to properly account for them while counting lines for #280, during direct and compiled execution.
| | * * generic/tclBasic.c (DeleteInterpProc,TclArgumentBCEnter,andreas_kupries2009-07-141-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.4 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).
| | * * generic/tclCompile.h: add support for debug logging of DTracedas2008-08-141-2/+111
| | | | | | | | | | | | | | | * generic/tclBasic.c: 'proc', 'cmd' and 'inst' probes (does _not_ require a platform with DTrace).
| | * * generic/tclCompile.c: Made the new TclEnterCmdWordIndexandreas_kupries2008-07-221-4/+1
| | | | | | | | | | | | * generic/tclCompile.h: static.
| | * * generic/tclBasic.c: Reworked the handling of bytecode literalsandreas_kupries2008-07-221-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCompile.c: for #280 to fix the abysmal performance * generic/tclCompile.h: for deep recursion, replaced the linear * generic/tclExecute.c: search through the whole stack with * generic/tclInt.h: another hashtable and simplified the data structure used by the compiler (array instead of hashtable). Incidentially this also fixes the memory leak reported via [Bug 2024937].