diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-07-16 16:24:37 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-07-16 16:24:37 -0700 |
commit | 438d0a58916072936de1380306134050ffa3ae28 (patch) | |
tree | 8aac225d765be5d4dc53e930474b469c901bd82b | |
parent | 90cc92ff6c947e3cdb6aca04123464cba24113c8 (diff) |
add smaller outline testcase
-rwxr-xr-x | tests/runner.py | 2 | ||||
-rw-r--r-- | tools/test-js-optimizer-asm-outline1-output.js | 31 | ||||
-rw-r--r-- | tools/test-js-optimizer-asm-outline1.js | 24 |
3 files changed, 57 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index 114c327b..dc406c85 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -11567,6 +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-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 new file mode 100644 index 00000000..f175685d --- /dev/null +++ b/tools/test-js-optimizer-asm-outline1-output.js @@ -0,0 +1,31 @@ +function lin() { + c(1); + c(2); + c(3); + c(4); + lin$1(sp); + lin$0(sp); +} +function lin$0(sp) { + sp = sp | 0; + c(13); + c(14); + c(15); + c(16); + c(17); + c(18); + c(19); + c(20); +} +function lin$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 new file mode 100644 index 00000000..63525a7f --- /dev/null +++ b/tools/test-js-optimizer-asm-outline1.js @@ -0,0 +1,24 @@ +function lin() { + 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 } |