mirror of
https://github.com/python/cpython.git
synced 2025-08-28 12:45:07 +00:00
gh-113710: Add types to the interpreter DSL (#113711)
Co-authored-by: Jules <57632293+JuliaPoo@users.noreply.github.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
This commit is contained in:
parent
79970792fd
commit
ac92527c08
14 changed files with 227 additions and 138 deletions
10
Python/executor_cases.c.h
generated
10
Python/executor_cases.c.h
generated
|
@ -3381,16 +3381,6 @@
|
|||
break;
|
||||
}
|
||||
|
||||
case _INSERT: {
|
||||
PyObject *top;
|
||||
oparg = CURRENT_OPARG();
|
||||
top = stack_pointer[-1];
|
||||
// Inserts TOS at position specified by oparg;
|
||||
memmove(&stack_pointer[-1 - oparg], &stack_pointer[-oparg], oparg * sizeof(stack_pointer[0]));
|
||||
stack_pointer[-1 - oparg] = top;
|
||||
break;
|
||||
}
|
||||
|
||||
case _CHECK_VALIDITY: {
|
||||
TIER_TWO_ONLY
|
||||
if (!current_executor->vm_data.valid) goto deoptimize;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue