aboutsummaryrefslogtreecommitdiff
path: root/tools/test-js-optimizer-asm-relocate.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-06-24 13:50:10 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-06-24 13:50:10 -0700
commite94938b90603372d8dadfbbdc0ed4088ef68078b (patch)
treebc4071d790124cd7c7b3f211401fc7d2d0c81262 /tools/test-js-optimizer-asm-relocate.js
parent454e20609b2526c2397cb67386fc759df872fd2f (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.js12
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 }