-
Notifications
You must be signed in to change notification settings - Fork 797
[Stack Switching] Fuzz Stack Switching #7834
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
base: main
Are you sure you want to change the base?
Conversation
This reverts commit 444d8e0.
src/tools/fuzzing/fuzzing.cpp
Outdated
case HeapTypeKind::Cont: | ||
WASM_UNREACHABLE("TODO: cont"); | ||
case HeapTypeKind::Cont: { | ||
auto funcType = Type(heapType.getContinuation().type, NonNullable); |
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.
auto funcType = Type(heapType.getContinuation().type, NonNullable); | |
auto funcType = Type(heapType.getContinuation().type, Nullable); |
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.
Nulls would just trap. But I guess we should cover that too. I can change this to use nulls rarely like we do elsewhere.
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.
Done.
src/tools/fuzzing/fuzzing.cpp
Outdated
WASM_UNREACHABLE("TODO: cont"); | ||
case HeapTypeKind::Cont: { | ||
auto funcType = Type(heapType.getContinuation().type, NonNullable); | ||
return builder.makeContNew(heapType, makeRefFuncConst(funcType)); |
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.
Why not allow this to be an arbitrary expression with the expected type?
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.
Hmm, yeah, I don't think it could recurse in a bad way. I'll try that.
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.
Done.
This reverts commit 8293638.
…ll when nullable..
those from exception handling places.