diojit
diojit copied to clipboard
specialized object initialization
dynjit can only specialize user defined functions and builtin functions, so that when constructing class objects, __init__ is invoked in the fixed pure python way and won't use the specialized code.
In order to solve this, after some investigation, it is now deemed safe to use
o = _PyObject_New(typeobj)
specialized_init(o, args...)
···
It's simple in current design.