Valhalla EG minutes 6/21/17
john.r.rose at oracle.com
Wed Jul 5 18:43:51 UTC 2017
On Jul 5, 2017, at 11:39 AM, Paul Sandoz <paul.sandoz at oracle.com> wrote:
> I was unsure if we require a new method L.defineAnonClass or could leverage the existing L.defineClass. IIUC for expediency the current hooks in the VM lean towards anon classes, since there is already code to defer to the host class, whereas the general defineClass case will likely require more work, although i can potentially see some short cuts if we focus on VCC/DVT.
Good point. Yes, that part isn't designed yet. It may manifest as an extra argument or two to the L.dC.
At least two degrees of freedom apply there: 1. suppressing the name (no system dictionary update),
2. providing some sort of "user data" to bind to the class (can be a single ref., replaces CP patching).
For MVT we can just generate a throwaway name, like DVT.getName()+":29348".
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the valhalla-spec-experts