-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Revert to the Scala 2 encoding for trait initialization and super calls #8652
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
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
90070e2
First pass of reverting to the trait encoding of Scala 2.
sjrd d495ee0
Move the trait super call encoding logic to the back-end.
sjrd 11de1d3
Do not store to non-existent fields in trait setters.
sjrd de5df36
Fix trait setter to getter lookup.
sjrd ce4f7ba
Use a fast path when looking up trait setter getters.
sjrd 3bd5da4
Mark dropped private vars without rhs as indeed dropped.
sjrd e12f1f9
Fix trait encoding for `private var`s in traits.
sjrd d682455
Adapt one check file for new emitted static methods.
sjrd d7bea54
Modules in traits always get an outer pointer.
sjrd 84b230a
Make module classes in traits non-private in Mixin.
sjrd 288fa1d
Adapt the expected result of the jUnitForwarders test.
sjrd 2eb743c
Restore AugmentScala2Traits, but limit it to super accessors.
sjrd 3f99915
Reset the `inline` flag for accessors in traits at Mixin.
sjrd d990e64
Cleanup, including removing dead code.
sjrd 29a561b
Adapt the expect result in ByteCodeTests.
sjrd cb84d04
Break cycles in transformSym.
sjrd 80db021
Break more cycles in transformSym.
sjrd a771574
Ignore bridges when looking for the getter of a trait setter.
sjrd 1128a98
Fix handling of `final val`s after rebase on top of #9261.
sjrd 44de114
Support param accessors that override concrete trait vals.
sjrd e88c5b7
Avoid round-trip through sourceModule in scalacLinkedClass.
sjrd 64d3b9a
Improve comments for the new trait encoding.
sjrd a754f24
Do a bit less work in Mixin.transformSym.
sjrd 77e2925
Integrate the remaining job of AugmentScala2Traits into Scala2Unpickler.
sjrd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Break cycles in transformSym.
- Loading branch information
commit cb84d0443071eaa6b2f621cda07f87816c844b40
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The documentation comment above Mixin describes the stuff that transformSym does and probably neeeds to be updated since it's doing more things now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed. I've updated the big comment.