Skip to content

Rework inlining logic #463

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Feb 6, 2019
Merged

Rework inlining logic #463

merged 9 commits into from
Feb 6, 2019

Conversation

dcodeIO
Copy link
Member

@dcodeIO dcodeIO commented Feb 6, 2019

As an alternative to #460 this PR makes inlining a first class citizen by integrating it into flows, and in turn makes flows the primary concept of holding compilation state. As a result we can differentiate between the function we are generating and the actual function being compiled inline at any time, allowing us to inline constructors, super calls and whatnot more easily.

In general it appears that this is the way to go since we are heavily relying on inlining, for example when it comes to internal macros, and we'd like to have as much control over it as possible.

@dcodeIO
Copy link
Member Author

dcodeIO commented Feb 6, 2019

With the wrapping fixed, this should be good to merge now, unless there are other comments :)

@dcodeIO dcodeIO merged commit 831054d into master Feb 6, 2019
@dcodeIO dcodeIO deleted the rework-inlining branch March 7, 2019 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants