aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/jsifier.js12
-rw-r--r--src/modules.js3
2 files changed, 0 insertions, 15 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index 68bf35ab..21628079 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -86,20 +86,8 @@ function JSify(data, functionsOnly, givenFunctions) {
// Functions
- Functions.currFunctions = !mainPass ? givenFunctions.currFunctions : {};
Functions.currExternalFunctions = !mainPass ? givenFunctions.currExternalFunctions : {};
- // Now that first-pass analysis has completed (so we have basic types, etc.), we can get around to handling unparsedFunctions
- // XXX do we need this?
- (!mainPass ? data.functions : data.unparsedFunctions.concat(data.functions)).forEach(function(func) {
- // Save just what we need, to save memory
- Functions.currFunctions[func.ident] = {
- hasVarArgs: func.hasVarArgs,
- numParams: func.params.length,
- labelIds: func.labelIds // TODO: We need this for globals, but perhaps we can calculate them early and free this
- };
- });
-
data.functionStubs.forEach(function(func) {
// Don't overwrite stubs that have more info.
if (!Functions.currExternalFunctions.hasOwnProperty(func.ident) ||
diff --git a/src/modules.js b/src/modules.js
index e955ed71..60b4ff87 100644
--- a/src/modules.js
+++ b/src/modules.js
@@ -212,9 +212,6 @@ var Types = {
};
var Functions = {
- // The list of function datas which are being processed in the jsifier, currently
- currFunctions: [],
-
// All functions that will be implemented in this file
implementedFunctions: {},