[code-reflection] Integrated: A transformer of code models to models that build them.
Paul Sandoz
psandoz at openjdk.org
Thu Mar 14 17:52:02 UTC 2024
On Mon, 11 Mar 2024 22:58:22 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:
> A building code model when executed will construct the same code model it was transformed from. Such a building code model could be transformed to bytecode and stored in class files. This may be a better cross platform alternative than storing the textual form in class files (the form of which would need to be specified).
>
> The implementation is using the operation factory and type factory to construct operations and types from their more general definitions (similarly to how they are used by the parser).
>
> It would be interesting to compare the size of class files with the embedded textual form of a code model and the generated bytecode to build the code model. We could be more efficient but the implementation cost is not worth it, at least for now and would require further evaluation of that cost.
This pull request has now been integrated.
Changeset: 638ba1f7
Author: Paul Sandoz <psandoz at openjdk.org>
URL: https://git.openjdk.org/babylon/commit/638ba1f7958896fb3fc2a0e5c638f4a2317bdd3a
Stats: 515 lines in 4 files changed: 513 ins; 0 del; 2 mod
A transformer of code models to models that build them.
-------------
PR: https://git.openjdk.org/babylon/pull/37
More information about the babylon-dev
mailing list