aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-11-06 14:27:06 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-11-06 14:27:06 -0800
commit0ed515d547bc367e260e769b96d0b42ee9deba1e (patch)
tree8c5a05fdf8091cf98ecd19a1be59e754f4dba195 /src
parent6942df9f2d8f463eff9e6c70580d4719cabcffa9 (diff)
remove now-unneeded currFunctions
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: {},