-
Notifications
You must be signed in to change notification settings - Fork 694
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
Proposal: Type Tags #1341
Comments
I'm having trouble understanding what you're proposing here, and which problem it solves. Can you elaborate a bit, perhaps with an example? |
I will try to:
Is that better? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hm...I think that the access to the call stack is important. If the stack is accessible in some general way many different features could become directly implementable on WebAssembly, instead of relaying to custom stacks. That would required instructions for iterating (instead of walking #1340) the frames, blocks and variables. Currently, the variable types are i/f 32/64 and I would imagine, that the runtime costs of storing the type of the variable are at least 1 byte. I would propose to do that:
mark
;set subtype mark
[i32] -> [i32_mark] for the operand stack top orset subtype 2 mark
for a local variable in the call stack at index 2.mark
/gc
for example and even let some custom;get subtype 0
The text was updated successfully, but these errors were encountered: