summaryrefslogtreecommitdiff
path: root/src/asmjs/shared-constants.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/asmjs/shared-constants.cpp')
-rw-r--r--src/asmjs/shared-constants.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/asmjs/shared-constants.cpp b/src/asmjs/shared-constants.cpp
index 0cf3668b1..ec04b63e7 100644
--- a/src/asmjs/shared-constants.cpp
+++ b/src/asmjs/shared-constants.cpp
@@ -102,4 +102,20 @@ cashew::IString GLOBAL("global"),
WASM_I64_UDIV("__wasm_i64_udiv"),
WASM_I64_SREM("__wasm_i64_srem"),
WASM_I64_UREM("__wasm_i64_urem");
+
+namespace ABI {
+namespace wasm2js {
+
+cashew::IString SCRATCH_LOAD_I32("wasm2js_scratch_load_i32"),
+ SCRATCH_STORE_I32("wasm2js_scratch_store_i32"),
+ SCRATCH_LOAD_I64("wasm2js_scratch_load_i64"),
+ SCRATCH_STORE_I64("wasm2js_scratch_store_i64"),
+ SCRATCH_LOAD_F32("wasm2js_scratch_load_f32"),
+ SCRATCH_STORE_F32("wasm2js_scratch_store_f32"),
+ SCRATCH_LOAD_F64("wasm2js_scratch_load_f64"),
+ SCRATCH_STORE_F64("wasm2js_scratch_store_f64");
+
+} // namespace wasm2js
+} // namespace ABI
+
}