public int getLine() { return method.getLineNumber(); } }
public int getLine() { return method.getLineNumber(); } }
public IGVDumper dumpToIGV() { if (RubyInstanceConfig.IR_DEBUG_IGV != null) { String spec = RubyInstanceConfig.IR_DEBUG_IGV; if (spec.contains(":") && spec.equals(getFileName() + ":" + getLineNumber()) || spec.equals(getFileName())) { return new IGVDumper(getFullyQualifiedName() + "; line " + getLineNumber()); } } return null; }
public IGVDumper dumpToIGV() { if (RubyInstanceConfig.IR_DEBUG_IGV != null) { String spec = RubyInstanceConfig.IR_DEBUG_IGV; if (spec.contains(":") && spec.equals(getFileName() + ":" + getLineNumber()) || spec.equals(getFileName())) { return new IGVDumper(getFullyQualifiedName() + "; line " + getLineNumber()); } } return null; }
long n = scopeThreadPollCounts.get(s).count; float p1 = ((n*1000)/globalThreadPollCount)/10.0f; String msg = i + ". " + s + " [file:" + s.getFileName() + ":" + s.getLineNumber() + "] = " + n + "; (" + p1 + "%)"; if (s instanceof IRClosure) { IRMethod m = s.getNearestMethod();
long n = scopeThreadPollCounts.get(s).count; float p1 = ((n*1000)/globalThreadPollCount)/10.0f; String msg = i + ". " + s + " [file:" + s.getFileName() + ":" + s.getLineNumber() + "] = " + n + "; (" + p1 + "%)"; if (s instanceof IRClosure) { IRMethod m = s.getNearestMethod();
@Override public String toString() { return getScopeName() + " " + getName() + "[" + getFileName() + ":" + getLineNumber() + "]"; }
@Override public String toString() { return getScopeName() + " " + getName() + "[" + getFileName() + ":" + getLineNumber() + "]"; }
public String emitScope(IRScope scope, String name, int arity) { this.currentScope = scope; name = name + scope.getLineNumber(); jvm.pushmethod(name, arity); Tuple<Instr[], Map<Integer,Label[]>> t = scope.prepareForCompilation(); Instr[] instrs = t.a; Map<Integer, Label[]> jumpTable = t.b; IRBytecodeAdapter m = jvm.method(); for (int i = 0; i < instrs.length; i++) { Instr instr = instrs[i]; if (jumpTable.get(i) != null) { for (Label label : jumpTable.get(i)) m.mark(jvm.methodData().getLabel(label)); } visit(instr); } jvm.popmethod(); return name; }
public String emitScope(IRScope scope, String name, int arity) { this.currentScope = scope; name = name + scope.getLineNumber(); jvm.pushmethod(name, arity); Tuple<Instr[], Map<Integer,Label[]>> t = scope.prepareForCompilation(); Instr[] instrs = t.a; Map<Integer, Label[]> jumpTable = t.b; IRBytecodeAdapter m = jvm.method(); for (int i = 0; i < instrs.length; i++) { Instr instr = instrs[i]; if (jumpTable.get(i) != null) { for (Label label : jumpTable.get(i)) m.mark(jvm.methodData().getLabel(label)); } visit(instr); } jvm.popmethod(); return name; }