summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.c
diff options
context:
space:
mode:
authormig <mig>2013-12-18 15:34:39 (GMT)
committermig <mig>2013-12-18 15:34:39 (GMT)
commit4cc4d69fe462a3661da5df84b1897b9959f6d5fd (patch)
tree35a294cbee8763fa0270415cf220c0d8f1c8c44d /generic/tclCompile.c
parent12a14105a15ca9bae71b2020fdc9d1c1b1b95dff (diff)
downloadtcl-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/tclCompile.c')
-rw-r--r--generic/tclCompile.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index 6c2e2b6..525571d 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.c
@@ -765,7 +765,9 @@ TclSetByteCodeFromAny(
* instruction generator boundaries.
*/
- TclOptimizeBytecode(&compEnv);
+ if (iPtr->extra.optimizer) {
+ (iPtr->extra.optimizer)(&compEnv);
+ }
/*
* Invoke the compilation hook procedure if one exists.