Skip to content
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

Add support for 64-bit OpSwitch #161

Merged
merged 2 commits into from Sep 4, 2020
Merged

Add support for 64-bit OpSwitch #161

merged 2 commits into from Sep 4, 2020

Conversation

khyperia
Copy link
Collaborator

@khyperia khyperia commented Sep 2, 2020

SR support is omitted for now.

I'm not 100% the parser is fully working, I couldn't figure out how to write tests - but the emitter works (which is the easy side).

SR support is omitted for now.
Copy link
Collaborator

@Jasper-Bekkers Jasper-Bekkers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also update README.md to reflect that OpSwitch works on 64-bit values now.

Comment on lines 238 to 241
// Logic operands that expand to concrete operand pairs,
// that is, those operand kinds with 'Pair' name prefix.
// We only have three cases. So hard code it.
let pair_kinds = vec![
("LiteralInteger", "IdRef"),
("IdRef", "LiteralInteger"),
("IdRef", "IdRef"),
];
let pair_kinds = vec![("IdRef", "LiteralInteger"), ("IdRef", "IdRef")];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment should be updated.

@Jasper-Bekkers Jasper-Bekkers merged commit 7a36c2f into master Sep 4, 2020
@khyperia khyperia deleted the switch64 branch September 8, 2020 08:33
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.

None yet

2 participants