aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralon@honor <none@none>2010-10-02 23:51:22 -0700
committeralon@honor <none@none>2010-10-02 23:51:22 -0700
commita3a01e7d784cdb31fdcbabd46a7f690a9ca990a0 (patch)
treee62b238ae3bde4f8de96b577dab603aed7aa39fa
parent2f64c269303d4731f511e8b77e1ec8fb5f906763 (diff)
add missing branch detection of assign&invoke. all tests pass with relooping
-rw-r--r--src/analyzer.js4
-rw-r--r--tests/runner.py2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/analyzer.js b/src/analyzer.js
index b44165b1..dd14b09a 100644
--- a/src/analyzer.js
+++ b/src/analyzer.js
@@ -320,6 +320,8 @@ function analyzer(data) {
}
if (['branch', 'invoke'].indexOf(line.intertype) != -1) {
process(line);
+ } else if (line.intertype == 'assign' && line.value.intertype == 'invoke') {
+ process(line.value);
} else if (line.intertype == 'switch') {
process(line);
line.switchLabels.forEach(process);
@@ -361,6 +363,8 @@ function analyzer(data) {
}
if (['branch', 'invoke'].indexOf(line.intertype) != -1) {
process(line);
+ } else if (line.intertype == 'assign' && line.value.intertype == 'invoke') {
+ process(line.value);
} else if (line.intertype == 'switch') {
process(line);
line.switchLabels.forEach(process);
diff --git a/tests/runner.py b/tests/runner.py
index dc3dfba0..915e795d 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -826,8 +826,6 @@ class T(unittest.TestCase):
# used, see Mozilla bug 593659.
assert PARSER_ENGINE != SPIDERMONKEY_ENGINE
- assert not RELOOP
-
self.do_test(path_from_root(['tests', 'sauer']), '*\nTemp is 33\n9\n5\nhello, everyone\n*', main_file='command.cpp')
# Generate tests for all our compilers