зеркало из https://github.com/mozilla/pjs.git
Layout cosmetics
This commit is contained in:
Родитель
dc629e8db5
Коммит
60d7e7b824
|
@ -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();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче