-
Notifications
You must be signed in to change notification settings - Fork 798
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
pallet-revive: disable host functions not in revive recompiler #6844
Conversation
You submitted your diff against the wrong pallet :) |
All GitHub workflows were cancelled due to failure one of the required jobs. |
My bad, made change against |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Can I ask you for a a follow up PR that is more like a refactoring?
- Sort the functions so that the not stable functions are all in the bottom so that they are grouped together.
- In the
pallet-revive-uapi
package feature guard all the non stable functions behind a feature flag likeunstable-api
. There might be more than the ones you just disabled which were already unstable.
Merge conflicts need to be resolved after the PR renaming the attributes was merged. Will approve after that.
Resolved merge conflicts, yeah I'll make a follow up PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and the PR branch passes the revive compiler test suite.
You have unstable interfaces activated in your integration test suite, though. |
Good catch! It also passes without unstable interfaces 😅 |
Follow up refactor to #6844 (review) I still need to finish adding `#[cfg(feature = "unstable-api")]` to the rest of the tests and make sure all tests pass, I want to make sure I'm moving into right direction first @athei @xermicus --------- Co-authored-by: DavidK <davidk@parity.io> Co-authored-by: Alexander Theißen <alex.theissen@me.com>
…ytech#6844) Resolves paritytech#6720 List of used host functions in PolkaVM recompiler is here https://github.com/paritytech/revive/blob/main/crates/runtime-api/src/polkavm_imports.c#L65 --------- Co-authored-by: DavidK <davidk@parity.io>
Follow up refactor to paritytech#6844 (review) I still need to finish adding `#[cfg(feature = "unstable-api")]` to the rest of the tests and make sure all tests pass, I want to make sure I'm moving into right direction first @athei @xermicus --------- Co-authored-by: DavidK <davidk@parity.io> Co-authored-by: Alexander Theißen <alex.theissen@me.com>
Resolves #6720
List of used host functions in PolkaVM recompiler is here https://github.com/paritytech/revive/blob/main/crates/runtime-api/src/polkavm_imports.c#L65