diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-08-29 15:59:30 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-09-03 14:41:30 -0700 |
commit | b433dcd0a62f147047f94b6813227e1ed701ec22 (patch) | |
tree | d6bf151ca9c8cda1fcff46c3dcf64e0fc825351c | |
parent | 836521dd2c71c6c208733d28b8eed3cc123be5a7 (diff) |
move neededTables assignment to right place; fixes test_dlfcn_unique_sig
-rw-r--r-- | src/jsifier.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index c3ba6e74..460660b4 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -1557,11 +1557,11 @@ function JSify(data, functionsOnly, givenFunctions) { var sig = Functions.getSignature(returnType, argsTypes, hasVarArgs); if (ASM_JS) { assert(returnType.search(/\("'\[,/) == -1); // XXX need isFunctionType(type, out) + Functions.neededTables[sig] = 1; var functionTableCall = !byPointerForced && !funcData.setjmpTable && !invoke; if (functionTableCall) { // normal asm function pointer call callIdent = '(' + callIdent + ')&{{{ FTM_' + sig + ' }}}'; // the function table mask is set in emscripten.py - Functions.neededTables[sig] = 1; } else { // This is a call through an invoke_*, either a forced one, or a setjmp-required one // note: no need to update argsTypes at this point |