From: megacz Date: Fri, 30 Jan 2004 07:01:19 +0000 (+0000) Subject: 2003/06/16 08:47:28 X-Git-Tag: RC3~910 X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=commitdiff_plain;h=887504129174c41dc28c47663abf5865e64e34cd 2003/06/16 08:47:28 darcs-hash:20040130070119-2ba56-644e0b2be514b1c699e5e2cf64228c83a7f25cbd.gz --- diff --git a/src/org/xwt/js/CompiledFunctionImpl.java b/src/org/xwt/js/CompiledFunctionImpl.java index 0755251..416cd94 100644 --- a/src/org/xwt/js/CompiledFunctionImpl.java +++ b/src/org/xwt/js/CompiledFunctionImpl.java @@ -4,6 +4,7 @@ package org.xwt.js; import org.xwt.util.*; import java.io.*; +// FIXME: could use some cleaning up /** a JavaScript function, compiled into bytecode */ class CompiledFunctionImpl extends JS.Callable implements ByteCodes, Tokens { @@ -13,10 +14,6 @@ class CompiledFunctionImpl extends JS.Callable implements ByteCodes, Tokens { private String sourceName; public String getSourceName() throws JS.Exn { return sourceName; } - /** the first line of this function */ - private int firstLine; - public int getFirstLine() throws JS.Exn { return firstLine; } - /** the line numbers */ private int[] line = new int[10]; @@ -104,9 +101,11 @@ class CompiledFunctionImpl extends JS.Callable implements ByteCodes, Tokens { int pc = 0; void eval(JS.Scope s) { - final Vec t = JS.Thread.fromJavaThread(java.lang.Thread.currentThread()).stack; + final JS.Thread cx = JS.Thread.fromJavaThread(java.lang.Thread.currentThread()); + final Vec t = cx.stack; OUTER: for(pc=0; pc + +

+The XWT JavaScript Engine. See org.xwt.js.JS for the public face of the API. +

+ + \ No newline at end of file