summaryrefslogtreecommitdiffstats
path: root/generic/tclExecute.c
Commit message (Collapse)AuthorAgeFilesLines
...
* | * generic/tclExecute.c (TclCompEvalObj): missed update to "thereMiguel Sofer2007-06-141-6/+2
| | | | | | | | | | | | | | | | | | is always a valid frame". * generic/tclProc.c (TclObjInterpProcCore): call TEBC directly instead of going through TclCompEvalObj - no need to check the compilation's freshness, this has already been done. This improves speed and should also provide some relief to [Bug 1066755].
* | * generic/tclExecute.c: comments added to explain iPtr->numLevelsMiguel Sofer2007-06-111-2/+5
| | | | | | | | management.
* | * generic/tclBasic.c: Further TEOvI split, creating a newMiguel Sofer2007-06-101-14/+3
| | | | | | | | | | | | | | * generic/tclCompile.h: TclEvalObjvKnownCommand() function to * generic/tclExecute.c: handle commands that are already known and are not traced. INST_INVOKE now calls into this function instead of inlining parts of TEOvI. Same perf, better isolation.
* | * generic/tclExecute.c (TclExecuteByteCode): restore support forhobbs2007-06-101-9/+140
| | | | | | | | | | INST_CALL_BUILTIN_FUNC1 and INST_CALL_FUNC1 bytecodes to support 8.4- precompiled sources (math functions). [Bug 1720895]
* | * generic/tclExecute.c (INST_INVOKE): isolated two vars to theMiguel Sofer2007-06-091-3/+3
| | | | | | | | small block where they are actually used.
* | * generic/tclBasic.c: Split TEOv in two, by separating aMiguel Sofer2007-06-091-42/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | processor for non-TCL_OK returns. Also spli TEOvI in a full version that handles non-existing and traced commands, and a separate shorter version for the regular case. * generic/tclBasic.c: Moved the generation of command strings for * generic/tclTrace.c: traces: previously in Tcl_EvalObjv(), now in TclCheck[Interp|Execution]Traces(). Also insured that the strings are properly nul terminated at the correct length [Bug 1693986] * generic/tclBasic.c: Extend usage of TclLimitReady() and * generic/tclExecute.c: (new) TclLimitExceeded() macros. * generic/tclInt.h: * generic/tclInterp.c: * generic/tclInt.h: New TclCleanupCommandMacro for core usage. * generic/tclBasic.c: * generic/tclExecute.c: * generic/tclObj.c:
* | * generic/tclInt.h:Miguel Sofer2007-06-051-182/+278
| | | | | | | | * generic/tclExecute.c: Tcl-stack reform, [Patch 1701202]
* | suppress compiler warnings about values computed and not useddgp2007-05-171-3/+3
| |
* | Added macro version of Tcl_LimitReady.dkf2007-05-171-65/+94
| |
* | Better const correctnessdkf2007-05-111-4/+4
| |
* | * generic/tclExecute.c (TclExecuteByteCode): Plugged six memoryKevin B Kenny2007-04-241-1/+7
| | | | | | | | leaks in bignum arithmetic.
* | * generic/tclCkalloc.c: fix warnings from gcc build configured withdas2007-04-231-21/+20
| | | | | | | | | | * generic/tclCompile.c: --enable-64bit --enable-symbols=all. * generic/tclExecute.c:
* | * generic/tclExecute.c (INST_LSHIFT): fixed a mistake introducedMiguel Sofer2007-04-191-2/+2
| | | | | | | | | | | | | | in version 1.266 ('=' became '=='), which effectively turned the block that handles native shifts into dead code. This explains why the testsuite did not pick this mistake. Rewrote to make the intention clear.
* | * generic/tclExecute.c: slight changes in Tcl_Obj management.Miguel Sofer2007-04-181-22/+28
| |
* | * generic/tclExecute.c: fixed checkInterp logic [Bug 1702212]Miguel Sofer2007-04-171-8/+11
| |
* | Always cast arg to ckfree to char*, not VOID*dkf2007-04-171-3/+3
| |
* | * generic/tclExecute.c: removed some code at INSTEXPAND_SKTOP thatMiguel Sofer2007-04-141-8/+6
| | | | | | | | duplicates functionality already present at checkForCatch.
* | removed stray '//'Miguel Sofer2007-04-111-2/+2
| |
* | * generic/tclExecute.c: new macros OBJ_AT_TOS, OBJ_UNDER_TOS,Miguel Sofer2007-04-111-141/+145
| | | | | | | | | | | | OBJ_AT_DEPTH(n) and CURR_DEPTH that remove all direct references to tosPtr from TEBC (after initialisation and the code at the label cleanupV_pushObjResultPtr).
* | Complete conversion to ANSI function definitionsdkf2007-04-101-3/+3
| |
* | Handle creation of Tcl_Objs from constant strings better (easier to use, moredkf2007-04-101-2/+4
| | | | | | | | efficient). After [Patch 1529526] (afredd)
* | * generic/tclExecute.c (TEBC): small code reduction.Miguel Sofer2007-04-071-25/+2
| |
* | * generic/tclExecute.c (TEBC):Miguel Sofer2007-04-061-291/+308
| | | | | | | | | | | | | | | | * generic/tclNamespace.c (NsEnsembleImplementationCmd): * generic/tclProc.c (InitCompiledLocals, ObjInterpProcEx, TclObjInterpProcCore, ProcCompileProc): code reordering to reduce branching and improve branch prediction (assume that forward branches are typically not taken).
* | * generic/tclExecute.c: INST_INVOKE optimisation [Patch 1693802]Miguel Sofer2007-04-031-6/+24
| |
* | * generic/tclBasic.c: Added bytecode compilers for theMiguel Sofer2007-04-031-1/+126
| | | | | | | | | | | | | | | | * generic/tclCompCmds.c: variable linking commands: 'global', * generic/tclCompile.h: 'variable', 'upvar', 'namespace upvar' * generic/tclExecute.c: [Patch 1688593] * generic/tclInt.h: * generic/tclVar.c:
* | * generic/tclBasic.c: Replace arrays on the C stack and ckallocdgp2007-04-021-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | * generic/tclExecute.c: calls with TclStackAlloc calls to use memory * generic/tclFCmd.c: on Tcl's evaluation stack. * generic/tclFileName.c: * generic/tclIOCmd.c: * generic/tclIndexObj.c: * generic/tclInterp.c: * generic/tclNamesp.c: * generic/tclTrace.c: * unix/tclUnixPipe.c:
* | Ensure that the count of commands commenced by bytecode is correct at all timesdkf2007-04-011-303/+543
| | | | | | | | | | | | even though INST_START_CMD is now issued more efficiently. Changes definition of I_S_C, but that's an 8.5 opcode so that shouldn't matter; tbcload doesn't work with 8.5 at the moment anyway.
* | * generic/tclExecute.c: optimise the lookup of elements of indexedMiguel Sofer2007-03-301-11/+39
| | | | | | | | arrays.
* | * generic/tclExecute.c: Revised GrowEvaluationStack to take andgp2007-03-221-30/+31
| | | | | | | | | | | | argument specifying the growth required by the caller, so that a single reallocation / copy is the most that will ever be needed even when required growth is large.
* | * generic/tclExecute.c: More ckalloc -> ckrealloc conversions.dgp2007-03-211-20/+11
| | | | | | | | * generic/tclLiteral.c:
* | Fix trivial error in comment.dkf2007-03-201-2/+2
| |
* | * generic/tclExecute.c (INST_FOREACH_STEP4): Make private copydgp2007-03-121-3/+5
| | | | | | | | | | | | * tests/foreach.test (foreach-10.1): of value list to be assigned to variables so that shimmering of that list doesn't lead to invalid pointers. [Bug 1671087]
* | Added a scheme to allow aux-data to be printed out for debugging. For this ↵dkf2007-03-021-26/+23
| | | | | | | | | | | | to work, immediate operands referring to aux-data must be identified as such in the instruction descriptor table using OPERAND_AUX4 (all are always 4 bytes). Rewrote the compiled [dict update] so that it stores critical non-varying data in an aux-data value instead of a (shimmerable) literal. [Bug 1671001]
* | various "const" additions, in line with TIP #27nijtmans2007-02-201-68/+69
| |
* | * generic/tclCompExpr.c: Revised implementation of TclInvertOpCmddgp2006-12-081-4/+2
| | | | | | | | | | | | | | | | | | | | * generic/tclMathOp.c: to perform a bytecode compile / execute sequence. This demonstrates a path toward avoiding mountains of code duplication in tclMathOp.c and tclExecute.c. * generic/tclCompile.h: Change TclExecuteByteCode() from static to * generic/tclExecute.c: MODULE_SCOPE so all files including tclCompile.h may call it.
* | * generic/tclCompCmds.c: Additional commits correct mostdgp2006-12-071-5/+16
| | | | | | | | | | * generic/tclExecute.c: failing tests illustrating bugs uncovered * generic/tclMathOp.c: in [Path 1578137].
* | TIP#298 IMPLEMENTATIONdgp2006-12-011-77/+17
| | | | | | | | | | | | | | | | | | | | | | * generic/tcl.decls: Tcl_GetBignumAndClearObj -> Tcl_TakeBignumFromObj. * generic/tclObj.c: * generic/tclDecls.h: make genstubs * generic/tclStubInit.c: * generic/tclExecute.c: Update callers. * generic/tclMathOp.c:
* | fix warningsdas2006-12-011-3/+3
| |
* | * generic/tclBasic.c: TIP #280 implementation.andreas_kupries2006-11-281-5/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclCompCmds.c: * generic/tclCompExpr.c: * generic/tclCompile.c: * generic/tclCompile.h: * generic/tclExecute.c: * generic/tclIOUtil.c: * generic/tclInt.h: * generic/tclInterp.c: * generic/tclNamesp.c: * generic/tclObj.c: * generic/tclProc.c: * tests/compile.test: * tests/info.test: * tests/platform.test: * tests/safe.test:
* | * generic/tclExecute.c (TclIncrObj): Correct failure to detectdgp2006-11-271-2/+2
| | | | | | | | floating-point increment values. Thanks to William Coleda [Bug 1602991]
* | * generic/tclExecute.c (INST_EXPON): Corrected crash ondgp2006-11-171-1/+6
| | | | | | | | [expr 2**(1<<63)]. Was operating on cleared bignum Tcl_Obj.
* | TIP#270 IMPLEMENTATIONdgp2006-11-151-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tcl.decls: New public routines Tcl_ObjPrintf, * generic/tclStringObj.c: Tcl_AppendObjToErrorInfo, Tcl_Format, * generic/tclInt.h: Tcl_AppendLimitedToObj, Tcl_AppendFormatToObj and Tcl_AppendPrintfToObj. Former internal versions removed. * generic/tclDecls.h: make genstubs * generic/tclStubInit.c: * generic/tclBasic.c: Updated callers. * generic/tclCkalloc.c: * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclCompExpr.c: * generic/tclCompile.c: * generic/tclDictObj.c: * generic/tclExecute.c: * generic/tclIORChan.c: * generic/tclIOUtil.c: * generic/tclMain.c: * generic/tclNamesp.c: * generic/tclObj.c: * generic/tclPkg.c: * generic/tclProc.c: * generic/tclStrToD.c: * generic/tclTimer.c: * generic/tclUtil.c: * unix/tclUnixFCmd.c:
* | * generic/tclCompExpr.c: fix gcc warnings about 'cast to/fromdas2006-11-131-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclEncoding.c: pointer from/to integer of different * generic/tclEvent.c: size' on 64-bit platforms by casting to * generic/tclExecute.c: intermediate types intptr_t/uintptr_t * generic/tclHash.c: via new PTR2INT(), INT2PTR(), * generic/tclIO.c: PTR2UINT() and UINT2PTR() macros. * generic/tclInt.h: [Patch 1592791] * generic/tclProc.c: * generic/tclTest.c: * generic/tclThreadStorage.c: * generic/tclTimer.c: * generic/tclUtil.c: * unix/configure.in: * unix/tclUnixChan.c: * unix/tclUnixPipe.c: * unix/tclUnixPort.h: * unix/tclUnixTest.c: * unix/tclUnixThrd.c: * unix/configure: autoconf-2.59 * unix/tclConfig.h.in: autoheader-2.59
* | * generic/tclBasic.c: Further revised TclAppendPrintToObj() anddgp2006-11-021-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCkalloc.c: TclObjPrintf() routines to panic when unable * generic/tclCmdAH.c: to complete their formatting operations, rather * generic/tclCmdIL.c: than report an error message. This means an * generic/tclCmdMZ.c: interp argument for error message recording is * generic/tclDictObj.c: no longer needed, further simplifying the * generic/tclExecute.c: interface for callers. * generic/tclIORChan.c: * generic/tclIOUtil.c: * generic/tclInt.h: * generic/tclMain.c: * generic/tclNamesp.c: * generic/tclParseExpr.c: * generic/tclPkg.c: * generic/tclProc.c: * generic/tclStringObj.c: * generic/tclTimer.c: * generic/tclUtil.c: * unix/tclUnixFCmd.c:
* | * generic/tclBasic.c: Refactored and renamed the routinesdgp2006-10-311-7/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCkalloc.c: TclObjPrintf, TclFormatObj, and * generic/tclCmdAH.c: TclFormatToErrorInfo to a new set of * generic/tclCmdIL.c: routines TclAppendPrintfToObj, * generic/tclCmdMZ.c: TclAppendFormatToObj, TclObjPrintf, and * generic/tclDictObj.c: TclObjFormat, with the intent of making * generic/tclExecute.c: the latter list, plus TclAppendLimitedToObj * generic/tclIORChan.c: and TclAppendObjToErrorInfo, public via * generic/tclIOUtil.c: a revised TIP 270. * generic/tclInt.h: * generic/tclMain.c: * generic/tclNamesp.c: * generic/tclParseExpr.c: * generic/tclPkg.c: * generic/tclProc.c: * generic/tclStringObj.c: * generic/tclTimer.c: * generic/tclUtil.c: * unix/tclUnixFCmd.c:
* | * generic/tclExecute.c (INST_MOD): Corrected improper testing ofdgp2006-10-301-3/+3
| | | | | | | | | | * tests/expr.test: the sign of bignums when applying Tcl's division rules. Thanks to Peter Spjuth. [Bug 1585704]
* | * generic/tclExecute.c: Corrected error in INST_LSHIFT in thedgp2006-09-281-2/+2
| | | | | | | | | | | | | | | | * tests/expr.test: calculation done to determine whether a shift in the (long int) type is possible. The calculation had literal value "1" where it needed a value "1L" to compute the correct result. Error detected via testing with the math::bigfloat package [Bug 1567222]
* | * generic/tclExecute.c (INST_EXPON): Native type overflow detectiondgp2006-09-191-46/+6
| | | | | | | | | | | | | | * tests/expr.test: was completely broken. Falling back on use of bignums for all non-trivial ** calculations until native-type-constrained special cases can be done carefully and correctly. [Bug 1561260].
* | * generic/tclExecute.c: Corrected INST_EXPON flaw that treateddgp2006-09-111-1/+4
| | | | | | | | * tests/expr.test: $x**1 as $x**3. [Bug 1555371]
* | add casts to make gcc2 happy with previous commit [Bug 1548330]das2006-08-291-25/+25
| |