mirror of
https://github.com/python/cpython.git
synced 2026-04-20 02:40:59 +00:00
gh-148211: decompose _POP_TWO/_POP_CALL(_ONE/_TWO) in JIT (GH-148377)
This commit is contained in:
parent
72006a71b2
commit
9831dea3bf
9 changed files with 1027 additions and 1280 deletions
|
|
@ -381,11 +381,6 @@ dummy_func(
|
|||
PyStackRef_CLOSE_SPECIALIZED(value, _PyUnicode_ExactDealloc);
|
||||
}
|
||||
|
||||
tier2 op(_POP_TWO, (nos, tos --)) {
|
||||
PyStackRef_CLOSE(tos);
|
||||
PyStackRef_CLOSE(nos);
|
||||
}
|
||||
|
||||
op(_POP_TOP_OPARG, (args[oparg] -- )) {
|
||||
_PyStackRef_CloseStack(args, oparg);
|
||||
DEAD(args);
|
||||
|
|
@ -5922,27 +5917,6 @@ dummy_func(
|
|||
value = PyStackRef_FromPyObjectBorrow(ptr);
|
||||
}
|
||||
|
||||
tier2 op(_POP_CALL, (callable, null --)) {
|
||||
(void)null; // Silence compiler warnings about unused variables
|
||||
DEAD(null);
|
||||
PyStackRef_CLOSE(callable);
|
||||
}
|
||||
|
||||
tier2 op(_POP_CALL_ONE, (callable, null, pop --)) {
|
||||
PyStackRef_CLOSE(pop);
|
||||
(void)null; // Silence compiler warnings about unused variables
|
||||
DEAD(null);
|
||||
PyStackRef_CLOSE(callable);
|
||||
}
|
||||
|
||||
tier2 op(_POP_CALL_TWO, (callable, null, pop1, pop2 --)) {
|
||||
PyStackRef_CLOSE(pop2);
|
||||
PyStackRef_CLOSE(pop1);
|
||||
(void)null; // Silence compiler warnings about unused variables
|
||||
DEAD(null);
|
||||
PyStackRef_CLOSE(callable);
|
||||
}
|
||||
|
||||
tier2 op(_SHUFFLE_3_LOAD_CONST_INLINE_BORROW, (ptr/4, callable, null, arg -- res, a, c)) {
|
||||
res = PyStackRef_FromPyObjectBorrow(ptr);
|
||||
a = arg;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue