Antonio Cuni pushed to branch branch/hpy at PyPy / pypy


Commits:
54c265b9 by Antonio Cuni at 2020-10-03T00:22:08+02:00
Refactor interp_slots.py

The autogen approach works for simple cases, but it quickly shows its limit
for more complex ones. The problem is that even in CPython the correspondance
between the various *func typedef and wrap_* functions is strong but not
complete.

So, it seems better and easier to follow CPython as close as possible: instead
of autogenerating the W_SlotWrapper from the HPyFunc_* typedef, we write them
manually, following the very same name convention as CPython.

In this commit, kill autogen_interp_slots and move/rename the exiting wrappers
inside interp_slot.py

--HG--
branch : hpy

- - - - -
2e44346b by Antonio Cuni at 2020-10-03T00:28:33+02:00
rename this to follow more closely CPython's naming convention

--HG--
branch : hpy

- - - - -
2d3c084c by Antonio Cuni at 2020-10-03T00:33:42+02:00
kill autogen_interp_slots_py: at the moment we don't need our own autogen 
script, but we keep it as an example in case we will need it later

--HG--
branch : hpy

- - - - -
0083f318 by Antonio Cuni at 2020-10-03T00:46:26+02:00
implement nb_bool; test_nb_ops_type_conversion passes

--HG--
branch : hpy

- - - - -


3 changed files:

- − pypy/module/_hpy_universal/autogen_interp_slots.py
- pypy/module/_hpy_universal/interp_slot.py
- pypy/module/_hpy_universal/tools/autogen.py


View it on GitLab: 
https://foss.heptapod.net/pypy/pypy/-/compare/beddbe698187d6a9cda0c373fa89bd7de195fa0f...0083f3181f4e4f1b4ca04f0bdbdc2bacd323dca5

-- 
View it on Heptapod: 
https://foss.heptapod.net/pypy/pypy/-/compare/beddbe698187d6a9cda0c373fa89bd7de195fa0f...0083f3181f4e4f1b4ca04f0bdbdc2bacd323dca5
You're receiving this email because of your account on foss.heptapod.net.


_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to