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

Typed exceptions #187

Merged
merged 10 commits into from
Apr 19, 2018
Merged

Typed exceptions #187

merged 10 commits into from
Apr 19, 2018

Conversation

ehildenb
Copy link
Member

Simplest steps towards typed exceptions, makes refactoring the control flow simpler.

@ehildenb ehildenb requested a review from dwightguth April 11, 2018 21:08
@ehildenb
Copy link
Member Author

VMTests disabled because: ethereum/tests#444

@ehildenb
Copy link
Member Author

@dwightguth should be ready for review. The failing proofs are because the proof submodule has not been updated, doing that now but they should go through fine once that's done.

@ehildenb ehildenb force-pushed the typed-exceptions branch 7 times, most recently from cd8f97d to f74bad3 Compare April 15, 2018 00:00
@ehildenb ehildenb mentioned this pull request Apr 15, 2018
@ehildenb ehildenb force-pushed the typed-exceptions branch 3 times, most recently from a9f4747 to 2753176 Compare April 16, 2018 01:09
@dwightguth
Copy link
Collaborator

Jenkins: test mantis

@ehildenb ehildenb force-pushed the typed-exceptions branch 4 times, most recently from c47f1a8 to 5af1a7c Compare April 17, 2018 16:28
@ehildenb
Copy link
Member Author

Jenkins: test this please

@ehildenb
Copy link
Member Author

Jenkins: test mantis

@ehildenb
Copy link
Member Author

Jenkins: test this please

@ehildenb
Copy link
Member Author

@dwightguth ready for review. @pirapira you may also be interested, this PR adds typed exceptions to KEVM, see file network.md for explanation.

Copy link
Collaborator

@dwightguth dwightguth left a comment

Choose a reason for hiding this comment

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

looks good but there's one minor thing you should fix before you merge.

network.md Outdated
- `EVMC_BAD_JUMP_DESTINATION` indicates a `JUMP*` to a non-`JUMPDEST` location.
- `EVMC_STACK_OVERFLOW` indicates pushing more than 1024 elements onto the wordstack.
- `EVMC_STACK_UNDERFLOW` indicates popping elements off an empty wordstack.
- `EVMC_CALL_DEPTH_EXCEDED` indicates that we have executed too deeply a nested sequence of `CALL*` or `CREATE` opcodes.
Copy link
Collaborator

Choose a reason for hiding this comment

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

pretty sure exceeded has two es.

Everett Hildenbrandt added 5 commits April 19, 2018 12:01
…end => #halt, remove Exception

Now instead of using #revert, #end, or #exception, using #end_ to set the status code as well.
Code `#halt` is named different than `#end` so that people must explicitely decide not to set the status code if they want to #end.
@ehildenb
Copy link
Member Author

Jenkins: test this please

@ehildenb ehildenb merged commit abc14fa into master Apr 19, 2018
@ehildenb ehildenb deleted the typed-exceptions branch April 19, 2018 20:34
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.

2 participants