-
Notifications
You must be signed in to change notification settings - Fork 838
Fuzzer: Add log-anyref etc. methods #8287
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
| from the random input. Please report it with | ||
| seed: %(seed)d | ||
| seed: {seed} |
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.
drive-by fix: this was not logging the number before.
| // - funcref cannot be logged because referenced functions can be inlined or | ||
| // removed during optimization | ||
| // - there's no point in logging anyref because it is opaque |
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.
Looks like this comment needs updating.
| loggableTypes.push_back(Type(HeapType::cont, Nullable)); | ||
| } | ||
| if (wasm.features.hasExceptionHandling()) { | ||
| loggableTypes.push_back(Type(HeapType::exn, 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.
I don't think exnref values can flow out to JS, so I don't think it makes sense to try to log them.
These functions receive a reference value. We cannot log their
internals, but we can try to do some operations on them, and
this gets more such values moving across the JS/wasm
boundary. Future fuzzing of configureAll will build on this.
To achieve this, the
logValuemethod had to be moved up inthe fuzzer, so we can use it from another place. The only
change there is to make it stop printing newlines all the time
(and let the caller do it, if needed).