-
Notifications
You must be signed in to change notification settings - Fork 415
Unify instanceof with TypeTag — JumpTable dispatch, fused IsType, InstanceOfRemoved diagnostic
#3340
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
Unify instanceof with TypeTag — JumpTable dispatch, fused IsType, InstanceOfRemoved diagnostic
#3340
Changes from 6 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
dc4a387
feat(mir): activate SwitchKind::TypeTag for class-type match arms
antoniosarosi 0f43b6e
feat(bytecode): fused Instruction::IsType replaces CmpOp::InstanceOf
antoniosarosi d32147f
feat(ast): remove instanceof keyword from AST onwards with E0098 diag…
antoniosarosi 21b210d
Merge branch 'canary' into unify-instanceof-with-typetag
antoniosarosi d365605
fix(emit): skip discriminant for single-arm exhaustive switches
antoniosarosi 98ae8f5
fix(mir): route null literal patterns through TypeTag switch path
antoniosarosi 9c0bc05
fix(mir): skip last-arm pattern test in exhaustive match chains
antoniosarosi 119a7e9
feat(emit,mir): TypeTag switch for catch arms, is_type debug names, 4…
antoniosarosi 000d742
Merge branch 'canary' into unify-instanceof-with-typetag
antoniosarosi 3fdc183
refactor(mir): remove duplicate try_lower_catch_as_switch, fix instan…
antoniosarosi f18902f
fix(emit): eliminate redundant copy/pop on last arm of if-else switch
antoniosarosi b6183d3
refactor(emit): re-load discriminant per arm in if-else switch
antoniosarosi e6bcbee
feat(emit): short-circuit &&/|| via JumpIfFalse peek instruction
antoniosarosi 2fbc43b
fix(emit): allow PhiLike promotion through ShortCircuit terminators
antoniosarosi 9c302ed
chore(tests): accept InitField snapshots in ignored assignment tests
antoniosarosi 905f6a7
refactor(tests): inline all exception catch bytecode snapshots
antoniosarosi 66217d4
fix(mir): dead-eliminate unused ShortCircuit destinations
antoniosarosi be33e97
Merge branch 'canary' into unify-instanceof-with-typetag
antoniosarosi a37370e
chore(tests): regenerate bytecode snapshots after canary merge
antoniosarosi 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
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.
Uh oh!
There was an error while loading. Please reload this page.