aboutsummaryrefslogtreecommitdiff
path: root/tools/js-optimizer.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-07-20 22:32:32 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-07-20 22:32:32 -0700
commitf099024dcd6a05e2cb74d21d6cd871ed10a81983 (patch)
treeb3bd2067cc2be20087429312d2db3491d0a4a752 /tools/js-optimizer.js
parentdd81be6e67fc3ce77450b28714fb0dc2343dbabf (diff)
stop trying to outline in outlined code, appears to not be necessary anymore
Diffstat (limited to 'tools/js-optimizer.js')
-rw-r--r--tools/js-optimizer.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/js-optimizer.js b/tools/js-optimizer.js
index c361e3f4..75ffe33e 100644
--- a/tools/js-optimizer.js
+++ b/tools/js-optimizer.js
@@ -3472,11 +3472,12 @@ function outline(ast) {
// add new functions to the toplevel, or create a toplevel if there isn't one
ast[1].push.apply(ast[1], newFuncs);
- funcs = newFuncs.filter(function(newFunc) {
- // recursively outline if we have a large new function that did not come at a high cost
- return measureSize(newFunc) > sizeToOutline && costs[newFunc[1]] < 0.1*sizeToOutline;
- });
- more = funcs.length > 0;
+ // TODO: check if in some cases we do need to outline new functions
+ //funcs = newFuncs.filter(function(newFunc) {
+ // // recursively outline if we have a large new function that did not come at a high cost
+ // return measureSize(newFunc) > sizeToOutline && costs[newFunc[1]] < 0.1*sizeToOutline;
+ //});
+ //more = funcs.length > 0;
}
}
}