-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
cranelift-filetest
: Allow run
directives with functions that have a vmctx
#6659
Comments
We used to have some limited support for We can still resolve Is that what you were looking to do? We don't support something like Here's an example testcase using `vmctx` that works today
|
I was essentially trying to do something like this:
|
I guess I could have got that working with another trampoline function to init the vmctx, that's a good trick. Still a bit of a workaround though compared to just passing in a value. |
Oh, weird that it doesn't work when we call the vmctx function directly. That should be a somewhat easy fix, I don't mind working on it. I think we don't support stack_limit in the interpreter yet though. |
And allow passing in arbitrary values as
vmctx
as well, basically treating it like any other argument.While this wouldn't allow complex global values based on the
vmctx
, it would allow simple ones likegv0 = vmctx
.We would also want the CLIF interpreter to support this as well, since basically all of our runtests are also interpreter tests.
The text was updated successfully, but these errors were encountered: