diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-08-06 12:07:33 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-08-06 12:33:48 -0700 |
commit | 6a1f8030bfddf31d35e5df5fddb6f73cdd3d996e (patch) | |
tree | fa4cbf3f4cf5760c4698af99a1bd6eb5f6c3653d /tools/js-optimizer.js | |
parent | a7c0536ab3c599772f37a7a6d5d0d012f5eb4055 (diff) |
increment outlining counter only when outlining succeeded
Diffstat (limited to 'tools/js-optimizer.js')
-rw-r--r-- | tools/js-optimizer.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/js-optimizer.js b/tools/js-optimizer.js index 82942ce2..facf2a0e 100644 --- a/tools/js-optimizer.js +++ b/tools/js-optimizer.js @@ -3418,8 +3418,10 @@ function outline(ast) { // final evaluation and processing if (!extraInfo.allowCostlyOutlines && (measureSize(func) >= funcSize || measureSize(newFunc) >= funcSize)) { // abort, this was pointless + printErr('abort outlining ' + newIdent); stats.length = originalStats.length; for (var i = 0; i < stats.length; i++) stats[i] = originalStats[i]; + asmData.splitCounter--; return []; } for (var v in owned) { @@ -3434,6 +3436,7 @@ function outline(ast) { } } outliningParents[newIdent] = func[1]; + printErr('successful outlining ' + newIdent); calculateThreshold(func); return [newFunc]; } |