We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ca93a4 commit cd490f4Copy full SHA for cd490f4
packages/vm/src/wasm_backend/engine.rs
@@ -45,7 +45,7 @@ fn cost(operator: &Operator) -> u64 {
45
}
46
47
48
-/// Use Cranelift as the compiler backend if the feature is enabled
+/// Creates a compiler config using Singlepass
49
pub fn make_compiler_config() -> impl CompilerConfig + Into<Engine> {
50
wasmer::Singlepass::new()
51
@@ -110,6 +110,12 @@ mod tests {
110
assert_eq!(cost(&Operator::I64Extend8S {}), 115);
111
112
113
+ #[test]
114
+ fn make_compiler_config_returns_singlepass() {
115
+ let cc = Box::new(make_compiler_config());
116
+ assert_eq!(cc.compiler().name(), "singlepass");
117
+ }
118
+
119
#[test]
120
fn limit_to_pages_works() {
121
// rounds down
0 commit comments