-
Notifications
You must be signed in to change notification settings - Fork 19
majit, jit-trace: the Option sum shell, a neg_inner descent, and named-struct constructor lowering #1518
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
majit, jit-trace: the Option sum shell, a neg_inner descent, and named-struct constructor lowering #1518
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
7cc3a4d
majit: give Option the explicit sum shell Result already had
youknowone abc2f03
jit-trace: descend neg_inner for unary negation on an exact int or long
youknowone 4090d3e
docs: re-derive the fold-row counts, and separate descents from folds
youknowone 74c8d06
jit-trace: record what the neg descent measured, not what it was expe…
youknowone 42b9b85
majit-translate: lower a niladic named-struct transparent ctor to New
youknowone 42a87f4
docs: re-derive 3.8's counts against the rebased tree
youknowone 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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
When a non-core enum is declared under a path ending in
option::Option::Some(for example,mycrate::option::Option::Some), this suffix check classifies it as the synthetic coreOptionshell even thoughfront::mironly assigns that shell tocore::option::Option. Sincebh_size_spec_from_callcontrolis also used by field descriptor lookup, the user enum's payload is consequently described at offset 8 with an injected discriminant instead of using its registered native layout, so reads and writes can access the wrong bytes. Use the same fully anchored core-path predicate asoption_variant_ctor_tagrather than anends_withmatch.Useful? React with 👍 / 👎.