aboutsummaryrefslogtreecommitdiff
path: root/src/jsifier.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-01-13 13:37:35 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-01-13 13:37:35 -0800
commitc1135eeb3547d747e61a60c0f73e7a82e87981b3 (patch)
tree013e7aed2f2ccbe0c7595c98e40d9f05695b971f /src/jsifier.js
parentfb0508c183c0e5a9fcd6fc13e394e36e9c983cf4 (diff)
don't emit switch in jsifier.js in reloop mode; we would do that in the relooper
Diffstat (limited to 'src/jsifier.js')
-rw-r--r--src/jsifier.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index f4a14eac..44d9cc53 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -1060,7 +1060,7 @@ function JSify(data, functionsOnly, givenFunctions) {
}
});
makeFuncLineActor('switch', function(item) {
- var useIfs = item.switchLabels.length < 1024; // with a huge number of cases, if-else which looks nested to js parsers can cause problems
+ var useIfs = RELOOP || item.switchLabels.length < 1024; // with a huge number of cases, if-else which looks nested to js parsers can cause problems
var phiSets = calcPhiSets(item);
// Consolidate checks that go to the same label. This is important because it makes the relooper simpler and faster.
var targetLabels = {}; // for each target label, the list of values going to it