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: 9.4.9.0
Show newest version
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