mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-25 06:31:32 +00:00
Update field names in wasm-debug types
This commit is contained in:
@ -156,9 +156,9 @@ impl FuncResolverBuilder {
|
|||||||
let srcloc = func.srclocs[inst];
|
let srcloc = func.srclocs[inst];
|
||||||
let val = srcloc.bits();
|
let val = srcloc.bits();
|
||||||
wasm_debug::types::CompiledInstructionData {
|
wasm_debug::types::CompiledInstructionData {
|
||||||
loc: wasm_debug::types::SourceLoc::new(val),
|
srcloc: wasm_debug::types::SourceLoc::new(val),
|
||||||
offset: offset as usize,
|
code_offset: offset as usize,
|
||||||
length: length as usize,
|
code_len: length as usize,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@ -174,11 +174,11 @@ impl FuncResolverBuilder {
|
|||||||
|
|
||||||
let entry = CompiledFunctionData {
|
let entry = CompiledFunctionData {
|
||||||
instructions,
|
instructions,
|
||||||
start: wasm_debug::types::SourceLoc::new(*start),
|
start_srcloc: wasm_debug::types::SourceLoc::new(*start),
|
||||||
end: wasm_debug::types::SourceLoc::new(*end),
|
end_srcloc: wasm_debug::types::SourceLoc::new(*end),
|
||||||
// this not being 0 breaks inst-level debugging
|
// this not being 0 breaks inst-level debugging
|
||||||
compiled_offset: 0,
|
body_offset: 0,
|
||||||
compiled_size: code_buf.len(),
|
body_len: code_buf.len(),
|
||||||
};
|
};
|
||||||
Some((entry, labels_ranges, stack_slots))
|
Some((entry, labels_ranges, stack_slots))
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user