@Override public Instr cloneForInlining(InlinerInfo ii) { return new LexicalSearchConstInstr(ii.getRenamedVariable(result), definingScope.cloneForInlining(ii), constName); }
@Override public Instr cloneForInlining(InlinerInfo ii) { return new LexicalSearchConstInstr(ii.getRenamedVariable(result), definingScope.cloneForInlining(ii), constName); }
@Override public Instr clone(CloneInfo ii) { return new LexicalSearchConstInstr(ii.getRenamedVariable(result), getDefiningScope().cloneForInlining(ii), constantName); }
@Override public Instr clone(CloneInfo ii) { return new LexicalSearchConstInstr(ii.getRenamedVariable(result), getDefiningScope().cloneForInlining(ii), constantName); }
public static LexicalSearchConstInstr decode(IRReaderDecoder d) { return new LexicalSearchConstInstr(d.decodeVariable(), d.decodeOperand(), d.decodeSymbol()); }
public static LexicalSearchConstInstr decode(IRReaderDecoder d) { return new LexicalSearchConstInstr(d.decodeVariable(), d.decodeOperand(), d.decodeSymbol()); }
Variable tmpVar = s.getNewTemporaryVariable(); String constName = ((ConstNode) node).getName(); s.addInstr(new LexicalSearchConstInstr(tmpVar, startingSearchScope(s), constName)); s.addInstr(BNEInstr.create(tmpVar, UndefinedValue.UNDEFINED, defLabel)); s.addInstr(new InheritanceSearchConstInstr(tmpVar, findContainerModule(s), constName, false)); // SSS FIXME: should this be the current-module var or something else?
Variable tmpVar = s.getNewTemporaryVariable(); String constName = ((ConstNode) node).getName(); s.addInstr(new LexicalSearchConstInstr(tmpVar, startingSearchScope(s), constName)); s.addInstr(BNEInstr.create(tmpVar, UndefinedValue.UNDEFINED, defLabel)); s.addInstr(new InheritanceSearchConstInstr(tmpVar, findContainerModule(s), constName, false)); // SSS FIXME: should this be the current-module var or something else?
Variable tmpVar = createTemporaryVariable(); RubySymbol constName = ((ConstNode) node).getName(); addInstr(new LexicalSearchConstInstr(tmpVar, startingSearchScope(), constName)); addInstr(BNEInstr.create(defLabel, tmpVar, UndefinedValue.UNDEFINED)); addInstr(new InheritanceSearchConstInstr(tmpVar, findContainerModule(), constName)); // SSS FIXME: should this be the current-module var or something else?
Variable tmpVar = createTemporaryVariable(); RubySymbol constName = ((ConstNode) node).getName(); addInstr(new LexicalSearchConstInstr(tmpVar, startingSearchScope(), constName)); addInstr(BNEInstr.create(defLabel, tmpVar, UndefinedValue.UNDEFINED)); addInstr(new InheritanceSearchConstInstr(tmpVar, findContainerModule(), constName)); // SSS FIXME: should this be the current-module var or something else?