mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
GH-100982: Add COMPARE_AND_BRANCH instruction (GH-100983)
This commit is contained in:
parent
b1a74a182d
commit
7b14c2ef19
17 changed files with 273 additions and 245 deletions
|
|
@ -357,6 +357,14 @@ mark_stacks(PyCodeObject *code_obj, int len)
|
|||
assert(stacks[j] == UNINITIALIZED || stacks[j] == next_stack);
|
||||
stacks[j] = next_stack;
|
||||
break;
|
||||
case COMPARE_AND_BRANCH:
|
||||
next_stack = pop_value(pop_value(next_stack));
|
||||
i++;
|
||||
j = get_arg(code, i) + i + 1;
|
||||
assert(j < len);
|
||||
assert(stacks[j] == UNINITIALIZED || stacks[j] == next_stack);
|
||||
stacks[j] = next_stack;
|
||||
break;
|
||||
case GET_ITER:
|
||||
case GET_AITER:
|
||||
next_stack = push_value(pop_value(next_stack), Iterator);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue