diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-11-28 16:21:24 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-12-07 14:23:19 -0800 |
commit | 0ec22e206f7b552897dd2c303c84c70b742d0208 (patch) | |
tree | 511adfa839e3a49ddfa27c5ad1afdaae37d9d169 /src/jsifier.js | |
parent | 1dfc355a56d5da67bb6bcb9c821b46c62c47bb77 (diff) |
only use typed function tables in asm_js mode
Diffstat (limited to 'src/jsifier.js')
-rw-r--r-- | src/jsifier.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index 6f40e2d4..9b7e9dc7 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -1228,7 +1228,7 @@ function JSify(data, functionsOnly, givenFunctions) { } if (byPointer) { - ident = 'FUNCTION_TABLE_' + Functions.getSignature(type, argsTypes) + '[' + ident + ']'; + ident = Functions.getTable(Functions.getSignature(type, argsTypes)) + '[' + ident + ']'; } return ident + '(' + args.join(', ') + ')'; @@ -1358,7 +1358,7 @@ function JSify(data, functionsOnly, givenFunctions) { // Load runtime-linked libraries RUNTIME_LINKED_LIBS.forEach(function(lib) { - print('eval(Module["read"]("' + lib + '"))(FUNCTION_TABLE.length, this);'); + print('eval(Module["read"]("' + lib + '"))(' + Functions.getTable('x') + '.length, this);'); }); print(postParts[1]); |