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

Create a constant expression compiler/validator #298

Merged
merged 1 commit into from
Jan 23, 2024
Merged

Conversation

jblebrun
Copy link
Owner

Rather than flagging/branching the primary compiler/validator, it's much
simpler and clearer to just create a separate const expression emitter for the
6 supported instructions.

Also make a method on Opcode that emits the proper bytes, so we can use it in
both emitters.

Rather than flagging/branching the primary compiler/validator, it's much
simpler and clearer to just create a separate const expression emitter for the
6 supported instructions.

Also make a method on Opcode that emits the proper bytes, so we can use it in
both emitters.
@jblebrun jblebrun merged commit 3aa13c9 into main Jan 23, 2024
4 checks passed
@jblebrun jblebrun deleted the const-expr-compiler branch January 23, 2024 03:44
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.

1 participant