diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/asmjs/shared-constants.cpp | 2 | ||||
-rw-r--r-- | src/asmjs/shared-constants.h | 2 | ||||
-rw-r--r-- | src/wasm2asm.h | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/src/asmjs/shared-constants.cpp b/src/asmjs/shared-constants.cpp index 09452805c..c6efe64f9 100644 --- a/src/asmjs/shared-constants.cpp +++ b/src/asmjs/shared-constants.cpp @@ -40,6 +40,8 @@ cashew::IString GLOBAL("global"), CLZ32("clz32"), FROUND("fround"), ASM2WASM("asm2wasm"), + MIN("min"), + MAX("max"), F64_REM("f64-rem"), F64_TO_INT("f64-to-int"), F64_TO_UINT("f64-to-uint"), diff --git a/src/asmjs/shared-constants.h b/src/asmjs/shared-constants.h index 06946c7f5..28142fecc 100644 --- a/src/asmjs/shared-constants.h +++ b/src/asmjs/shared-constants.h @@ -43,6 +43,8 @@ extern cashew::IString GLOBAL, CLZ32, FROUND, ASM2WASM, + MIN, + MAX, F64_REM, F64_TO_INT, F64_TO_UINT, diff --git a/src/wasm2asm.h b/src/wasm2asm.h index 3c2cfcb6e..8a17c415d 100644 --- a/src/wasm2asm.h +++ b/src/wasm2asm.h @@ -472,6 +472,8 @@ void Wasm2AsmBuilder::addBasics(Ref ast) { addMath(MATH_FROUND, FROUND); addMath(MATH_ABS, ABS); addMath(MATH_CLZ32, CLZ32); + addMath(MATH_MIN, MIN); + addMath(MATH_MAX, MAX); } void Wasm2AsmBuilder::addImport(Ref ast, Import* import) { |