mirror of
https://github.com/python/cpython.git
synced 2025-12-31 12:33:28 +00:00
GH-135379: Top of stack caching for the JIT. (GH-135465)
Uses three registers to cache values at the top of the evaluation stack This significantly reduces memory traffic for smaller, more common uops.
This commit is contained in:
parent
80c9756e3f
commit
469f191a85
30 changed files with 16865 additions and 1357 deletions
|
|
@ -585,9 +585,9 @@ dummy_func(void) {
|
|||
}
|
||||
}
|
||||
|
||||
op(_LOAD_ATTR, (owner -- attr[1], self_or_null[oparg&1])) {
|
||||
op(_LOAD_ATTR, (owner -- attr, self_or_null[oparg&1])) {
|
||||
(void)owner;
|
||||
*attr = sym_new_not_null(ctx);
|
||||
attr = sym_new_not_null(ctx);
|
||||
if (oparg & 1) {
|
||||
self_or_null[0] = sym_new_unknown(ctx);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue