Skip to content
Tcl Source Code Check-in [a63c0633e9]
Login

Check-in [a63c0633e9]

Overview
Comment: * generic/tclBasic.c: added new CompileProc invocations to basic command initialization. * generic/tclCompCmds.c: added new compile commands for append, lappend, lindex and llength. Refactored set and incr compile commands to use new TclPushVarName function for handling the varname component during compilation (also used by append and lappend). Changed string compile command to compile toplevel code as well (when possible). * generic/tclCompile.c: added new instruction enums * generic/tclCompile.h: added debug info for new instructions * generic/tclExecute.c (TclExecuteByteCode): moved elemPtr to toplevel var (oft-used). Added definitions for new bytecode instructions INST_LIST_INDEX, INST_LIST_LENGTH, INST_APPEND_SCALAR1, INST_APPEND_SCALAR4, INST_APPEND_ARRAY1, INST_APPEND_ARRAY4, INST_APPEND_ARRAY_STK, INST_APPEND_STK, INST_LAPPEND_SCALAR1, INST_LAPPEND_SCALAR4, INST_LAPPEND_ARRAY1, INST_LAPPEND_ARRAY4, INST_LAPPEND_ARRAY_STK, INST_LAPPEND_STK. Refactored repititious code for reuse with INST_LOAD_STK (same as INST_LOAD_SCALAR_STK), INST_STORE_STK (same as INST_STORE_SCALAR_STK). Updated INST_STR_CMP with style of fix of 2001-04-06 Fellows [Bug #219201] as that fix only affected the runtime eval'ed "string" (string compare is normally byte-compiled now). We may want to back these out for speed in the future, noting the problems with \x00 comparisons in the docs. * generic/tclInt.h: declarations for new compile commands. * generic/tclVar.c: change TclGetIndexedScalar, TclGetElementOfIndexedArray, TclSetElementOfIndexedArray and TclSetIndexedScalar to use flags. The Set functions now support TCL_APPEND_ELEMENT and TCL_LIST_ELEMENT as well. * generic/tclInt.decls: * generic/tclIntDecls.h: minor signature changes for above.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: a63c0633e9ec7825ed92abf8aaa6fbe116d0f690
User & Date: hobbs on 2001-05-17 02:13:02.000
Other Links: manifest | tags
Context
2001-05-17
02:18
* tests/error.test: updated error-1.3 message to account for string index being compiled at toplev... check-in: 74b8d3cf44 user: hobbs tags: trunk
02:13
* generic/tclBasic.c: added new CompileProc invocations to basic command initialization. * generi... check-in: a63c0633e9 user: hobbs tags: trunk
02:11
generic/tclCmdMZ.c: made use of new Tcl_GetUnicodeFromObj check-in: f77d8a8251 user: hobbs tags: trunk
Changes