diff options
author | mig <mig> | 2013-12-18 15:34:39 (GMT) |
---|---|---|
committer | mig <mig> | 2013-12-18 15:34:39 (GMT) |
commit | 4cc4d69fe462a3661da5df84b1897b9959f6d5fd (patch) | |
tree | 35a294cbee8763fa0270415cf220c0d8f1c8c44d /generic/tclBasic.c | |
parent | 12a14105a15ca9bae71b2020fdc9d1c1b1b95dff (diff) | |
download | tcl-4cc4d69fe462a3661da5df84b1897b9959f6d5fd.zip tcl-4cc4d69fe462a3661da5df84b1897b9959f6d5fd.tar.gz tcl-4cc4d69fe462a3661da5df84b1897b9959f6d5fd.tar.bz2 |
Making the optimizer pluggable by extensions; please review for committing to trunkmig_tmp_optimize
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r-- | generic/tclBasic.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c index a41351e..8ec94ca 100644 --- a/generic/tclBasic.c +++ b/generic/tclBasic.c @@ -526,6 +526,9 @@ Tcl_CreateInterp(void) iPtr->hiddenCmdTablePtr = NULL; iPtr->interpInfo = NULL; + TCL_CT_ASSERT(sizeof(iPtr->extra) <= sizeof(Tcl_HashTable)); + iPtr->extra.optimizer = TclOptimizeBytecode; + iPtr->numLevels = 0; iPtr->maxNestingDepth = MAX_NESTING_DEPTH; iPtr->framePtr = NULL; /* Initialise as soon as :: is available */ |