-
Notifications
You must be signed in to change notification settings - Fork 831
[LegalizeJSInterface] Use explicit names for stub functions #6806
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
Conversation
|
I wonder if there is a better way to handle fallout from making names not explicit by default? |
|
What is the specific fallout here? That is, why is this necessary - does it fix something? |
No expected fallout, just improved debugging experience since these functions now have meaningful debug names. This change allows us to re-enable the test_no_legalize_js_ffi test which is checking explicitly for imports that start with See #6428 (comment) |
I think whenever we give something a useful name like this in binaryen it should be preserved in the debug name section.. just dropping the name completely (which is what happens without the ExplicitName flag set) seems like the wrong default. This was changed at some point which has had a fair amount of fallout. |
|
Oh, I see, thanks. Yes, this makes sense: we do want explicit names here for debugging, and that test is looking at such internals. |
Yeah, maybe the other default would be better, since the harm would only be some meaningless names in the name section. Do you think there are more cases left to handle for it? If so I'm not opposed to changing the default. |
I think we would want to draw is clear distinction between names that were explicitly given like this ones and names that binaryen makes upon the fly simply because it needs everything to be named (e.g. |
No description provided.