-
Notifications
You must be signed in to change notification settings - Fork 50
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
Allow to define functions using "untyped callbacks" #207
Merged
peterhuene
merged 10 commits into
bytecodealliance:main
from
kpreisser:untyped-callbacks
Jan 24, 2023
Merged
Allow to define functions using "untyped callbacks" #207
peterhuene
merged 10 commits into
bytecodealliance:main
from
kpreisser:untyped-callbacks
Jan 24, 2023
Commits on Jan 24, 2023
-
Allow to specify functions using untyped callbacks, which allows to s…
…pecify a callback of any type without the need to use a specific delegate type. The untyped callback will receive arguments and can set results as a span of ValueBox. For example, this allows to define trapping functions for a module's import without having to know the function time at compile-time, similar to Wasmtime's define_unknown_imports_as_traps.
Configuration menu - View commit details
-
Copy full SHA for 7e73223 - Browse repository at this point
Copy the full SHA 7e73223View commit details -
Follow-Up: Initialize the result ValueBoxes with their expected Value…
…Kind but a default value, as otherwise they all would be initialized with ValueKind.Int32.
Configuration menu - View commit details
-
Copy full SHA for 0b988e8 - Browse repository at this point
Copy the full SHA 0b988e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for b5d7851 - Browse repository at this point
Copy the full SHA b5d7851View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a675de - Browse repository at this point
Copy the full SHA 0a675deView commit details -
Configuration menu - View commit details
-
Copy full SHA for dd72a4f - Browse repository at this point
Copy the full SHA dd72a4fView commit details -
Co-authored-by: Peter Huene <peter@huene.dev>
Configuration menu - View commit details
-
Copy full SHA for a8d9445 - Browse repository at this point
Copy the full SHA a8d9445View commit details -
Configuration menu - View commit details
-
Copy full SHA for 407585d - Browse repository at this point
Copy the full SHA 407585dView commit details -
Apply the changes from bytecodealliance#202 also for the two remainin…
…g overloads of Linker.DefineFunction, to reduce allocations for the strings.
Configuration menu - View commit details
-
Copy full SHA for c65dbef - Browse repository at this point
Copy the full SHA c65dbefView commit details -
Configuration menu - View commit details
-
Copy full SHA for b83d2a2 - Browse repository at this point
Copy the full SHA b83d2a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9fbb0b4 - Browse repository at this point
Copy the full SHA 9fbb0b4View commit details
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.