forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1843519 - Reuse merge logic from try_product_in_place when parsin…
…g. r=emilio The merge logic in try_product_in_place could not be used because it expected the rhs node to be a leaf already. Now it tries to resolve the rhs to a number before checking validity. This allows the use of the logic during parsing as well. When simplifying the rhs is already a node as it used to be, so the resolve should hit the Leaf case anyway and return early, so the overhead is negligible. Differential Revision: https://phabricator.services.mozilla.com/D183573
- Loading branch information
Showing
2 changed files
with
59 additions
and
45 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