diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-11-30 16:39:14 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-11-30 16:39:34 -0800 |
commit | 13a141ce63875596a9bac36d71577b25e6f1988e (patch) | |
tree | 6e6e5580f3035a36510f2fc24bf13a310ea136de | |
parent | 49660048bffde0caa891da7ebfe1466d15c6e930 (diff) |
disable unneeded (and slow) JSifying of types
-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 f7fc09b8..09723a27 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -49,7 +49,7 @@ function JSify(data, functionsOnly, givenFunctions) { if (mainPass) { // Handle unparsed types TODO: Batch them - JSify(analyzer(intertyper(data.unparsedTypess[0].lines, true)), true, Functions); + analyzer(intertyper(data.unparsedTypess[0].lines, true)); // Add additional necessary items for the main pass. We can now do this since types are parsed (types can be used through // generateStructInfo in library.js) @@ -114,6 +114,7 @@ function JSify(data, functionsOnly, givenFunctions) { // Actors // type + // FIXME: This is no longer used, we do not actually need to JSify on types. TODO: Remove this and related code substrate.addActor('Type', { processItem: function(item) { var type = Types.types[item.name_]; @@ -1111,7 +1112,6 @@ function JSify(data, functionsOnly, givenFunctions) { substrate.addItems(data.functionStubs, 'FunctionStub'); assert(data.functions.length == 0); } else { - substrate.addItems(values(Types.types).filter(function(type) { return type.lineNum != '?' && type.name_ }), 'Type'); substrate.addItems(values(data.globalVariables), 'GlobalVariable'); substrate.addItems(data.aliass, 'Alias'); substrate.addItems(data.functions, 'FunctionSplitter'); |