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

Berlin: make use of subroutines - eip 2315 #8702

Closed
4 tasks
chriseth opened this issue Apr 20, 2020 · 2 comments
Closed
4 tasks

Berlin: make use of subroutines - eip 2315 #8702

chriseth opened this issue Apr 20, 2020 · 2 comments

Comments

@chriseth
Copy link
Contributor

chriseth commented Apr 20, 2020

  • add "hasJumpsub" function to the evm version and make it return true for "berlin"
  • add the jumpsub, beginsub and returnsub opcodes to instructions.cpp (move them around and assign the correct number - do not care about breaking evm1.5).
  • make sure that jumpsub, beginsub and returnsub cannot be used in yul directly
  • change the EVMCodeTransform to use jumpsub, beginsub, returnsub for yul functions

Specification: https://eips.ethereum.org/EIPS/eip-2315

@chriseth
Copy link
Contributor Author

Maybe we should remove evm1.5 support altogether with this change.

@axic
Copy link
Member

axic commented Mar 5, 2021

This was removed from Berlin, see ethereum/pm#263.

@axic axic closed this as completed Mar 5, 2021
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

No branches or pull requests

3 participants