MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / next

Method next

crates/cranelift/src/debug/transform/expression.rs:271–290  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

269 impl Iterator for BuildWithLocalsResult<'_> {
270 type Item = Result<(write::Address, u64, write::Expression)>;
271 fn next(&mut self) -> Option<Self::Item> {
272 match self {
273 BuildWithLocalsResult::Empty => None,
274 BuildWithLocalsResult::Simple(it, code) => it
275 .next()
276 .map(|(addr, len)| Ok((addr, len, write::Expression::raw(code.to_vec())))),
277 BuildWithLocalsResult::Ranges(it) => it.next().map(|r| {
278 r.map(|(symbol, start, end, code_buf)| {
279 (
280 write::Address::Symbol {
281 symbol,
282 addend: start as i64,
283 },
284 (end - start) as u64,
285 write::Expression::raw(code_buf),
286 )
287 })
288 }),
289 }
290 }
291 }
292
293 if scope.is_empty() {

Callers 9

finalize_breakpointsMethod · 0.45
collect_address_mapsFunction · 0.45
take_branch_hintMethod · 0.45
has_valid_code_rangeFunction · 0.45
clone_die_attributesFunction · 0.45
generate_simulated_dwarfFunction · 0.45
from_ranges_refMethod · 0.45
from_subprogram_dieMethod · 0.45

Calls 3

OkFunction · 0.85
mapMethod · 0.45
to_vecMethod · 0.45

Tested by

no test coverage detected