176177178179180181182
} public void fillInStackTrace(int index, Module module, Any instance, Function method) { _stacktrace.setSlice(0, 0, new AnyStackTraceElement(module, instance, method, 0)); }
182183184185186187188
} public void fillInStackTrace(Module module, int line, Any instance, Function method) { _stacktrace.setSlice(0, 0, new AnyStackTraceElement(module, instance, method, line)); }
188189190191192193194
} public void fillInStackTrace(StackFrame frame) { _stacktrace.setSlice(0, 0, new AnyStackTraceElement(frame)); }
219220221222223224225226227228
if (frame >= 0 && frame < context.size()) { stackframe = context.peek(frame); } } if (stackframe != null) { return new AnyStackTraceElement(stackframe); } else { return Any.UNDEFINED; } }
323324325326327328329330331
{ int n = size(); Any[] trace = new Any[n]; int c = 0; for(int i = n-1; i >= 0; i--) { trace[c++] = new AnyStackTraceElement(peek(i)); } return new AnyList(trace); }