Skip to content
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

[9.0.0] Fix support for native profiling #6435

Merged
merged 1 commit into from
May 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions crates/jit/src/instantiate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -568,10 +568,10 @@ impl CompiledModule {
/// this module, providing both their index and their in-memory body.
pub fn array_to_wasm_trampolines(
&self,
) -> impl ExactSizeIterator<Item = (DefinedFuncIndex, &[u8])> + '_ {
) -> impl Iterator<Item = (DefinedFuncIndex, &[u8])> + '_ {
self.funcs
.keys()
.map(move |i| (i, self.array_to_wasm_trampoline(i).unwrap()))
.filter_map(move |i| Some((i, self.array_to_wasm_trampoline(i)?)))
}

/// Get the native-to-Wasm trampoline for the function `index` points to.
Expand All @@ -590,10 +590,10 @@ impl CompiledModule {
/// this module, providing both their index and their in-memory body.
pub fn native_to_wasm_trampolines(
&self,
) -> impl ExactSizeIterator<Item = (DefinedFuncIndex, &[u8])> + '_ {
) -> impl Iterator<Item = (DefinedFuncIndex, &[u8])> + '_ {
self.funcs
.keys()
.map(move |i| (i, self.native_to_wasm_trampoline(i).unwrap()))
.filter_map(move |i| Some((i, self.native_to_wasm_trampoline(i)?)))
}

/// Get the Wasm-to-native trampoline for the given signature.
Expand Down