summaryrefslogtreecommitdiffstats
path: root/generic/tclExecute.c
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Remove many type casts which are no longernecessary as a result of [Patch ↵nijtmans2010-08-221-5/+5
| | | | | | | | | | | | 3009403]: Signature of Tcl_GetHashKey, Tcl_(Create|Find)HashEntry
* | | * generic/tclBasic.c: New redesign of [tailcall]: findMiguel Sofer2010-08-181-4/+4
| | | | | | | | | | | | | | | | | | * generic/tclExecute.c: errors early on, so that errorInfo * generic/tclInt.h: contains the proper info [Bug 3047235] * generic/tclNamesp.c:
* | | * generic/tclBasic.c: Redesign of [tailcall] toMiguel Sofer2010-08-181-38/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCmdAH.c: (a) fix #3047235 * generic/tclCompile.h: (b) enable fix for #3046594 * generic/tclExecute.c: (c) enable recursive tailcalls * generic/tclInt.h: * generic/tclNamesp.c: * tests/tailcall.test:
* | | silence compiler warningsdgp2010-07-191-2/+5
| | |
* | | * generic/tclExecute.c (TclExecuteByteCode): Ensure that [dict get]dkf2010-07-151-1/+3
| | | | | | | | | | | | | | | * generic/tclDictObj.c (DictGetCmd): always generates an errorCode on a failure to look up an entry.
* | | * generic/tclExecute.c (IllegalExprOperandType): [Bug 3024379]: Madedkf2010-07-021-1/+2
| | | | | | | | | | | | | | | | | | sure that errors caused by an argument to an operator being outside the domain of the operator all result in ::errorCode being ARITH DOMAIN and not NONE.
* | | Ensure proper reset of [info errorstack] even when compiling constant expr's ↵ferrieux2010-06-071-6/+4
| | | | | | | | | | | | with errors.
* | | * generic/tclBasic.c: Fix for #3008307: make callerPtr chainsMiguel Sofer2010-06-051-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclExecute.c: be traversable accross coro boundaries. Add the special coroutine CallFrame (partially reverting commit of 2009-12-10), as it is needed for coroutines that do not push a CF - eg, those with [eval] as command. Thanks to Colin McCormack (coldstore) and Alexandre Ferrieux for the hard work on this.
* | | Eliminate some casts to (Tcl_HashTable *)nijtmans2010-05-311-2/+2
| | |
* | | * generic/tclExecute.c (TclExecuteByteCode): Restore correct operationdkf2010-05-281-15/+21
| | | | | | | | | | | | of instruction-level execution tracing (had been broken by NRE).
* | | * generic/tclExecute.c (TclExecuteByteCode): Add peephole optimizationdkf2010-04-301-1/+26
| | | | | | | | | | | | | | | of the fact that INST_DICT_FIRST and INST_DICT_NEXT always have a conditional jump afterwards.
* | | Remove unused @MAN2TCLFLAGS@nijtmans2010-04-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move <limits.h> include from tclInt.h to tclWinPort.h, and eliminate unneeded <stdlib.h>, <stdio.h> and <string.h>, which are already in tclInt.h Move "tclInt.h" from regcustom.h up to regex.h. tclAlloc.c: Unneeded <stdio.h> include tclExecute.c: Fix gcc warning: comparison between signed and unsigned
* | | * generic/tclInt.h (TclIsVarDirectUnsettable): Corrected flags so thatdkf2010-04-281-1908/+1929
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | deletion of traces is not optimized out... * generic/tclExecute.c (ExecuteExtendedBinaryMathOp) (TclCompareTwoNumbers,ExecuteExtendedUnaryMathOp,TclExecuteByteCode): [Patch 2981677]: Move the less common arithmetic operations (i.e., exponentiation and operations on non-longs) out of TEBC for a big drop in the overall size of the stack frame for most code. Net effect on speed is minimal (slightly faster overall in tclbench). Also extended the number of places where TRESULT handling is replaced with a jump to dedicated code.
* | | Code reordering to slightly shorten generated object code.dkf2010-04-271-330/+239
| | |
* | | If tclInt.h or tclPort.h is alreadynijtmans2010-04-271-3/+1
| | | | | | | | | | | | | | | | | | | | | included, don't include <limits.h> again. Follow-up to [Bug 2991415]: tclport.h #included before limits.h See comments in [Bug 2991415]
* | | * generic/tclBasic.test: modify api of TclSpliceTailcall()Miguel Sofer2010-04-241-2/+2
| | | | | | | | | | | | | | | | | | * generic/tclExecute.c: to fix yieldTo, which had not survived * generic/tclInt.h: the latest mods to tailcall. Thanks kbk for detecting the problem.
* | | * generic/tclExecute.c (TclExecuteByteCode): Improve commenting anddkf2010-04-191-170/+180
| | | | | | | | | | | | reduce indentation for the Invocation Block.
* | | [Bug 2976508] tcl HEAD fails on HP-UXnijtmans2010-03-261-2/+3
| | |
* | | Reduce ifdef-fery and size of activation record. More variables shared acrossdkf2010-02-241-603/+449
| | | | | | | | | | | | instructions than before.
* | | Convert literal tabs in strings into \t sequences.dkf2010-02-221-59/+59
| | |
* | | Unbreak the builddkf2010-01-311-31/+35
| | |
* | | Make the [unset] command be bytecode compiled.dkf2010-01-301-340/+480
| | |
* | | Improve error code generation from some of the tailcall-related bits of TEBC.dkf2010-01-221-29/+32
| | |
* | | * generic/tclCompile.h: NRE-enable direct eval on BC spoilageMiguel Sofer2010-01-211-24/+22
| | | | | | | | | | | | | | | * generic/tclExecute.c: [Bug 2910748] * tests/nre.test:
* | | * generic/tclBasic.c: Release TclPopCallFrame() from itsMiguel Sofer2009-12-131-5/+4
| | | | | | | | | | | | | | | * generic/tclExecute.c: tailcall-management duties * generic/tclNamesp.c:
* | | * generic/tclBasic.c: Moving TclBCArgumentRelease callMiguel Sofer2009-12-131-1/+4
| | | | | | | | | | | | | | | * generic/tclExecute.c: from TclNRTailcallObjCmd to TEBC, so that the pairing of the Enter and Release calls is clearer.
* | | code commentsMiguel Sofer2009-12-111-20/+14
| | |
* | | code commentsMiguel Sofer2009-12-111-12/+13
| | |
* | | code commentsMiguel Sofer2009-12-111-13/+15
| | |
* | | simplify the coroutine BP-chain monkey-patching; tclBasic does not need toMiguel Sofer2009-12-111-29/+14
| | | | | | | | | | | | know about bottomPtr, tebc does not need to behave differently on exit for coros
* | | * generic/tclBasic.c: Full nre-enabling of coroutinesMiguel Sofer2009-12-101-5/+5
| | | | | | | | | | | | * generic/tclExecute.c: [Bug 2806407]
* | | * generic/tclExecute.c: fix panic in http11.test caused by buggyMiguel Sofer2009-12-101-2/+2
| | | | | | | | | | | | earlier commits in coroutine management.
* | | * generic/tclBasic.c: Reducing the # of moving parts forMiguel Sofer2009-12-101-1/+2
| | | | | | | | | | | | | | | * generic/tclExecute.c: coroutines by delegating more to tebc; eliminate the special coroutine CallFrame.
* | | * generic/tclBasic.c: Reducing the # of moving parts forMiguel Sofer2009-12-101-8/+10
| | | | | | | | | | | | * generic/tclExecute.c: coroutines
* | | * generic/tclBasic.c: Insure correct lifetime of varFrame'sMiguel Sofer2009-12-091-12/+15
| | | | | | | | | | | | | | | | | | (objc,objv)for coroutines. * generic/tclExecute.c: Code regrouping
* | | * generic/tclExecute.c (TclStackFree): Improved panic msgMiguel Sofer2009-12-091-2/+3
| | |
* | | baby steps towards nre-enabling coroutine first runMiguel Sofer2009-12-081-4/+14
| | |
* | | * generic/tclBasic.c: Partial nre-enabling of coroutines.Miguel Sofer2009-12-081-27/+46
| | | | | | | | | | | | | | | | | | * generic/tclExecute.c: The initial call still requires its * generic/tclInt.h: own instance of tebc, but on resume coros can execute in the caller's tebc.
* | | * generic/tclExecute.c (TEBC): silence warning about pcAdjustmentMiguel Sofer2009-12-081-1/+3
| | |
* | | Reduce size of TEBC activation record a bit.dkf2009-12-081-366/+389
| | |
* | | * generic/tclExecute.c (TEBC): Grouping "slow" variables intoMiguel Sofer2009-12-081-319/+327
| | | | | | | | | | | | | | | structs, to reduce register pressure and help the compiler with variable allocation.
* | | * generic/tclExecute.c: Start cleaning the TEBC stablesMiguel Sofer2009-12-081-217/+160
| | | | | | | | | | | | * generic/tclInt.h:
* | | factoring TclSpliceTailcall out of TclPopStackFrameMiguel Sofer2009-12-061-1/+2
| | |
* | | * generic/tclBasic.c: Small changes for clarity in tailcallMiguel Sofer2009-12-061-7/+10
| | | | | | | | | | | | * generic/tclExecute.c: and coroutine code.
* | | Eliminate various gcc warnings (in -Wextra mode)nijtmans2009-11-181-10/+10
| | |
* | | * generic/tclDictObj.c: Updated freeIntRepProc routines sodgp2009-09-301-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclExecute.c: that they set the typePtr field to * generic/tclIO.c: NULL so that the Tcl_Obj is not left * generic/tclIndexObj.c: in an inconsistent state. * generic/tclInt.h: [Bug 2857044] * generic/tclListObj.c: * generic/tclNamesp.c: * generic/tclOOCall.c: * generic/tclObj.c: * generic/tclPathObj.c: * generic/tclProc.c: * generic/tclRegexp.c: * generic/tclStringObj.c:
* | | * generic/tclExecute.c: fix potential uninitialized variable use anddas2009-09-071-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclFCmd.c: null dereference flagged by clang static * generic/tclProc.c: analyzer. * generic/tclTimer.c: * generic/tclUtf.c: * generic/tclExecute.c: silence false positives from clang static * generic/tclIO.c: analyzer about potential null dereference. * generic/tclScan.c: * generic/tclCompExpr.c:
* | | * generic/tclCompCmds.c (TclCompileSubstCmd): Added a bytecodedgp2009-09-041-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclBasic.c: compiler routine for the [subst] command. * generic/tclCmdMZ.c: This is a partial solution to the need to * generic/tclCompile.c: NR-enable [subst] since bytecode execution is * generic/tclCompile.h: already NR-enabled. [Bug 2314561] Two new * generic/tclExecute.c: bytecode instructions, INST_NOP and * generic/tclInt.h: INST_RETURN_CODE_BRANCH were added to support * generic/tclParse.c: the new routine. INST_RETURN_CODE_BRANCH is * tests/basic.test: likely to be useful in any future effort to * tests/info.test: add a bytecode compiler routine for [try]. * tests/parse.test:
* | | TIP #353 IMPLEMENTATIONdgp2009-08-121-57/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/NRE.3: New public routine Tcl_NRExprObj() permits * generic/tcl.decls: extension commands to evaluate Tcl expressions * generic/tclBasic.c: in NR-enabled command procedures. * generic/tclCmdAH.c: * generic/tclExecute.c: * generic/tclInt.h: * generic/tclObj.c: * tests/expr.test: * generic/tclDecls.h: make genstubs * generic/tclStubInit.c:
* | | minor cleanupsdgp2009-07-241-1/+3
| | |