Add support for LexicalScopes, Variables, and SourceCoordinates #32
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is adding infrastructure to enable inlining on the bytecode level.
It introduces the notion of LexicalScopes, Variables, and SourceCoordinates.
LexicalScopes encode the info needed about the program structure/relationship between methods and blocks.
Variables encode the location of arguments and locals, in terms of SourceCoordinates.
This PR also reduces the number of symbols that need to be created by relying on std::strings for aspects that won't be exposed to the language level.
There's also a bit extra support here for debugging the GCs and interactive debugging, for instance printing/dumping of methods.
This is split out as a PR to be able to assess the performance impact.