X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fjs%2FInterpreter.java;fp=src%2Forg%2Fxwt%2Fjs%2FInterpreter.java;h=1b679cafa95d839d7ca07b48fd60ff99349cbc63;hp=b5becd03287aaae0e251f84adfed5ae96930c688;hb=3591b88b94a6bb378af3d4abe6eb5233ce583104;hpb=de378041d5ca2aca1a2b5a31ef15ae90a86c977f diff --git a/src/org/xwt/js/Interpreter.java b/src/org/ibex/js/Interpreter.java similarity index 99% rename from src/org/xwt/js/Interpreter.java rename to src/org/ibex/js/Interpreter.java index b5becd0..1b679ca 100644 --- a/src/org/xwt/js/Interpreter.java +++ b/src/org/ibex/js/Interpreter.java @@ -1,9 +1,8 @@ // Copyright 2004 Adam Megacz, see the COPYING file for licensing [GPL] -package org.xwt.js; +package org.ibex.js; -import org.xwt.util.*; +import org.ibex.util.*; import java.util.*; -import java.io.*; /** Encapsulates a single JS interpreter (ie call stack) */ class Interpreter implements ByteCodes, Tokens { @@ -94,7 +93,7 @@ class Interpreter implements ByteCodes, Tokens { case DUP: stack.push(stack.peek()); break; case NEWSCOPE: scope = new JSScope(scope); break; case OLDSCOPE: scope = scope.getParentScope(); break; - case ASSERT: if (!JS.toBoolean(stack.pop())) throw je("xwt.assertion.failed" /*FEATURE: line number*/); break; + case ASSERT: if (!JS.toBoolean(stack.pop())) throw je("ibex.assertion.failed" /*FEATURE: line number*/); break; case BITNOT: stack.push(JS.N(~JS.toLong(stack.pop()))); break; case BANG: stack.push(JS.B(!JS.toBoolean(stack.pop()))); break; case NEWFUNCTION: stack.push(((JSFunction)arg)._cloneWithNewParentScope(scope)); break;