-
Notifications
You must be signed in to change notification settings - Fork 25k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify constant handling in Painless (#52612)
This change makes constant handling simpler by doing the following: * Removes the ir tree node RegexNode entirely in favor or using more generic nodes such as ConstantNode and MemberFieldLoadNode generated by the user tree node ERegex. This requires a clinit method added to the ClassNode, but allows for additional removals. This clinit method can also be used for potential optimization passes. * Removes the Constant class as with the changes to regex nodes it's no longer necessary. * Removes the Globals class from the ir tree write phase. With the previous removals, Globals is no longer necessary.
- Loading branch information
Showing
67 changed files
with
518 additions
and
517 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.