diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-07-20 21:15:29 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-07-20 21:15:29 -0700 |
commit | 94c3b3ce73670e928a7613228ac9049aa709ff9a (patch) | |
tree | e1264203aab930934a6dc58b84fe42a6671a2db5 /tools/test-js-optimizer-asm-outline2-output.js | |
parent | a5bb34ba04e1d17a59fda20f6a7e82c64f6ed6cc (diff) |
allow sp to be modified in outlined code, by changing the model to where outlined code returns sp (which also parallels that we sent it as the single parameter)
Diffstat (limited to 'tools/test-js-optimizer-asm-outline2-output.js')
-rw-r--r-- | tools/test-js-optimizer-asm-outline2-output.js | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/tools/test-js-optimizer-asm-outline2-output.js b/tools/test-js-optimizer-asm-outline2-output.js index f3ab307d..7de41008 100644 --- a/tools/test-js-optimizer-asm-outline2-output.js +++ b/tools/test-js-optimizer-asm-outline2-output.js @@ -13,10 +13,10 @@ function linear() { cheez(1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0); HEAP32[sp + 0 >> 2] = 0; HEAP32[sp + 8 >> 2] = 0; - linear$1(sp); + sp = linear$1(sp) | 0; HEAP32[sp + 0 >> 2] = 0; HEAP32[sp + 8 >> 2] = 0; - linear$0(sp); + sp = linear$0(sp) | 0; STACKTOP = sp; } function _free($mem) { @@ -57,7 +57,7 @@ function _free($mem) { HEAP32[sp + 8 >> 2] = $5; HEAP32[sp + 216 >> 2] = $p_0; HEAP32[sp + 208 >> 2] = $psize_0; - _free$1(sp); + sp = _free$1(sp) | 0; $p_0 = HEAP32[sp + 216 >> 2] | 0; $psize_0 = HEAP32[sp + 208 >> 2] | 0; if ((HEAP32[sp + 632 >> 2] | 0) == 5) { @@ -94,7 +94,7 @@ function _free($mem) { HEAP32[sp + 224 >> 2] = $189; HEAP32[sp + 0 >> 2] = $mem; HEAP32[sp + 16 >> 2] = $10; - _free$2(sp); + sp = _free$2(sp) | 0; if ((HEAP32[sp + 632 >> 2] | 0) == 5) { return; } @@ -114,6 +114,7 @@ function linear$0(sp) { cheez(1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0); cheez(1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0); cheez(1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0); + return sp | 0; } function linear$1(sp) { sp = sp | 0; @@ -130,6 +131,7 @@ function linear$1(sp) { cheez(1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0); cheez(1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0); cheez(1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0); + return sp | 0; } function _free$0(sp) { sp = sp | 0; @@ -317,6 +319,7 @@ function _free$0(sp) { break OL; } while (0); HEAP32[sp + 416 >> 2] = $psize_1; + return sp | 0; } function _free$1(sp) { sp = sp | 0; @@ -520,6 +523,7 @@ function _free$1(sp) { } while (0); HEAP32[sp + 216 >> 2] = $p_0; HEAP32[sp + 208 >> 2] = $psize_0; + return sp | 0; } function _free$2(sp) { sp = sp | 0; @@ -561,7 +565,7 @@ function _free$2(sp) { HEAP32[sp + 0 >> 2] = $mem; HEAP32[sp + 16 >> 2] = $10; HEAP32[sp + 416 >> 2] = $psize_1; - _free$0(sp); + sp = _free$0(sp) | 0; $psize_1 = HEAP32[sp + 416 >> 2] | 0; if ((HEAP32[sp + 632 >> 2] | 0) == 5) { HEAP32[sp + 632 >> 2] = 5; @@ -702,5 +706,6 @@ function _free$2(sp) { HEAP32[sp + 632 >> 2] = 5; break OL; } while (0); + return sp | 0; } |