forked from google/closure-compiler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollforward of "Improve the compile time cost for Optimize Calls"
Has the following changes from the original: - fixed bad code, when a symbol definition had a HOOK or other nontrvial expressions (a mismatch between isCandidate and ReferenceMap::getFunctionNodes). - fixes regressions where constructor parameters were not being optimized if used in the target of a property set (f.prototype.method = ...). - fixes regressions where parameters were not optimized if the symbol was used in a typeof/instanceof expression - reverts improvement to constructor optimizations when caused breakage when function constructor properties were used to invoke constructors (until we can decide to ban them or similar). Improve the compile time cost for Optimize Calls from #1 to google#17 (roughly 25% of its previous time). Instead of using the DefinitionUseSiteFinder, as simpler data structure is introduced: OptimizeCalls.ReferenceMap. The ReferenceMap provides... ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=173976261
- Loading branch information
1 parent
78b30b6
commit 60d2c63
Showing
15 changed files
with
1,599 additions
and
902 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.