Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jruby.ir.instructions;
 
public class NoResultCallInstr extends CallBase {
    public NoResultCallInstr(Operation opCallType callTypeMethAddr methAddr,
            Operand receiverOperand[] argsOperand closure) {
        super(opcallTypemethAddrreceiverargsclosure);
    }
    
    public NoResultCallInstr(NoResultCallInstr instr) {
        this(instr.getOperation(), instr.getCallType(), instr.methAddr
                instr.receiverinstr.argumentsinstr.closure);
    }
    
    @Override
    public Instr cloneForInlining(InlinerInfo ii) {
        return new NoResultCallInstr(getOperation(), getCallType(), (MethAddrgetMethodAddr().cloneForInlining(ii), 
                .cloneForInlining(ii), cloneCallArgs(ii),  == null ? null : .cloneForInlining(ii));
    }
    @Override
        Operand[] callArgs = getCallArgs();
        if (hasClosure() || containsSplat(callArgs)) return this;
        
        switch (callArgs.length) {
//            case 0:
//                return new ZeroOperandArgNoBlockNoResultCallInstr(this);
            case 1:
//                if (isAllFixnums()) return new OneFixnumArgNoBlockNoResultCallInstr(this);
                return new OneOperandArgNoBlockNoResultCallInstr(this);
        }
        return this;
    }
    @Override
    public void visit(IRVisitor visitor) {
        visitor.NoResultCallInstr(this);
    }
New to GrepCode? Check out our FAQ X