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

feat: enum-based opcodes #573

Merged
merged 1 commit into from
Aug 23, 2022
Merged

feat: enum-based opcodes #573

merged 1 commit into from
Aug 23, 2022

Conversation

Stebalien
Copy link
Member

  • removes the explicit instruction array.
  • removes the undefined instructions.
  • removes the need for ordering instructions in a specific way.
  • ensures that we can't talk about invalid instructions.

- removes the explicit instruction array.
- removes the undefined instructions.
- removes the need for ordering instructions in a specific way.
- ensures that we can't talk about invalid instructions.
@Stebalien Stebalien requested a review from vyzo August 23, 2022 15:09
Copy link
Contributor

@vyzo vyzo left a comment

Choose a reason for hiding this comment

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

ok, this a more rusty way of doing this.
The Big Claw never fails to disappoint at one upping the little ones ;)

return Err(StatusCode::UndefinedInstruction);
}

Ok(unsafe { std::mem::transmute(op) })
Copy link
Contributor

Choose a reason for hiding this comment

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

haha, you need this to do anything interesting in this language ;)

@Stebalien Stebalien merged commit 8533873 into next Aug 23, 2022
@Stebalien Stebalien deleted the feat/op-code-refactor branch August 23, 2022 15:42
@raulk raulk added this to the M2.1 Selenium (r2) milestone Aug 30, 2022
shamb0 pushed a commit to shamb0/builtin-actors that referenced this pull request Oct 3, 2022
- removes the explicit instruction array.
- removes the undefined instructions.
- removes the need for ordering instructions in a specific way.
- ensures that we can't talk about invalid instructions.
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.

3 participants