public Instr cloneForInlining(InlinerInfo ii) { return new SearchConstInstr(ii.getRenamedVariable(result), constName, startingScope.cloneForInlining(ii), noPrivateConsts); }
public Instr cloneForInlining(InlinerInfo ii) { return new SearchConstInstr(ii.getRenamedVariable(result), constName, startingScope.cloneForInlining(ii), noPrivateConsts); }
@Override public Instr clone(CloneInfo ii) { return new SearchConstInstr(ii.getRenamedVariable(result), constantName, getStartingScope().cloneForInlining(ii), noPrivateConsts); }
@Override public Instr clone(CloneInfo ii) { return new SearchConstInstr(ii.getRenamedVariable(result), constantName, getStartingScope().cloneForInlining(ii), noPrivateConsts); }
private Operand searchConst(RubySymbol name) { return addResultInstr(new SearchConstInstr(createTemporaryVariable(), name, startingSearchScope(), false)); }
private Operand searchConst(RubySymbol name) { return addResultInstr(new SearchConstInstr(createTemporaryVariable(), name, startingSearchScope(), false)); }
private Operand searchConst(IRScope s, IRScope startingScope, String name) { boolean noPrivateConstants = (s != startingScope); Variable v = s.getNewTemporaryVariable(); /** * SSS FIXME: Go back to a single instruction for now. * * Do not split search into lexical-search, inheritance-search, and const-missing instrs. * Label foundLabel = s.getNewLabel(); s.addInstr(new LexicalSearchConstInstr(v, startingSearchScope(startingScope), name)); s.addInstr(BNEInstr.create(v, UndefinedValue.UNDEFINED, foundLabel)); genInheritanceSearchInstrs(s, findContainerModule(startingScope), v, foundLabel, noPrivateConstants, name); **/ s.addInstr(new SearchConstInstr(v, name, startingSearchScope(startingScope), noPrivateConstants)); return v; }
private Operand searchConst(IRScope s, IRScope startingScope, String name) { boolean noPrivateConstants = (s != startingScope); Variable v = s.getNewTemporaryVariable(); /** * SSS FIXME: Go back to a single instruction for now. * * Do not split search into lexical-search, inheritance-search, and const-missing instrs. * Label foundLabel = s.getNewLabel(); s.addInstr(new LexicalSearchConstInstr(v, startingSearchScope(startingScope), name)); s.addInstr(BNEInstr.create(v, UndefinedValue.UNDEFINED, foundLabel)); genInheritanceSearchInstrs(s, findContainerModule(startingScope), v, foundLabel, noPrivateConstants, name); **/ s.addInstr(new SearchConstInstr(v, name, startingSearchScope(startingScope), noPrivateConstants)); return v; }
public static SearchConstInstr decode(IRReaderDecoder d) { return new SearchConstInstr(d.decodeVariable(), d.decodeSymbol(), d.decodeOperand(), d.decodeBoolean()); }
public static SearchConstInstr decode(IRReaderDecoder d) { return new SearchConstInstr(d.decodeVariable(), d.decodeSymbol(), d.decodeOperand(), d.decodeBoolean()); }