mirror of
https://github.com/mii443/wasmer.git
synced 2025-08-24 17:29:26 +00:00
Added address map instructions for traps in singlepass
This commit is contained in:
@ -106,11 +106,12 @@ impl Compiler for SinglepassCompiler {
|
||||
.map_err(to_compile_error)?;
|
||||
|
||||
while generator.has_control_frames() {
|
||||
generator.set_srcloc(reader.original_position() as u32);
|
||||
let op = reader.read_operator().map_err(to_compile_error)?;
|
||||
generator.feed_operator(op).map_err(to_compile_error)?;
|
||||
}
|
||||
|
||||
Ok(generator.finalize())
|
||||
Ok(generator.finalize(&input))
|
||||
})
|
||||
.collect::<Result<Vec<CompiledFunction>, CompileError>>()?
|
||||
.into_iter()
|
||||
|
Reference in New Issue
Block a user