From 7c506037b668d4d4cc7c21534da4b325d3eae36c Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 7 Dec 2015 15:50:59 -0800 Subject: fix unit.asm.js testcase, table contained a method of the wrong type --- test/unit.2asm.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test/unit.2asm.js') diff --git a/test/unit.2asm.js b/test/unit.2asm.js index 45ffe88f6..50cc1a866 100644 --- a/test/unit.2asm.js +++ b/test/unit.2asm.js @@ -201,6 +201,11 @@ function asmFunc(global, env, buffer) { FUNCTION_TABLE_vf[((1 & 7 | 0) + 8 | 0) & 15](Math_fround(x)); } + function cneg(x) { + x = Math_fround(x); + FUNCTION_TABLE_vf[((1 & 7 | 0) + 8 | 0) & 15](Math_fround(x)) + } + function ___syscall_ret() { var $0 = 0; ($0 >>> 0 | 0) >>> 0 > 4294963200 >>> 0 @@ -215,7 +220,8 @@ function asmFunc(global, env, buffer) { } var FUNCTION_TABLE_d = [importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles]; - var FUNCTION_TABLE_v = [z, big_negative, z, z, w, w, z, w, z, neg, z, z, z, z, z, z]; + var FUNCTION_TABLE_v = [z, big_negative, z, z, w, w, z, w, z, z, z, z, z, z, z, z]; + var FUNCTION_TABLE_vf = [cneg, cneg, cneg, cneg, cneg, cneg, cneg, cneg, cneg, cneg, cneg, cneg, cneg, cneg, cneg, cneg]; return { big_negative: big_negative }; -- cgit v1.2.3