Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve tree-shaking by propagate const parameter (#5443)
* feat: improve tree-shaking by propagate const parameter * fix: update old tests (for tree-shaking const param) * test: add test for tree-shaking by propagate const parameter * feat&perf: support object param * style: update coverage * test: update tree-shake-literal-parameter * test: update tree-shake top export * refactor: tree-shaking-literal * fix: test indent * perf: remove same object SPJ getObjectEntity is private, so we can't judge if two object are the same * refactor: support iife * test: tree-shake literal iife * fix: args but not callee should not be optimized * refactor: some logic to function base with comment * feat&perf: support implicitly undefined * test: tree-shake literal conditional * feat: integrate with optimizeCache * test: fix * feat: function argument side effect * style: revert export default change since deoptimizePath will detect * feat: support foo(bar);foo(bar); * test: add more side-effect and top-level test * 4.13.2 * test: add export default test * refactor FunctionParameterState and remove initalization * refactor IIFE * feat: support export default anonymous * fix: nested namespace tracking * feat: support define then export default * performance * refactor: UNKNOWN_EXPRESSION * refactor: reduce complexity * fix: export default function foo and foo called from same mod * style: NodeType * style: remove counter * perf: cache onlyfunctioncall result * style&perf: remove args slice * perf: export default variable * perf: export default variable * style: small updates: naming, private... * perf: LogicalExpression deoptimize cache * style: remove a condition which is always true * style: add protected * style: remove a condition which is always true * style: remove a condition * refactor: lazy bind variable * fix: refresh cache if isReassigned change for ParameterVariable * fix: make sure deoptimize give a final state * style: make coverage more happy --------- Co-authored-by: Lukas Taegert-Atkinson <lukas.taegert-atkinson@tngtech.com> Co-authored-by: Lukas Taegert-Atkinson <lukastaegert@users.noreply.github.com>
- Loading branch information
1 parent
e6e05cd
commit 5491ab4
Showing
83 changed files
with
981 additions
and
49 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
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
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.