aboutsummaryrefslogtreecommitdiff
path: root/tools/js-optimizer.js
AgeCommit message (Collapse)Author
2013-08-14disable optimizeShifts; fixes #1518Alon Zakai
2013-08-13fix limit in outlining.flatten, and adjust to 1/4 of the outlining targetAlon Zakai
2013-08-13exit outlining when we are done, as early as possibleAlon Zakai
2013-08-09aim for more evenly-sized pieces in outlinerAlon Zakai
2013-08-09sort spills and unspills in outlinerAlon Zakai
2013-08-09track loop depth in outlinerAlon Zakai
2013-08-09report more variable stats when outliningAlon Zakai
2013-08-06test outlining with -O2, but without size checksAlon Zakai
2013-08-06allow outlining of single statementsAlon Zakai
2013-08-06better outline loggingAlon Zakai
2013-08-06increment outlining counter only when outlining succeededAlon Zakai
2013-08-05handle overflows when relocating heap offsetsAlon Zakai
2013-08-05infrastructure to track the costs of outlining, and to possibly change ↵Alon Zakai
outlining thresholds as we go
2013-07-26flatten if-chains into smaller chains, chunking reduces the overhead of ↵Alon Zakai
flattening them out entirely
2013-07-25fix outlining for all debug levels and add testingAlon Zakai
2013-07-25fix bug in aggressive variable elimination and re-enable itAlon Zakai
2013-07-25do not flatten ifs without elsesAlon Zakai
2013-07-25support outlining with minificationAlon Zakai
2013-07-25disable aggressiveVariableElimination for nowAlon Zakai
2013-07-25do not outline sp assignments, because we need sp to perform an outline callAlon Zakai
2013-07-24flatten if chains in outliner, and be more careful to avoid outlining ↵Alon Zakai
through an outline call
2013-07-23do not outline through an outline callAlon Zakai
2013-07-23use a separate stack location for control variable information for each ↵Alon Zakai
outlined function, to avoid problems when outlining right through the support code for a previous outlining
2013-07-22clean up outlinings limit codeAlon Zakai
2013-07-22have a fixed limit for the number of outlinings we perform on a single functionAlon Zakai
2013-07-21abort outlining if it leads to the new function or old function exceeding ↵Alon Zakai
the original function in size
2013-07-21fix semantics of control variable handling in outlining: zero out when ↵Alon Zakai
calling outlined funcitons, and right after using the value, so that we can handle nested outlined calls
2013-07-20simplify heuristics for restarting in outlinerAlon Zakai
2013-07-20stop trying to outline in outlined code, appears to not be necessary anymoreAlon Zakai
2013-07-20use blocks in switch cases in outlinerAlon Zakai
2013-07-20allow sp to be modified in outlined code, by changing the model to where ↵Alon Zakai
outlined code returns sp (which also parallels that we sent it as the single parameter)
2013-07-20adjust outlining heuristics to fully outline even big functionsAlon Zakai
2013-07-20do a restart in the outliner only if the total cost is not too highAlon Zakai
2013-07-20recursively outline when the total cost is not too high, and adjust ↵Alon Zakai
outlining parameters
2013-07-20do not try another outlining pass if there is not that much left anyhowAlon Zakai
2013-07-19attempt a final outline from the start after any outlining, not just a ↵Alon Zakai
recursive one
2013-07-19after outlining recursively, try to outline once more from the beginningAlon Zakai
2013-07-19ensure a final return after inlining, if necessaryAlon Zakai
2013-07-19remove variables owned by outlined code from the parentAlon Zakai
2013-07-18wipe out control flow variable before calling outlined codeAlon Zakai
2013-07-18do not miss returns that are statementsAlon Zakai
2013-07-18do not emit spills in outlined code for variables that only appear in the ↵Alon Zakai
outlines code
2013-07-18do not outline into outlined code for now, and refactor code analysis a littleAlon Zakai
2013-07-18add coercions on return proxying in outlinerAlon Zakai
2013-07-18emit only necessary return proxying code when outliningAlon Zakai
2013-07-18send variables to outlines code even if just written; they may not be ↵Alon Zakai
written to, and we would write a zero incorrectly
2013-07-17consolidate simplifyExpressions to one pass that happens before closure, ↵Alon Zakai
where simplifyNotComps is guaranteed to be valid
2013-07-17add asm coercions to switches for outliningAlon Zakai
2013-07-17add asm coercions to ifs for outliningAlon Zakai
2013-07-17add asm coercion when outliningAlon Zakai