This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Integrate Wasmtime for runtime execution #3869
Merged
Merged
Changes from 23 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
87bf2d4
executor: Use non wasmi-specific execution in tests.
jimpo f37b9d8
executor: Move all runtime execution tests into tests file.
jimpo 36bdc5c
executor: Use test_case macro to easily execute tests with different
jimpo 727ce43
executor: Convert errors to strings with Display, not Debug.
jimpo 1bcb472
node-executor: Rewrite benchmarks with criterion.
jimpo 3908f76
executor: Begin implementation of Wasm runtime.
jimpo 447c31a
executor: Define and implement basic FunctionExecutor.
jimpo 828fbf0
executor: Implement host function trampoline generation.
jimpo 81535c5
executor: Instantiate and link runtime module to env module.
jimpo a3d2b35
executor: Provide input data during wasmtime execution.
jimpo a7bb759
executor: Implement SandboxCapabilites::invoke for wasmtime executor.
jimpo 9076ca0
executor: Integrate and test wasmtime execution method.
jimpo 5a903a8
executor: Improve FunctionExecution error messages.
jimpo a77e9bd
Scope the unsafe blocks to be smaller.
jimpo c964753
Rename TrampolineState to EnvState.
jimpo 5e0d828
Let EnvState own its own compiler instead of unsafe lifetime cast.
jimpo 7623f12
Refactor out some common wasmi/wasmtime logic.
jimpo 7467e35
Typos and cosmetic changes.
jimpo b73465c
More trampoline comments.
jimpo d5b72c6
Cargo.lock update.
jimpo 779d4b4
cli: CLI option for running Substrate with compiled Wasm execution.
jimpo 5ffda81
executor: Switch dependency from fork to official wasmtime repo.
jimpo 70896c0
Quiet down cranelift logs.
jimpo 4b0cdc8
Explicitly catch panics during host calls.
jimpo 28f7c11
Additional checks and clarifications in make_trampoline.
jimpo f4016dd
Merge branch 'master' into wasmtime-real
jimpo b76f733
Fixes after merge from master and panic safety for wasmtime
jimpo 0ec6caf
Merge branch 'master' into wasmtime-real
jimpo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,3 +38,8 @@ rpassword = "4.0.1" | |
|
||
[dev-dependencies] | ||
tempdir = "0.3.7" | ||
|
||
[features] | ||
wasmtime = [ | ||
"service/wasmtime", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Which targets do they support?
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.
https://github.com/CraneStation/cranelift/blob/master/cranelift-codegen/src/isa/mod.rs#L107