-
Notifications
You must be signed in to change notification settings - Fork 39
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
Replace PCtx
parameters with TCtx
in VM code
#252
Conversation
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.
Minor item, the other thing I noticed is that some functions have effects, will need to change those to procs or break them up. I'd go the proc route, personally.
* Where `TCtx` is now used, also use `func` instead of `proc`, if applicable Not all usages of `PCtx` are replaced. `PCtx` is still used in procedures that form the border between non-VM/VM code. `vmops` also still uses `PCtx`, as some ops need to capture a reference to the context
Addressed review. I used I also fixed the failure of the Interestingly enough, in the CI, the test failure was reported to be due to the compiler crashing with a nil access. I ran the test on my machine (Windows) and it also failed with a compiler crash. But, instead of an invalid memory access, I got an assertion raised in The compiler crash only happened when importing |
I did a quick search in finding usage in semdata and semmagic, but those are at the boundary as mentioned by the 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.
And so begins the revamp of the VM in devel. 🎉
Bors r+
🕐 Waiting for PR status (Github check) to be set, probably by CI. Bors will automatically try to run when all required PR statuses are set. |
Weird, let's try again bors r+ |
Build succeeded: |
TCtx
is now used, also usefunc
instead ofproc
, if applicableNot all usages of
PCtx
are replaced.PCtx
is still used in proceduresthat form the border between non-VM/VM code.
vmops
also still usesPCtx
, as some ops need to capture a reference to the context