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.
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
Pack bits in SourceOrdinaryMethodSymbol into an existing bitflag structure we have for all source methods #68158
Pack bits in SourceOrdinaryMethodSymbol into an existing bitflag structure we have for all source methods #68158
Changes from 30 commits
3e67b7c
ce343a6
1319147
eee77ee
d2a9c02
824b5b1
1932ed3
9f7d914
a0295b7
27e28b7
54c18cf
d3a9476
c74ca1a
e73807b
2ad5f4c
5eb5236
08eee6e
5640b00
0e4f6fb
d02d68e
5d757af
94a74c9
fb5eaa9
48a1a41
d4bfe7e
43aab35
efe37fc
2e34e56
ff7192b
a27e807
c11f580
aa120d2
31a6277
fc9d571
77474b1
d3b2b40
b76e78e
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
we could consider moving this bit down as well. That would save another unnecessary 32bits in constructors. however, constructors seem to be orders of magnitude less common than methods, so it's not high on my priority list.
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.
different code used hasBody to mean different things. Some code uses it to mean "has a block body" other code uses it to mean "has a block or expression body". I've introduced a helper and have made this consistent. Now it's "hasBlockBody" and "hasAnyBody" to make it clear across all symbols.
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.
this was done as it actually caught bugs as i was doing this work.
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.
this is another nice 32bits of savings.
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.
derived types will pass this in when calling MakeFlags.