aboutsummaryrefslogtreecommitdiff
path: root/tools/test-js-optimizer-asm-last-output.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/test-js-optimizer-asm-last-output.js')
-rw-r--r--tools/test-js-optimizer-asm-last-output.js104
1 files changed, 72 insertions, 32 deletions
diff --git a/tools/test-js-optimizer-asm-last-output.js b/tools/test-js-optimizer-asm-last-output.js
index c10cc6b0..1b9ac585 100644
--- a/tools/test-js-optimizer-asm-last-output.js
+++ b/tools/test-js-optimizer-asm-last-output.js
@@ -1,35 +1,75 @@
function finall(x) {
- x = +x;
- var a = 5.0;
- a = +x;
- a = 17;
- a = 44.0;
- a = 44.0;
- a = 44.9;
- a = 1278.0e3;
- a = 12.0e10;
- a = -x;
- a = -17;
- a = -44;
- a = -44;
- a = -44.9;
- a = -1278e3;
- a = -12e10;
- a = +-x;
- a = -17.0;
- a = -44.0;
- a = -44.0;
- a = -44.9;
- a = -1278.0e3;
- a = -12.0e10;
- a = 9223372036854776000.0;
- a = -9223372036854776000.0;
- a = -9223372036854776000.0;
- a = -0x8000000000000000;
- a = 999999984306749400.0;
- a = -999999984306749400.0;
- a = -999999984306749400.0;
- a = -0xde0b6b000000000;
- return 12.0e10;
+ x = +x;
+ var a = 5.0;
+ a = +x;
+ a = 17;
+ a = 44.0;
+ a = 44.0;
+ a = 44.9;
+ a = 1278.0e3;
+ a = 12.0e10;
+ a = -x;
+ a = -17;
+ a = -44;
+ a = -44;
+ a = -44.9;
+ a = -1278e3;
+ a = -12e10;
+ a = +-x;
+ a = -17.0;
+ a = -44.0;
+ a = -44.0;
+ a = -44.9;
+ a = -1278.0e3;
+ a = -12.0e10;
+ a = 9223372036854776000.0;
+ a = -9223372036854776000.0;
+ a = -9223372036854776000.0;
+ a = -0x8000000000000000;
+ a = 999999984306749400.0;
+ a = -999999984306749400.0;
+ a = -999999984306749400.0;
+ a = -0xde0b6b000000000;
+ f(g() | 0);
+ return 12.0e10;
+}
+function looop() {
+ do {
+ do_it();
+ } while (!condition());
+ do {
+ do_it();
+ } while (!(a > b));
+ do {
+ do_it();
+ } while (x());
+ while (1) {
+ do_it();
+ if (a()) continue;
+ if (!x()) {
+ break;
+ }
+ }
+ do {
+ do_it();
+ do {
+ if (a()) continue;
+ } while (b());
+ } while (x());
+ do {
+ do_it();
+ while (b()) {
+ if (a()) continue;
+ }
+ } while (x());
+ X : while (1) {
+ do_it();
+ while (b()) {
+ if (a()) continue X;
+ }
+ if (!x()) {
+ break;
+ }
+ }
}