aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <azakai@mozilla.com>2010-11-13 20:19:49 -0800
committerAlon Zakai <azakai@mozilla.com>2010-11-13 20:19:49 -0800
commit1af4b1405eb497741aa63e0a9421d47f6166287a (patch)
tree9730be711f047ec485e47f2571feb51da231235e /src
parent98a5011896379e539b2cb4c5ab1599294d278737 (diff)
remove unnecessary line splitting and recombining
Diffstat (limited to 'src')
-rw-r--r--src/compiler.js3
-rw-r--r--src/intertyper.js4
2 files changed, 3 insertions, 4 deletions
diff --git a/src/compiler.js b/src/compiler.js
index 13b2d3cc..7626bde5 100644
--- a/src/compiler.js
+++ b/src/compiler.js
@@ -41,8 +41,7 @@ do {
if (line == null) break;
lines.push(line);
} while(true);
-var data = lines.join("\n");
// Do it
-print(JSify(analyzer(intertyper(data))));
+print(JSify(analyzer(intertyper(lines))));
diff --git a/src/intertyper.js b/src/intertyper.js
index 6f260c8a..f500a18f 100644
--- a/src/intertyper.js
+++ b/src/intertyper.js
@@ -13,7 +13,7 @@ function intertyper(data) {
// Line splitter.
substrate.addZyme('LineSplitter', {
processItem: function(item) {
- var lines = item.llvmText.split('\n');
+ var lines = item.llvmLines;
var ret = [];
var inContinual = false;
var inFunction = false;
@@ -686,7 +686,7 @@ function intertyper(data) {
// Input
substrate.addItem({
- llvmText: data,
+ llvmLines: data,
}, 'LineSplitter');
return substrate.solve();