public IRMethod(IRManager manager, IRScope lexicalParent, String name, boolean isInstanceMethod, int lineNumber, StaticScope staticScope) { super(manager, lexicalParent, name, lexicalParent.getFileName(), lineNumber, staticScope); this.isInstanceMethod = isInstanceMethod; this.callArgs = new ArrayList<Operand>(); this.argDesc = new ArrayList<String[]>(); if (!getManager().isDryRun()) { if (staticScope != null) ((IRStaticScope)staticScope).setIRScope(this); } }
public IRMethod(IRManager manager, IRScope lexicalParent, String name, boolean isInstanceMethod, int lineNumber, StaticScope staticScope) { super(manager, lexicalParent, name, lexicalParent.getFileName(), lineNumber, staticScope); this.isInstanceMethod = isInstanceMethod; this.callArgs = new ArrayList<Operand>(); this.argDesc = new ArrayList<String[]>(); if (!getManager().isDryRun()) { if (staticScope != null) ((IRStaticScope)staticScope).setIRScope(this); } }
public IRMethod(IRManager manager, IRScope lexicalParent, DefNode defn, RubySymbol name, boolean isInstanceMethod, int lineNumber, StaticScope staticScope, boolean needsCodeCoverage) { super(manager, lexicalParent, name, lineNumber, staticScope); this.defn = defn; this.isInstanceMethod = isInstanceMethod; if (needsCodeCoverage) getFlags().add(IRFlags.CODE_COVERAGE); if (!getManager().isDryRun() && staticScope != null) { staticScope.setIRScope(this); } }
public IRMethod(IRManager manager, IRScope lexicalParent, DefNode defn, RubySymbol name, boolean isInstanceMethod, int lineNumber, StaticScope staticScope, boolean needsCodeCoverage) { super(manager, lexicalParent, name, lineNumber, staticScope); this.defn = defn; this.isInstanceMethod = isInstanceMethod; if (needsCodeCoverage) getFlags().add(IRFlags.CODE_COVERAGE); if (!getManager().isDryRun() && staticScope != null) { staticScope.setIRScope(this); } }
public synchronized InterpreterContext lazilyAcquireInterpreterContext() { if (!hasBeenBuilt()) { IRBuilder.topIRBuilder(getManager(), this).defineMethodInner(defn, getLexicalParent(), getFlags().contains(IRFlags.CODE_COVERAGE)); defn = null; } return interpreterContext; }
public synchronized InterpreterContext lazilyAcquireInterpreterContext() { if (!hasBeenBuilt()) { IRBuilder.topIRBuilder(getManager(), this).defineMethodInner(defn, getLexicalParent(), getFlags().contains(IRFlags.CODE_COVERAGE)); defn = null; } return interpreterContext; }