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

org.jruby.ir.instructions.boxing.UnboxFloatInstr Maven / Gradle / Ivy

package org.jruby.ir.instructions.boxing;

import org.jruby.ir.IRVisitor;
import org.jruby.ir.Operation;
import org.jruby.ir.instructions.Instr;
import org.jruby.ir.operands.Operand;
import org.jruby.ir.operands.Variable;
import org.jruby.ir.transformations.inlining.CloneInfo;

public class UnboxFloatInstr extends UnboxInstr {
    public UnboxFloatInstr(Variable dst, Operand val) {
        super(Operation.UNBOX_FLOAT, dst, val);
    }

    @Override
    public Instr clone(CloneInfo ii) {
        return new UnboxFloatInstr(ii.getRenamedVariable(getResult()), getValue().cloneForInlining(ii));
    }

    @Override
    public void visit(IRVisitor visitor) {
        visitor.UnboxFloatInstr(this);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy