This commit is contained in:
igor%mir2.org 2005-07-03 19:18:39 +00:00
Родитель 48edbc05a2
Коммит 253fd51d85
3 изменённых файлов: 6 добавлений и 6 удалений

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

@ -933,12 +933,12 @@ public class Interpreter
addIndexOp(type, argCount);
}
// adjust stack
if (type == Token.NEW || type == Token.REF_CALL) {
if (type == Token.NEW) {
// new: f, args -> result
// ref_call: f, thisObj, args -> ref ref_target
stackChange(-argCount);
} else {
// f, thisObj, args -> result
// call: f, thisObj, args -> result
// ref_call: f, thisObj, args -> ref
stackChange(-1 - argCount);
}
if (argCount > itsData.itsMaxCalleeArgs) {

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

@ -2016,8 +2016,8 @@ public class ScriptRuntime {
* can be GC-reachable after this method returns. If this is necessary,
* store args.clone(), not args array itself.
*/
public static Object callRef(Function function, Scriptable thisObj,
Object[] args, Context cx, Scriptable scope)
public static Ref callRef(Function function, Scriptable thisObj,
Object[] args, Context cx, Scriptable scope)
{
if (function instanceof BaseFunction) {
BaseFunction bf = (BaseFunction)function;

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

@ -1780,7 +1780,7 @@ class BodyCodegen
+"[Ljava/lang/Object;"
+"Lorg/mozilla/javascript/Context;"
+"Lorg/mozilla/javascript/Scriptable;"
+")Ljava/lang/Object;");
+")Lorg/mozilla/javascript/Ref;");
break;
case Token.NUMBER: