зеркало из https://github.com/mozilla/gecko-dev.git
*** empty log message ***
This commit is contained in:
Родитель
48edbc05a2
Коммит
253fd51d85
|
@ -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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче