aboutsummaryrefslogtreecommitdiff
path: root/tools/test-js-optimizer-regs-output.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-06-05 18:37:01 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-06-05 19:01:10 -0700
commit24807a6d8f657b27e0ae6b73e73fa987a0672480 (patch)
tree778bdee6fa5d25d1390bd291a777fa7ac79ea93e /tools/test-js-optimizer-regs-output.js
parent0e4a1c01e3f09751c72c57bf9e8bddfc5581bd53 (diff)
simplify infinite while loops with a break at the end into a do-while with a condition
Diffstat (limited to 'tools/test-js-optimizer-regs-output.js')
-rw-r--r--tools/test-js-optimizer-regs-output.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/test-js-optimizer-regs-output.js b/tools/test-js-optimizer-regs-output.js
index fe7de5fb..c1c9ec87 100644
--- a/tools/test-js-optimizer-regs-output.js
+++ b/tools/test-js-optimizer-regs-output.js
@@ -229,4 +229,9 @@ function __ZN14NetworkAddressC1EPKcti(r1) {
__ZN14NetworkAddressC2EPKcti(r1);
return;
}
+function looop() {
+ do {
+ do_it();
+ } while (!condition());
+}