diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-02-27 11:39:30 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-02-27 11:39:30 -0800 |
commit | 2de8bb327d67075c339531ab23300200fb8714de (patch) | |
tree | be441ac15fee6ade2baadad8971daf741fa7816a /src/jsifier.js | |
parent | f5601d0f69dda3fca34beb84537d52f6b8d0e927 (diff) |
legalize switch i64
Diffstat (limited to 'src/jsifier.js')
-rw-r--r-- | src/jsifier.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index fccfaa74..56e49788 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -924,7 +924,7 @@ function JSify(data, functionsOnly, givenFunctions) { } else { first = false; } - ret += 'if (' + targetLabels[targetLabel].map(function(value) { return item.ident + ' == ' + value }).join(' || ') + ') {\n'; + ret += 'if (' + targetLabels[targetLabel].map(function(value) { return makeComparison(item.ident, value, item.type) }).join(' || ') + ') {\n'; ret += ' ' + getPhiSetsForLabel(phiSets, targetLabel) + makeBranch(targetLabel, item.currLabelId || null) + '\n'; ret += '}\n'; } |