aboutsummaryrefslogtreecommitdiff
path: root/lib/base-compiler.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/base-compiler.js')
-rw-r--r--lib/base-compiler.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/base-compiler.js b/lib/base-compiler.js
index 10cc779c6..67fcf8acc 100644
--- a/lib/base-compiler.js
+++ b/lib/base-compiler.js
@@ -37,9 +37,7 @@ quote = require('shell-quote'),
function Compile(compiler, env) {
this.compiler = compiler;
this.env = env;
- // TODO: make `asm` an object instead of a big fat global. Then CL can instantiate
- // a completely different ASM here instead of a dodgy regexp to choose its parser.
- asm.initialise(env.compilerProps);
+ this.asm = new asm.AsmParser(env.compilerProps);
}
Compile.prototype.newTempDir = function () {
@@ -171,7 +169,7 @@ Compile.prototype.compile = function (source, options, filters) {
result.dirPath = undefined;
}
if (result.okToCache) {
- result.asm = asm.processAsm(result.asm, filters);
+ result.asm = self.asm.process(result.asm, filters);
} else {
result.asm = {text: result.asm};
}