diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-11-28 15:48:48 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-11-28 15:48:48 -0800 |
commit | 30f27aa86bdfdc92645f949ace36eefd6053b6cb (patch) | |
tree | 4bdc3be404fc1a0e4ca38e9c68dcca1179f7c7d0 /src/intertyper.js | |
parent | 6c3b08991b7a6ea5d30682dbd3af0d9e9b479811 (diff) |
memory debugging code, and some minor optimizations from it
Diffstat (limited to 'src/intertyper.js')
-rw-r--r-- | src/intertyper.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intertyper.js b/src/intertyper.js index b01d2a88..45e36b15 100644 --- a/src/intertyper.js +++ b/src/intertyper.js @@ -90,7 +90,7 @@ function intertyper(data, parseFunctions, baseLineNum) { } } } - this.forwardItems(ret.filter(function(item) { return item.lineText; }), 'Tokenizer'); + this.forwardItems(ret.filter(function(item) { return item.lineText && item.lineText[0] != ';'; }), 'Tokenizer'); return unparsedFunctions; } }); @@ -312,7 +312,7 @@ function intertyper(data, parseFunctions, baseLineNum) { } if (tokensLength >= 3 && (token0Text == 'call' || token1Text == 'call')) return 'Call'; - if (token0Text in set(';', 'target')) + if (token0Text == 'target') return '/dev/null'; if (tokensLength >= 3 && token0Text == 'invoke') return 'Invoke'; |