org.jruby.ir.instructions.BFalseInstr Maven / Gradle / Ivy
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 BFalseInstr extends BranchInstr {
protected BFalseInstr(Operand v, Label jmpTarget) {
super(Operation.B_FALSE, v, null, jmpTarget);
}
@Override
public Instr cloneForInlinedScope(InlinerInfo ii) {
return new BFalseInstr(getArg1().cloneForInlining(ii), ii.getRenamedLabel(getJumpTarget()));
}
@Override
public Instr cloneForBlockCloning(InlinerInfo ii) {
return new BFalseInstr(getArg1().cloneForInlining(ii), getJumpTarget());
}
@Override
public void visit(IRVisitor visitor) {
visitor.BFalseInstr(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy