mirror of
https://github.com/python/cpython.git
synced 2026-06-27 19:36:07 +00:00
gh-149204: add _RROT_3 uop to reduce stack moves (GH-149205)
This commit is contained in:
parent
f4f82f0ab6
commit
0102c1d9b9
7 changed files with 1198 additions and 1057 deletions
|
|
@ -936,6 +936,13 @@ dummy_func(void) {
|
|||
assert(oparg >= 2);
|
||||
}
|
||||
|
||||
op(_RROT_3, (bottom, middle, top -- bottom, middle, top)) {
|
||||
JitOptRef temp = top;
|
||||
top = middle;
|
||||
middle = bottom;
|
||||
bottom = temp;
|
||||
}
|
||||
|
||||
op(_LOAD_ATTR_INSTANCE_VALUE, (offset/1, owner -- attr, o)) {
|
||||
attr = sym_new_not_null(ctx);
|
||||
(void)offset;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue