|
137 | 137 | import static com.oracle.graal.python.nodes.SpecialMethodNames.T___FLOORDIV__;
|
138 | 138 | import static com.oracle.graal.python.nodes.SpecialMethodNames.T___GETATTRIBUTE__;
|
139 | 139 | import static com.oracle.graal.python.nodes.SpecialMethodNames.T___GETITEM__;
|
| 140 | +import static com.oracle.graal.python.nodes.SpecialMethodNames.T___GET__; |
140 | 141 | import static com.oracle.graal.python.nodes.SpecialMethodNames.T___HASH__;
|
141 | 142 | import static com.oracle.graal.python.nodes.SpecialMethodNames.T___IADD__;
|
142 | 143 | import static com.oracle.graal.python.nodes.SpecialMethodNames.T___IAND__;
|
|
169 | 170 | import static com.oracle.graal.python.nodes.SpecialMethodNames.T___RSHIFT__;
|
170 | 171 | import static com.oracle.graal.python.nodes.SpecialMethodNames.T___SETATTR__;
|
171 | 172 | import static com.oracle.graal.python.nodes.SpecialMethodNames.T___SETITEM__;
|
| 173 | +import static com.oracle.graal.python.nodes.SpecialMethodNames.T___SET__; |
172 | 174 | import static com.oracle.graal.python.nodes.SpecialMethodNames.T___STR__;
|
173 | 175 | import static com.oracle.graal.python.nodes.SpecialMethodNames.T___SUB__;
|
174 | 176 | import static com.oracle.graal.python.nodes.SpecialMethodNames.T___TRUEDIV__;
|
@@ -1566,6 +1568,22 @@ public Object get(@SuppressWarnings("unused") PythonManagedClass object) {
|
1566 | 1568 | }
|
1567 | 1569 | }
|
1568 | 1570 |
|
| 1571 | + @CApiBuiltin(ret = descrgetfunc, args = {PyTypeObject}, call = Ignored) |
| 1572 | + public abstract static class Py_get_PyTypeObject_tp_descr_get extends PyGetTypeSlotNode { |
| 1573 | + |
| 1574 | + Py_get_PyTypeObject_tp_descr_get() { |
| 1575 | + super(T___GET__); |
| 1576 | + } |
| 1577 | + } |
| 1578 | + |
| 1579 | + @CApiBuiltin(ret = descrsetfunc, args = {PyTypeObject}, call = Ignored) |
| 1580 | + public abstract static class Py_get_PyTypeObject_tp_descr_set extends PyGetTypeSlotNode { |
| 1581 | + |
| 1582 | + Py_get_PyTypeObject_tp_descr_set() { |
| 1583 | + super(T___SET__); |
| 1584 | + } |
| 1585 | + } |
| 1586 | + |
1569 | 1587 | @CApiBuiltin(name = "Py_get_PyTypeObject_tp_traverse", ret = traverseproc, args = {PyTypeObject}, call = Ignored)
|
1570 | 1588 | @CApiBuiltin(name = "Py_get_PyTypeObject_tp_clear", ret = inquiry, args = {PyTypeObject}, call = Ignored)
|
1571 | 1589 | public abstract static class Py_get_PyTypeObject_tp_TraverseClear extends CApiUnaryBuiltinNode {
|
@@ -1927,8 +1945,6 @@ Object doTpBases(PythonManagedClass type,
|
1927 | 1945 | @CApiBuiltin(name = "Py_get_PyTypeObject_tp_methods", ret = PyMethodDef, args = {PyTypeObject}, call = Ignored)
|
1928 | 1946 | @CApiBuiltin(name = "Py_get_PyTypeObject_tp_members", ret = PyMemberDef, args = {PyTypeObject}, call = Ignored)
|
1929 | 1947 | @CApiBuiltin(name = "Py_get_PyTypeObject_tp_getset", ret = PyGetSetDef, args = {PyTypeObject}, call = Ignored)
|
1930 |
| - @CApiBuiltin(name = "Py_get_PyTypeObject_tp_descr_get", ret = descrgetfunc, args = {PyTypeObject}, call = Ignored) |
1931 |
| - @CApiBuiltin(name = "Py_get_PyTypeObject_tp_descr_set", ret = descrsetfunc, args = {PyTypeObject}, call = Ignored) |
1932 | 1948 | @CApiBuiltin(name = "Py_get_PyTypeObject_tp_is_gc", ret = inquiry, args = {PyTypeObject}, call = Ignored)
|
1933 | 1949 | @CApiBuiltin(name = "Py_get_PyTypeObject_tp_finalize", ret = destructor, args = {PyTypeObject}, call = Ignored)
|
1934 | 1950 | @CApiBuiltin(name = "Py_get_PyTypeObject_tp_vectorcall", ret = vectorcallfunc, args = {PyTypeObject}, call = Ignored)
|
@@ -2029,9 +2045,12 @@ private Object createProcsWrapper(Object value) {
|
2029 | 2045 | return new PyProcsWrapper.RichcmpFunctionWrapper(value);
|
2030 | 2046 | case objobjargproc:
|
2031 | 2047 | case setattrofunc:
|
| 2048 | + case descrsetfunc: |
2032 | 2049 | return new PyProcsWrapper.SetAttrWrapper(value);
|
2033 | 2050 | case getattrofunc:
|
2034 | 2051 | return new PyProcsWrapper.GetAttrWrapper(value);
|
| 2052 | + case descrgetfunc: |
| 2053 | + return new PyProcsWrapper.DescrGetFunctionWrapper(value); |
2035 | 2054 | }
|
2036 | 2055 | throw CompilerDirectives.shouldNotReachHere("descriptor: " + getRetDescriptor());
|
2037 | 2056 | }
|
|
0 commit comments