public void initFlipStateVariable(Variable v, Operand initState) { // Add it to the beginning instrList.add(0, new CopyInstr(v, initState)); }
@Override public Operand simplifyAndGetResult(IRScope scope, Map<Operand, Operand> valueMap) { simplifyOperands(valueMap, false); return getSource(); }
@Override public Instr clone(CloneInfo ii) { return new CopyInstr(getOperation(), ii.getRenamedVariable(result), getSource().cloneForInlining(ii)); }
Operand src = ((CopyInstr)i).getSource(); Class srcType = getOperandType(tmpState, src); dstType = srcType; Operand unboxedSrc = src instanceof Variable ? getUnboxedVar(srcType, unboxMap, (Variable)src) : src; TemporaryLocalVariable unboxedDst = getUnboxedVar(srcType, unboxMap, dst); newInstrs.add(new CopyInstr(Operation.COPY, unboxedDst, unboxedSrc)); unboxedAndDirty = true;
@Override public void encode(IRWriterEncoder e) { super.encode(e); e.encode(getSource()); }
@Override public Operand simplifyAndGetResult(IRScope scope, Map<Operand, Operand> valueMap) { simplifyOperands(valueMap, false); return arg; }
public Operand getSource() { return getOperand1(); }
case CLASS_VAR_MODULE: return GetClassVarContainerModuleInstr.decode(this); case CONST_MISSING: return ConstMissingInstr.decode(this); case COPY: return CopyInstr.decode(this); case DEF_CLASS: return DefineClassInstr.decode(this); case DEF_CLASS_METH: return DefineClassMethodInstr.decode(this);
@Override public Instr clone(CloneInfo ii) { return new CopyInstr(getOperation(), ii.getRenamedVariable(result), getSource().cloneForInlining(ii)); }
Operand src = ((CopyInstr)i).getSource(); Class srcType = getOperandType(tmpState, src); dstType = srcType; Operand unboxedSrc = src instanceof Variable ? getUnboxedVar(srcType, unboxMap, (Variable)src) : src; TemporaryLocalVariable unboxedDst = getUnboxedVar(srcType, unboxMap, dst); newInstrs.add(new CopyInstr(Operation.COPY, unboxedDst, unboxedSrc)); unboxedAndDirty = true;
@Override public void encode(IRWriterEncoder e) { super.encode(e); e.encode(getSource()); }
@Override public Operand simplifyAndGetResult(IRScope scope, Map<Operand, Operand> valueMap) { simplifyOperands(valueMap, false); return arg; }
public Operand getSource() { return getOperand1(); }
case CLASS_VAR_MODULE: return GetClassVarContainerModuleInstr.decode(this); case CONST_MISSING: return ConstMissingInstr.decode(this); case COPY: return CopyInstr.decode(this); case DEF_CLASS: return DefineClassInstr.decode(this); case DEF_CLASS_METH: return DefineClassMethodInstr.decode(this);
public void initFlipStateVariable(Variable v, Operand initState) { // Add it to the beginning instrList.add(0, new CopyInstr(v, initState)); }
@Override public Operand simplifyAndGetResult(IRScope scope, Map<Operand, Operand> valueMap) { simplifyOperands(valueMap, false); return getSource(); }