You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement marker passes for JSCompiler stage 2 splitting
This CL implements the proposal to use marker passes for splitting
JSCompiler's Stage 2 optimization phase.
Previously, users adding custom passes could encounter errors if the
target pass for 'addBefore' was only present in one segment of the
split stage 2. This change resolves the issue by:
- Always returning the complete list of stage 2 passes in
`DefaultPassConfig.getOptimizations()`, including an empty marker
pass (`PassNames.OPTIMIZATIONS_HALFWAY_POINT`) to indicate the split.
- Modifying `Compiler.performTranspilationAndOptimizations()` to
construct the actual pass list for each stage 2 segment based on
the marker pass, and then providing this list to `PhaseOptimizer`.
PiperOrigin-RevId: 734309816
0 commit comments