org.jruby.ir.passes.LinearizeCFG Maven / Gradle / Ivy
package org.jruby.ir.passes;
import java.util.Arrays;
import java.util.List;
import org.jruby.ir.IRScope;
public class LinearizeCFG extends CompilerPass {
public static List> DEPENDENCIES = Arrays.>asList(CFGBuilder.class);
@Override
public String getLabel() {
return "Linearize CFG";
}
@Override
public List> getDependencies() {
return DEPENDENCIES;
}
@Override
public Object execute(IRScope scope, Object... data) {
scope.buildLinearization();
return null;
}
@Override
public void invalidate(IRScope scope) {
scope.resetLinearizationData();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy