diff options
author | Ken Jin <kenjin@python.org> | 2023-08-15 18:04:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-15 18:04:17 (GMT) |
commit | e28b0dc86dd1d058788b9e1eaa825cdfc2d97067 (patch) | |
tree | 0a1cb8afa1d723ce2dab38c011f75a58014a41ef /Python/executor_cases.c.h | |
parent | 34e1917912f05e3ab5c9b1e39f678bd36388499e (diff) | |
download | cpython-e28b0dc86dd1d058788b9e1eaa825cdfc2d97067.zip cpython-e28b0dc86dd1d058788b9e1eaa825cdfc2d97067.tar.gz cpython-e28b0dc86dd1d058788b9e1eaa825cdfc2d97067.tar.bz2 |
gh-107557: Setup abstract interpretation (#107847)
Co-authored-by: Guido van Rossum <gvanrossum@users.noreply.github.com>
Co-authored-by: Jules <57632293+juliapoo@users.noreply.github.com>
Diffstat (limited to 'Python/executor_cases.c.h')
-rw-r--r-- | Python/executor_cases.c.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h index 5e3c84b..85d2777 100644 --- a/Python/executor_cases.c.h +++ b/Python/executor_cases.c.h @@ -2733,3 +2733,12 @@ return frame; break; } + + case INSERT: { + PyObject *top; + 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; + } |