@Override public Instr cloneForInlining(InlinerInfo ii) { return new InheritanceSearchConstInstr(ii.getRenamedVariable(result), currentModule.cloneForInlining(ii), constName, noPrivateConsts); }
@Override public Instr cloneForInlining(InlinerInfo ii) { return new InheritanceSearchConstInstr(ii.getRenamedVariable(result), currentModule.cloneForInlining(ii), constName, noPrivateConsts); }
public static InheritanceSearchConstInstr decode(IRReaderDecoder d) { return new InheritanceSearchConstInstr(d.decodeVariable(), d.decodeOperand(), d.decodeSymbol()); }
public static InheritanceSearchConstInstr decode(IRReaderDecoder d) { return new InheritanceSearchConstInstr(d.decodeVariable(), d.decodeOperand(), d.decodeSymbol()); }
@Override public Instr clone(CloneInfo ii) { return new InheritanceSearchConstInstr(ii.getRenamedVariable(result), getCurrentModule().cloneForInlining(ii), getName()); }
@Override public Instr clone(CloneInfo ii) { return new InheritanceSearchConstInstr(ii.getRenamedVariable(result), getCurrentModule().cloneForInlining(ii), getName()); }
private void genInheritanceSearchInstrs(IRScope s, Operand startingModule, Variable constVal, Label foundLabel, boolean noPrivateConstants, String name) { s.addInstr(new InheritanceSearchConstInstr(constVal, startingModule, name, noPrivateConstants)); s.addInstr(BNEInstr.create(constVal, UndefinedValue.UNDEFINED, foundLabel)); s.addInstr(new ConstMissingInstr(constVal, startingModule, name)); s.addInstr(new LabelInstr(foundLabel)); }
private void genInheritanceSearchInstrs(IRScope s, Operand startingModule, Variable constVal, Label foundLabel, boolean noPrivateConstants, String name) { s.addInstr(new InheritanceSearchConstInstr(constVal, startingModule, name, noPrivateConstants)); s.addInstr(BNEInstr.create(constVal, UndefinedValue.UNDEFINED, foundLabel)); s.addInstr(new ConstMissingInstr(constVal, startingModule, name)); s.addInstr(new LabelInstr(foundLabel)); }
s.addInstr(new InheritanceSearchConstInstr(v, s.getCurrentModuleVariable(), "StandardError", false)); outputExceptionCheck(s, v, exc, caughtLabel);
s.addInstr(new InheritanceSearchConstInstr(v, s.getCurrentModuleVariable(), "StandardError", false)); outputExceptionCheck(s, v, exc, caughtLabel);
m.addInstr(new InheritanceSearchConstInstr(excType, new ObjectClass(), "Exception", false)); outputExceptionCheck(m, excType, exc, caughtLabel);
m.addInstr(new InheritanceSearchConstInstr(excType, new ObjectClass(), "Exception", false)); outputExceptionCheck(m, excType, exc, caughtLabel);
addInstr(new InheritanceSearchConstInstr(excType, new ObjectClass(), manager.runtime.newSymbol(CommonByteLists.EXCEPTION))); outputExceptionCheck(excType, exc, caughtLabel);
addInstr(new InheritanceSearchConstInstr(excType, new ObjectClass(), manager.runtime.newSymbol(CommonByteLists.EXCEPTION))); outputExceptionCheck(excType, exc, caughtLabel);
addInstr(new InheritanceSearchConstInstr(excType, new ObjectClass(), manager.runtime.newSymbol(CommonByteLists.NOT_IMPLEMENTED_ERROR))); Variable exc = addResultInstr(CallInstr.create(scope, createTemporaryVariable(), manager.runtime.newSymbol(CommonByteLists.NEW),
addInstr(new InheritanceSearchConstInstr(excType, new ObjectClass(), manager.runtime.newSymbol(CommonByteLists.NOT_IMPLEMENTED_ERROR))); Variable exc = addResultInstr(CallInstr.create(scope, createTemporaryVariable(), manager.runtime.newSymbol(CommonByteLists.NEW),
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? s.addInstr(BNEInstr.create(tmpVar, UndefinedValue.UNDEFINED, defLabel)); s.addInstr(new CopyInstr(tmpVar, manager.getNil()));
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? s.addInstr(BNEInstr.create(tmpVar, UndefinedValue.UNDEFINED, defLabel)); s.addInstr(new CopyInstr(tmpVar, manager.getNil()));
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? addInstr(BNEInstr.create(defLabel, tmpVar, UndefinedValue.UNDEFINED)); addInstr(new CopyInstr(tmpVar, manager.getNil()));
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? addInstr(BNEInstr.create(defLabel, tmpVar, UndefinedValue.UNDEFINED)); addInstr(new CopyInstr(tmpVar, manager.getNil()));