Index: src/asmjs/asm-typer.cc |
diff --git a/src/asmjs/asm-typer.cc b/src/asmjs/asm-typer.cc |
index 80f296052f16279531c4b42b67820cd3e12241db..4cb4babc3348fd79654b7d3d1458420e61c28fec 100644 |
--- a/src/asmjs/asm-typer.cc |
+++ b/src/asmjs/asm-typer.cc |
@@ -178,6 +178,9 @@ void AsmTyper::InitializeStdlib() { |
s2s->AsFunctionType()->AddArgument(s); |
auto* i = AsmType::Int(); |
+ auto* i2s = AsmType::Function(zone_, s); |
+ i2s->AsFunctionType()->AddArgument(i); |
+ |
auto* ii2s = AsmType::Function(zone_, s); |
ii2s->AsFunctionType()->AddArgument(i); |
ii2s->AsFunctionType()->AddArgument(i); |
@@ -248,6 +251,7 @@ void AsmTyper::InitializeStdlib() { |
{"SQRT1_2", kMathSQRT1_2, d}, |
{"imul", kMathImul, ii2s}, |
{"abs", kMathAbs, abs}, |
+ {"clz32", kMathClz32, i2s}, // NOTE: clz32 should return fixnum. |
bradnelson
2016/08/02 18:06:43
Maybe describe why we're not, for someone missing
John
2016/08/02 18:10:54
Done.
|
{"ceil", kMathCeil, ceil}, |
{"floor", kMathFloor, floor}, |
{"fround", kMathFround, fround}, |