high-cloud opened PR #7809 from high-cloud:demangle_wip
to bytecodealliance:main
:
<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
issue #7665
high-cloud requested alexcrichton for a review on PR #7809.
high-cloud requested wasmtime-core-reviewers for a review on PR #7809.
high-cloud updated PR #7809.
high-cloud updated PR #7809.
github-actions[bot] commented on PR #7809:
Subscribe to Label Action
cc @peterhuene
<details>
This issue or pull request has been labeled: "wasmtime:api"Thus the following users have been cc'd because of the following labels:
- peterhuene: wasmtime:api
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
jameysharp submitted PR review:
This is great, thank you!
I hesitated about the use of
unwrap
, butdemangle_function_name
can only fail if the writer fails, and I don't think theWrite
implementation forString
can fail, so I'll sign off that this use is fine. We have anotherunwrap
on the use of this function inCompiledModule::register_debug_and_profiling
, anyway.While looking at that, I just noticed that there's a
demangle_function_name_or_index
function which is very similar to what this wholematch
statement does. I think it's harmless to duplicate that here, with a slightly different format for the fallback case when there's no function name.I'm going to merge this as-is. But if you want to open a follow-up PR, I think it would be an improvement to use
demangle_function_name_or_index
here.
jameysharp merged PR #7809.
Last updated: Nov 22 2024 at 16:03 UTC