Skip to content

Commit 2a92ba9

Browse files
Pop two load const inline borrow
1 parent ebc24d5 commit 2a92ba9

File tree

7 files changed

+154260
-31
lines changed

7 files changed

+154260
-31
lines changed

Include/internal/pycore_uop_ids.h

Lines changed: 30 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/internal/pycore_uop_metadata.h

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/bytecodes.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5038,6 +5038,12 @@ dummy_func(
50385038
value = PyStackRef_FromPyObjectImmortal(ptr);
50395039
}
50405040

5041+
tier2 pure op (_POP_TWO_LOAD_CONST_INLINE_BORROW, (ptr/4, pop1, pop2 -- value)) {
5042+
PyStackRef_CLOSE(pop2);
5043+
PyStackRef_CLOSE(pop1);
5044+
value = PyStackRef_FromPyObjectImmortal(ptr);
5045+
}
5046+
50415047
tier2 op(_CHECK_FUNCTION, (func_version/2 -- )) {
50425048
assert(PyStackRef_FunctionCheck(frame->f_funcobj));
50435049
PyFunctionObject *func = (PyFunctionObject *)PyStackRef_AsPyObjectBorrow(frame->f_funcobj);

0 commit comments

Comments
 (0)