diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-11-06 14:15:47 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-11-06 14:15:47 -0800 |
commit | 5318a2f9cdc2279a0e04441e539ff38613597f25 (patch) | |
tree | 34a8b9cd655cf1526514fc0a47562c8fd8b28ddd /src | |
parent | ef4003eadf90b9fa00cb12b8ce400ee428d8ccd2 (diff) |
fix printing of GENERATED_FUNCTIONS
Diffstat (limited to 'src')
-rw-r--r-- | src/jsifier.js | 9 | ||||
-rw-r--r-- | src/modules.js | 3 |
2 files changed, 3 insertions, 9 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index a28b34ec..dcf4e3fa 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -1224,11 +1224,6 @@ function JSify(data, functionsOnly, givenFunctions) { if (!mainPass) { var generated = itemsDict.function.concat(itemsDict.type).concat(itemsDict.GlobalVariableStub).concat(itemsDict.GlobalVariable).concat(itemsDict.GlobalVariablePostSet); - Functions.allIdents = Functions.allIdents.concat(itemsDict.function.map(function(func) { - return func.ident; - }).filter(function(func) { - return IGNORED_FUNCTIONS.indexOf(func.ident) < 0; - })); if (!DEBUG_MEMORY) print(generated.map(function(item) { return item.JS }).join('\n')); return; } @@ -1276,7 +1271,9 @@ function JSify(data, functionsOnly, givenFunctions) { var shellParts = read(shellFile).split('{{BODY}}'); print(shellParts[1]); // Print out some useful metadata (for additional optimizations later, like the eliminator) - print('// EMSCRIPTEN_GENERATED_FUNCTIONS: ' + JSON.stringify(Functions.allIdents) + '\n'); + print('// EMSCRIPTEN_GENERATED_FUNCTIONS: ' + JSON.stringify(keys(Functions.implementedFunctions).filter(function(func) { + return IGNORED_FUNCTIONS.indexOf(func.ident) < 0; + })) + '\n'); return null; } diff --git a/src/modules.js b/src/modules.js index fe2f79cd..97dbe223 100644 --- a/src/modules.js +++ b/src/modules.js @@ -218,9 +218,6 @@ var Functions = { // All functions that will be implemented in this file implementedFunctions: [], - // All the function idents seen so far - allIdents: [], - indexedFunctions: {}, nextIndex: 2, // Start at a non-0 (even, see below) value |