This commit is contained in:
igor%mir2.org 2003-05-21 11:48:32 +00:00
Родитель dc629e8db5
Коммит 60d7e7b824
1 изменённых файлов: 6 добавлений и 5 удалений

Просмотреть файл

@ -60,6 +60,7 @@ public class Interpreter {
// Last icode // Last icode
END_ICODE = TokenStream.LAST_TOKEN + 6; END_ICODE = TokenStream.LAST_TOKEN + 6;
public IRFactory createIRFactory(Context cx, TokenStream ts) public IRFactory createIRFactory(Context cx, TokenStream ts)
{ {
return new IRFactory(this, ts); return new IRFactory(this, ts);
@ -70,16 +71,16 @@ public class Interpreter {
return new FunctionNode(name); return new FunctionNode(name);
} }
public ScriptOrFnNode public ScriptOrFnNode transform(Context cx, IRFactory irFactory,
transform(Context cx, IRFactory irFactory, ScriptOrFnNode tree) ScriptOrFnNode tree)
{ {
(new NodeTransformer(irFactory)).transform(tree); (new NodeTransformer(irFactory)).transform(tree);
return tree; return tree;
} }
public Object public Object compile(Context cx, Scriptable scope, ScriptOrFnNode tree,
compile(Context cx, Scriptable scope, ScriptOrFnNode tree, SecurityController securityController,
SecurityController securityController, Object securityDomain) Object securityDomain)
{ {
scriptOrFn = tree; scriptOrFn = tree;
version = cx.getLanguageVersion(); version = cx.getLanguageVersion();