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

org.jruby.ir.instructions.BTrueInstr Maven / Gradle / Ivy

There is a newer version: 9.4.9.0
Show newest version
package org.jruby.ir.instructions;

import org.jruby.ir.IRVisitor;
import org.jruby.ir.Operation;
import org.jruby.ir.operands.Label;
import org.jruby.ir.operands.Operand;
import org.jruby.ir.transformations.inlining.InlinerInfo;

public class BTrueInstr extends BranchInstr {
    protected BTrueInstr(Operand v, Label jmpTarget) {
        super(Operation.B_TRUE, v, null, jmpTarget);
    }

    @Override
    public Instr cloneForInlinedScope(InlinerInfo ii) {
        return new BTrueInstr(getArg1().cloneForInlining(ii), ii.getRenamedLabel(getJumpTarget()));
    }

    @Override
    public Instr cloneForBlockCloning(InlinerInfo ii) {
        return new BTrueInstr(getArg1().cloneForInlining(ii), getJumpTarget());
    }

    public void visit(IRVisitor visitor) {
        visitor.BTrueInstr(this);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy