diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-06-24 13:50:10 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-06-24 13:50:10 -0700 |
commit | e94938b90603372d8dadfbbdc0ed4088ef68078b (patch) | |
tree | bc4071d790124cd7c7b3f211401fc7d2d0c81262 /tools/test-js-optimizer-asm-relocate.js | |
parent | 454e20609b2526c2397cb67386fc759df872fd2f (diff) |
relocation pass for shared modules
Diffstat (limited to 'tools/test-js-optimizer-asm-relocate.js')
-rw-r--r-- | tools/test-js-optimizer-asm-relocate.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/test-js-optimizer-asm-relocate.js b/tools/test-js-optimizer-asm-relocate.js new file mode 100644 index 00000000..a45bc2f0 --- /dev/null +++ b/tools/test-js-optimizer-asm-relocate.js @@ -0,0 +1,12 @@ +function leaveMeAlone(c) { +} +function replaceMe(a, b) { +} +function a(x, y) { + replaceMe(H_BASE + 1, F_BASE + 2); + replaceMe(H_BASE + 1 | 0, F_BASE + 2 | 0); + leaveMeAlone(F_BASE + x, H_BASE + y); + leaveMeAlone(F_BASE + x | 0, H_BASE + y | 0); +} +// EMSCRIPTEN_GENERATED_FUNCTIONS +// EXTRA_INFO: { "replacements": { "replaceMe": "fixed" }, "hBase": 33, "fBase": 10 } |