Skip to content

Commit 3503ab8

Browse files
committed
Convert in_memory from boolean to stack offset
1 parent 5d6a9f8 commit 3503ab8

File tree

7 files changed

+964
-874
lines changed

7 files changed

+964
-874
lines changed

Python/bytecodes.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3986,10 +3986,10 @@ dummy_func(
39863986
assert(_PyFrame_GetBytecode(shim)[1].op.code == RETURN_VALUE);
39873987
/* Push self onto stack of shim */
39883988
shim->localsplus[0] = PyStackRef_DUP(self[0]);
3989-
DEAD(init);
3990-
DEAD(self);
39913989
_PyInterpreterFrame *temp = _PyEvalFramePushAndInit(
39923990
tstate, init[0], NULL, args-1, oparg+1, NULL, shim);
3991+
DEAD(init);
3992+
DEAD(self);
39933993
DEAD(args);
39943994
SYNC_SP();
39953995
if (temp == NULL) {
@@ -4192,9 +4192,9 @@ dummy_func(
41924192
res = PyStackRef_FromPyObjectSteal(res_o);
41934193
}
41944194

4195-
inst(CALL_ISINSTANCE, (unused/1, unused/2, callable[1], self_or_null[1], args[oparg] -- res)) {
4195+
inst(CALL_ISINSTANCE, (unused/1, unused/2, callable, self_or_null[1], args[oparg] -- res)) {
41964196
/* isinstance(o, o2) */
4197-
PyObject *callable_o = PyStackRef_AsPyObjectBorrow(callable[0]);
4197+
PyObject *callable_o = PyStackRef_AsPyObjectBorrow(callable);
41984198

41994199
int total_args = oparg;
42004200
_PyStackRef *arguments = args;

0 commit comments

Comments
 (0)