mirror of
https://github.com/fluencelabs/wasmer
synced 2025-05-11 01:57:11 +00:00
fix CodeGen message type
This commit is contained in:
parent
33ba6768bc
commit
00c2e09f43
@ -353,7 +353,7 @@ impl RunnableModule for X64ExecutionContext {
|
|||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct CodegenError {
|
pub struct CodegenError {
|
||||||
pub message: &'static str,
|
pub message: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug)]
|
#[derive(Copy, Clone, Debug)]
|
||||||
@ -474,7 +474,7 @@ impl ModuleCodeGenerator<X64FunctionCode, X64ExecutionContext, CodegenError>
|
|||||||
Some(x) => x,
|
Some(x) => x,
|
||||||
None => {
|
None => {
|
||||||
return Err(CodegenError {
|
return Err(CodegenError {
|
||||||
message: "label not found",
|
message: format!("label not found"),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -482,7 +482,7 @@ impl ModuleCodeGenerator<X64FunctionCode, X64ExecutionContext, CodegenError>
|
|||||||
Some(x) => x,
|
Some(x) => x,
|
||||||
None => {
|
None => {
|
||||||
return Err(CodegenError {
|
return Err(CodegenError {
|
||||||
message: "offset is none",
|
message: format!("offset is none"),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -3875,7 +3875,7 @@ impl FunctionCodeGenerator<CodegenError> for X64FunctionCode {
|
|||||||
WpTypeOrFuncType::Type(inner_ty) => smallvec![inner_ty],
|
WpTypeOrFuncType::Type(inner_ty) => smallvec![inner_ty],
|
||||||
_ => {
|
_ => {
|
||||||
return Err(CodegenError {
|
return Err(CodegenError {
|
||||||
message: "multi-value returns not yet implemented",
|
message: format!("multi-value returns not yet implemented"),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -3986,7 +3986,7 @@ impl FunctionCodeGenerator<CodegenError> for X64FunctionCode {
|
|||||||
WpTypeOrFuncType::Type(inner_ty) => smallvec![inner_ty],
|
WpTypeOrFuncType::Type(inner_ty) => smallvec![inner_ty],
|
||||||
_ => {
|
_ => {
|
||||||
return Err(CodegenError {
|
return Err(CodegenError {
|
||||||
message: "multi-value returns not yet implemented",
|
message: format!("multi-value returns not yet implemented"),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -4015,7 +4015,7 @@ impl FunctionCodeGenerator<CodegenError> for X64FunctionCode {
|
|||||||
WpTypeOrFuncType::Type(inner_ty) => smallvec![inner_ty],
|
WpTypeOrFuncType::Type(inner_ty) => smallvec![inner_ty],
|
||||||
_ => {
|
_ => {
|
||||||
return Err(CodegenError {
|
return Err(CodegenError {
|
||||||
message: "multi-value returns not yet implemented",
|
message: format!("multi-value returns not yet implemented"),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -4979,8 +4979,7 @@ impl FunctionCodeGenerator<CodegenError> for X64FunctionCode {
|
|||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
return Err(CodegenError {
|
return Err(CodegenError {
|
||||||
message: "not yet implemented: {:?}",
|
message: format!("not yet implemented: {:?}", op),
|
||||||
op,
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user