[ruamoko] Set params in obj_msgSend_super only for v6p progs

In Ruamoko ISA progs, the param pointers point to the stack and
generally must most be manipulated by builtins, and there is no need
anyway as Ruamoko doesn't have RCALL. Fixes the mangling of .super.
This commit is contained in:
Bill Currie 2022-01-31 19:04:18 +09:00
parent cabb53e693
commit 92711e778c

View file

@ -1565,7 +1565,9 @@ rua_obj_msgSend_super (progs_t *pr)
PR_GetString (pr, object_get_class_name (probj, self)),
PR_GetString (pr, probj->selector_names[_cmd->sel_id]));
}
pr->pr_params[0] = pr->pr_real_params[0];
if (pr->progs->version < PROG_VERSION) {
pr->pr_params[0] = pr->pr_real_params[0];
}
P_POINTER (pr, 0) = super->self;
PR_CallFunction (pr, imp, pr->pr_return);
}