mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-13 00:51:20 +00:00
add details when calling unimplemented!
This commit is contained in:
@ -279,7 +279,7 @@ impl ModuleCodeGenerator<CraneliftFunctionCodeGenerator, Caller, CodegenError>
|
||||
ir::types::I64 => pos.ins().call(i64_print, &[vmctx, param]),
|
||||
ir::types::F32 => pos.ins().call(f32_print, &[vmctx, param]),
|
||||
ir::types::F64 => pos.ins().call(f64_print, &[vmctx, param]),
|
||||
_ => unimplemented!(),
|
||||
_ => unimplemented!("unimplemented type {}", param),
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -105,7 +105,7 @@ impl binemit::RelocSink for RelocSink {
|
||||
_ebb_offset: binemit::CodeOffset,
|
||||
) {
|
||||
// This should use the `offsets` field of `ir::Function`.
|
||||
unimplemented!();
|
||||
unimplemented!("RelocSink::reloc_ebb");
|
||||
}
|
||||
fn reloc_external(
|
||||
&mut self,
|
||||
@ -146,7 +146,7 @@ impl binemit::RelocSink for RelocSink {
|
||||
|
||||
DYNAMIC_MEM_GROW => VmCallKind::DynamicMemoryGrow,
|
||||
DYNAMIC_MEM_SIZE => VmCallKind::DynamicMemorySize,
|
||||
_ => unimplemented!(),
|
||||
_ => unimplemented!("reloc_external VmCall::Local {}", index),
|
||||
})),
|
||||
IMPORT_NAMESPACE => RelocationType::VmCall(VmCall::Import(match index {
|
||||
STATIC_MEM_GROW => VmCallKind::StaticMemoryGrow,
|
||||
@ -157,10 +157,10 @@ impl binemit::RelocSink for RelocSink {
|
||||
|
||||
DYNAMIC_MEM_GROW => VmCallKind::DynamicMemoryGrow,
|
||||
DYNAMIC_MEM_SIZE => VmCallKind::DynamicMemorySize,
|
||||
_ => unimplemented!(),
|
||||
_ => unimplemented!("reloc_external VmCall::Import {}", index),
|
||||
})),
|
||||
SIG_NAMESPACE => RelocationType::Signature(SigIndex::new(index as usize)),
|
||||
_ => unimplemented!(),
|
||||
_ => unimplemented!("reloc_external SigIndex {}", index),
|
||||
};
|
||||
self.external_relocs.push(ExternalRelocation {
|
||||
reloc,
|
||||
@ -204,7 +204,7 @@ impl binemit::RelocSink for RelocSink {
|
||||
}
|
||||
|
||||
fn reloc_constant(&mut self, _: u32, _: cranelift_codegen::binemit::Reloc, _: u32) {
|
||||
unimplemented!()
|
||||
unimplemented!("RelocSink::reloc_constant")
|
||||
}
|
||||
|
||||
fn reloc_jt(
|
||||
@ -213,7 +213,7 @@ impl binemit::RelocSink for RelocSink {
|
||||
_reloc: binemit::Reloc,
|
||||
_jt: ir::JumpTable,
|
||||
) {
|
||||
unimplemented!();
|
||||
unimplemented!("RelocSink::reloc_jt");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -98,7 +98,10 @@ pub fn call_protected<T>(
|
||||
},
|
||||
Ok(SIGSEGV) | Ok(SIGBUS) => WasmTrapInfo::MemoryOutOfBounds,
|
||||
Ok(SIGFPE) => WasmTrapInfo::IllegalArithmetic,
|
||||
_ => unimplemented!(),
|
||||
_ => unimplemented!(
|
||||
"WasmTrapInfo::Unknown signal:{}",
|
||||
Signal::from_c_int(signum)
|
||||
),
|
||||
}))
|
||||
} else {
|
||||
let signal = match Signal::from_c_int(signum) {
|
||||
|
@ -110,5 +110,5 @@ pub fn call_protected(
|
||||
|
||||
pub unsafe fn trigger_trap() -> ! {
|
||||
// TODO
|
||||
unimplemented!();
|
||||
unimplemented!("windows::trigger_trap");
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ impl RelocSink for NullRelocSink {
|
||||
fn reloc_external(&mut self, _: u32, _: Reloc, _: &ir::ExternalName, _: i64) {}
|
||||
|
||||
fn reloc_constant(&mut self, _: u32, _: Reloc, _: u32) {
|
||||
unimplemented!()
|
||||
unimplemented!("RelocSink::reloc_constant")
|
||||
}
|
||||
|
||||
fn reloc_jt(&mut self, _: u32, _: Reloc, _: ir::JumpTable) {}
|
||||
|
Reference in New Issue
Block a user