Reuse host descriptors when possible
For constructor descriptors (which have _hnf
for the node entry point), we could theoretically reuse the descriptors in the host, if we make sure the format is exactly the same. In practice, this currently fails, probably because of NEW_DESCRIPTORS
in the native code generator (the interpreter apparently uses "old descriptors" - whatever that may be). However, node copying, in particular from host to interpreter (#40 (closed)) becomes much more elegant if this is possible, so it may be worth implementing the new descriptors in the interpreter.