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: |
a63c0633e9ec7825ed92abf8aaa6fbe1 |
| 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
Modified generic/tclBasic.c
from [faefa9709f]
to [e7285d5d2a].
[diff]
Modified generic/tclCompCmds.c
from [0f3e7d24b4]
to [51cd7b41d6].
[diff]
Modified generic/tclCompile.c
from [b550e854e5]
to [2a48668bb5].
[diff]
Modified generic/tclCompile.h
from [08da743b66]
to [1d28cb8739].
[diff]
Modified generic/tclExecute.c
from [deb1409527]
to [593e6f697d].
[diff]
Modified generic/tclInt.decls
from [230cff9a1e]
to [ae56de01b1].
[diff]
Modified generic/tclInt.h
from [17cb8b8eb6]
to [b9fd77f97a].
[diff]
Modified generic/tclIntDecls.h
from [8497056572]
to [715ab056bf].
[diff]
Modified generic/tclVar.c
from [207f5cda3c]
to [4bf123a095].
[diff]