-
Notifications
You must be signed in to change notification settings - Fork 824
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
Remove backend::Backend from runtime-core #1099
Merged
Merged
Changes from 19 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
303d44c
Remove backend code
syrusakbary d4e9645
Move requires pre validation into the ModuleCodeGenerator
syrusakbary d7154fe
Remove Backend dependency
syrusakbary 18421e3
Make all tests pass
syrusakbary f3b9ecb
Remove backend specific features from root Cargo
syrusakbary 71be5be
Improved syntax
syrusakbary 0cb3df2
Removed unnecessary checks
syrusakbary 5d2ea93
Fixed changelog link
syrusakbary ac0c5c9
Fixed lint
syrusakbary e57677b
Make cranelift optional for middleware
syrusakbary d36d883
Fix lint
syrusakbary 8cff1ad
Fix wasmer binary
syrusakbary 720d4ec
Fix checks on binary
syrusakbary f967770
Fixed linting
syrusakbary 63f1d6b
Fixed path variable name
syrusakbary 3b9cdc3
Recovered deleted tests
syrusakbary 59945a8
Use detault
syrusakbary ee6949b
Add checks back into makefile
syrusakbary d544f5a
Run formatting
syrusakbary f353ac0
Remove unused backend flags
syrusakbary 9ca9770
Merge branch 'master' into backend-refactor
syrusakbary cc28804
Update the name of experimental IO devices in fs
5b52589
Update the experimental io device path to include /dev/
8fd1433
Bump getrandom from 0.1.13 to 0.1.14
dependabot-preview[bot] 00618e8
Bump parking_lot from 0.9.0 to 0.10.0
dependabot-preview[bot] f18a428
Bump regex from 1.3.1 to 1.3.3
dependabot-preview[bot] 22e35fc
Bump cc from 1.0.48 to 1.0.50
dependabot-preview[bot] aa6189a
Make all tests pass
syrusakbary 4faa78b
Fixed changelog link
syrusakbary 846c632
Fixed runtime check
syrusakbary 3892ea8
Fixed lint
syrusakbary 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
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 |
---|---|---|
|
@@ -52,7 +52,7 @@ cc = "1.0" | |
[features] | ||
debug = [] | ||
trace = ["debug"] | ||
# backend flags used in conditional compilation of Backend::variants | ||
# backend flags no longer used | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd prefer just deleting them if we're not using them! |
||
"backend-cranelift" = [] | ||
"backend-singlepass" = [] | ||
"backend-llvm" = [] | ||
|
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.
I think it would be better to have typed backend ids. An approach similar to
InternalField
for middlewares might work:wasmer/lib/runtime-core/src/vm.rs
Line 139 in f2f1a08
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.
We can do this with a wrapper struct and (static) strings too.
I think we'll probably want to have a way to print out the name of the backend in either case, so we'll either need to have the string be part of the
id
or have a mapping from id to string.