diff options
Diffstat (limited to 'Objects/frameobject.c')
-rw-r--r-- | Objects/frameobject.c | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/Objects/frameobject.c b/Objects/frameobject.c index 44b3a2a..15ec4b7 100644 --- a/Objects/frameobject.c +++ b/Objects/frameobject.c @@ -1261,18 +1261,27 @@ mark_stacks(PyCodeObject *code_obj, int len) stacks[next_i] = next_stack; break; case LOAD_GLOBAL: + { + int j = oparg; next_stack = push_value(next_stack, Object); + if (j & 1) { + next_stack = push_value(next_stack, Null); + } stacks[next_i] = next_stack; break; + } case LOAD_ATTR: + { assert(top_of_stack(next_stack) == Object); + int j = oparg; + if (j & 1) { + next_stack = pop_value(next_stack); + next_stack = push_value(next_stack, Object); + next_stack = push_value(next_stack, Null); + } stacks[next_i] = next_stack; break; - case LOAD_METHOD: - assert(top_of_stack(next_stack) == Object); - next_stack = push_value(next_stack, Null); - stacks[next_i] = next_stack; - break; + } case SWAP: { int n = oparg; |