aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/runner.py4
-rw-r--r--tools/test-js-optimizer-asm-outline1-output.js32
-rw-r--r--tools/test-js-optimizer-asm-outline1.js24
3 files changed, 58 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py
index d56c27ee..6e3ae8b1 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -11567,8 +11567,8 @@ f.close()
['asm', 'last']),
(path_from_root('tools', 'test-js-optimizer-asm-relocate.js'), open(path_from_root('tools', 'test-js-optimizer-asm-relocate-output.js')).read(),
['asm', 'relocate']),
- #(path_from_root('tools', 'test-js-optimizer-asm-outline1.js'), open(path_from_root('tools', 'test-js-optimizer-asm-outline1-output.js')).read(),
- # ['asm', 'outline']),
+ (path_from_root('tools', 'test-js-optimizer-asm-outline1.js'), open(path_from_root('tools', 'test-js-optimizer-asm-outline1-output.js')).read(),
+ ['asm', 'outline']),
#(path_from_root('tools', 'test-js-optimizer-asm-outline2.js'), open(path_from_root('tools', 'test-js-optimizer-asm-outline2-output.js')).read(),
# ['asm', 'outline']),
]:
diff --git a/tools/test-js-optimizer-asm-outline1-output.js b/tools/test-js-optimizer-asm-outline1-output.js
index f175685d..2c684622 100644
--- a/tools/test-js-optimizer-asm-outline1-output.js
+++ b/tools/test-js-optimizer-asm-outline1-output.js
@@ -6,6 +6,16 @@ function lin() {
lin$1(sp);
lin$0(sp);
}
+function lin2() {
+ while (1) {
+ c(1);
+ c(2);
+ c(3);
+ c(4);
+ lin2$1(sp);
+ lin2$0(sp);
+ }
+}
function lin$0(sp) {
sp = sp | 0;
c(13);
@@ -28,4 +38,26 @@ function lin$1(sp) {
c(11);
c(12);
}
+function lin2$0(sp) {
+ sp = sp | 0;
+ c(13);
+ c(14);
+ c(15);
+ c(16);
+ c(17);
+ c(18);
+ c(19);
+ c(20);
+}
+function lin2$1(sp) {
+ sp = sp | 0;
+ c(5);
+ c(6);
+ c(7);
+ c(8);
+ c(9);
+ c(10);
+ c(11);
+ c(12);
+}
diff --git a/tools/test-js-optimizer-asm-outline1.js b/tools/test-js-optimizer-asm-outline1.js
index 63525a7f..b4f55bd7 100644
--- a/tools/test-js-optimizer-asm-outline1.js
+++ b/tools/test-js-optimizer-asm-outline1.js
@@ -20,5 +20,29 @@ function lin() {
c(19);
c(20);
}
+function lin2() {
+ while (1) {
+ c(1);
+ c(2);
+ c(3);
+ c(4);
+ c(5);
+ c(6);
+ c(7);
+ c(8);
+ c(9);
+ c(10);
+ c(11);
+ c(12);
+ c(13);
+ c(14);
+ c(15);
+ c(16);
+ c(17);
+ c(18);
+ c(19);
+ c(20);
+ }
+}
// EMSCRIPTEN_GENERATED_FUNCTIONS
// EXTRA_INFO: { "sizeToOutline": 30 }