All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jruby.ir.passes.LinearizeCFG Maven / Gradle / Ivy

There is a newer version: 0.8.14
Show newest version
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