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