Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Disallow certain opcodes in an external context #366

Merged
merged 3 commits into from
Nov 4, 2021
Merged

Disallow certain opcodes in an external context #366

merged 3 commits into from
Nov 4, 2021

Conversation

sezna
Copy link
Contributor

@sezna sezna commented Nov 4, 2021

Closes #350. See the issue for details on what is being solved here. I did not write a test for every single opcode because if the error catching is able to catch one of them, the match statement wouldn't miss the others. And given the speed of the compiler, writing an individual test for every opcode would be expensive in pipeline minutes.

It looks like this:
image

@sezna sezna added enhancement New feature or request compiler General compiler. Should eventually become more specific as the issue is triaged labels Nov 4, 2021
@sezna sezna requested review from otrho and adlerjohn November 4, 2021 20:33
@sezna sezna self-assigned this Nov 4, 2021
@sezna sezna merged commit 34e8e31 into master Nov 4, 2021
@sezna sezna deleted the sezna/350 branch November 4, 2021 22:34
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
compiler General compiler. Should eventually become more specific as the issue is triaged enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generate a compile error if opcodes that are known to be invalid are generated.
2 participants