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

org.jruby.compiler.ir.instructions.RETRY_Instr Maven / Gradle / Ivy

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

import org.jruby.compiler.ir.Operation;
import org.jruby.compiler.ir.operands.Label;
import org.jruby.compiler.ir.representations.InlinerInfo;

// SSS FIXME: Should I have a reference to the IR_loop that is being retried?
public class RETRY_Instr extends OneOperandInstr
{
    Label _jumpLabel;

    public RETRY_Instr(Label loopStart)
    {
        super(Operation.RETRY, null, null);
        _jumpLabel = loopStart;
    }

    public Instr cloneForInlining(InlinerInfo ii) {
        return new RETRY_Instr(ii.getRenamedLabel(_jumpLabel));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy