summaryrefslogtreecommitdiff
path: root/src/abi/js.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/abi/js.h')
-rw-r--r--src/abi/js.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/abi/js.h b/src/abi/js.h
index 89e3f0087..de74899b6 100644
--- a/src/abi/js.h
+++ b/src/abi/js.h
@@ -67,14 +67,14 @@ ensureScratchMemoryHelpers(Module* wasm,
wasm->addFunction(std::move(func));
};
- ensureImport(SCRATCH_LOAD_I32, {i32}, i32);
- ensureImport(SCRATCH_STORE_I32, {i32, i32}, none);
- ensureImport(SCRATCH_LOAD_I64, {}, i64);
- ensureImport(SCRATCH_STORE_I64, {i64}, none);
- ensureImport(SCRATCH_LOAD_F32, {}, f32);
- ensureImport(SCRATCH_STORE_F32, {f32}, none);
- ensureImport(SCRATCH_LOAD_F64, {}, f64);
- ensureImport(SCRATCH_STORE_F64, {f64}, none);
+ ensureImport(SCRATCH_LOAD_I32, {Type::i32}, Type::i32);
+ ensureImport(SCRATCH_STORE_I32, {Type::i32, Type::i32}, Type::none);
+ ensureImport(SCRATCH_LOAD_I64, {}, Type::i64);
+ ensureImport(SCRATCH_STORE_I64, {Type::i64}, Type::none);
+ ensureImport(SCRATCH_LOAD_F32, {}, Type::f32);
+ ensureImport(SCRATCH_STORE_F32, {Type::f32}, Type::none);
+ ensureImport(SCRATCH_LOAD_F64, {}, Type::f64);
+ ensureImport(SCRATCH_STORE_F64, {Type::f64}, Type::none);
}
inline bool isScratchMemoryHelper(cashew::IString name) {