aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/jsifier.js9
-rw-r--r--src/modules.js3
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