summaryrefslogtreecommitdiff
path: root/test/wasm2js/labels.2asm.js
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2019-04-25 10:35:22 -0700
committerGitHub <noreply@github.com>2019-04-25 10:35:22 -0700
commitef6020cd5fbf9af61e7fdc17a5c787fc733f793d (patch)
tree4fa531d168f304f050c73abb549a3de079f8a05d /test/wasm2js/labels.2asm.js
parent09945884f7461135286357d14f993f9b5c5a329b (diff)
downloadbinaryen-ef6020cd5fbf9af61e7fdc17a5c787fc733f793d.tar.gz
binaryen-ef6020cd5fbf9af61e7fdc17a5c787fc733f793d.tar.bz2
binaryen-ef6020cd5fbf9af61e7fdc17a5c787fc733f793d.zip
wasm2js: optimize loops and eqz (#2051)
Diffstat (limited to 'test/wasm2js/labels.2asm.js')
-rw-r--r--test/wasm2js/labels.2asm.js15
1 files changed, 6 insertions, 9 deletions
diff --git a/test/wasm2js/labels.2asm.js b/test/wasm2js/labels.2asm.js
index 1e384a69d..e92791960 100644
--- a/test/wasm2js/labels.2asm.js
+++ b/test/wasm2js/labels.2asm.js
@@ -34,7 +34,7 @@ function asmFunc(global, env, buffer) {
var i = 0, $6_1 = 0;
i = 0;
exit : {
- cont : do {
+ cont : while (1) {
i = i + 1 | 0;
if ((i | 0) == (5 | 0)) {
{
@@ -43,8 +43,7 @@ function asmFunc(global, env, buffer) {
}
}
continue cont;
- break cont;
- } while (1);
+ };
}
return $6_1 | 0;
}
@@ -53,7 +52,7 @@ function asmFunc(global, env, buffer) {
var i = 0, $8_1 = 0;
i = 0;
exit : {
- cont : do {
+ cont : while (1) {
i = i + 1 | 0;
if ((i | 0) == (5 | 0)) {
continue cont
@@ -66,8 +65,7 @@ function asmFunc(global, env, buffer) {
}
i = i + 1 | 0;
continue cont;
- break cont;
- } while (1);
+ };
}
return $8_1 | 0;
}
@@ -93,7 +91,7 @@ function asmFunc(global, env, buffer) {
var i = 0, $9_1 = 0;
i = 1;
exit : {
- cont : do {
+ cont : while (1) {
i = i + i | 0;
if (i >>> 0 > max >>> 0) {
{
@@ -102,8 +100,7 @@ function asmFunc(global, env, buffer) {
}
}
continue cont;
- break cont;
- } while (1);
+ };
}
return $9_1 | 0;
}