aboutsummaryrefslogtreecommitdiff
path: root/tools/test-js-optimizer.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-15 19:12:48 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-15 19:12:48 -0800
commitcad9b242be49d551f07e1df803594164eb4a7e57 (patch)
treee22fca437ff29f88294e65847b83cd84cc584417 /tools/test-js-optimizer.js
parent680e9c48bac764ba57c8a5c8dfa6981041caf480 (diff)
js optimizer pass to join together additions
Diffstat (limited to 'tools/test-js-optimizer.js')
-rw-r--r--tools/test-js-optimizer.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/test-js-optimizer.js b/tools/test-js-optimizer.js
index c59454e6..0665462b 100644
--- a/tools/test-js-optimizer.js
+++ b/tools/test-js-optimizer.js
@@ -84,6 +84,8 @@ function bits() { // TODO: optimize this!
print((($s & 65535) + ((($f & 65535) << 16 >> 16) * (($f & 65535) << 16 >> 16) | 0 | 0) % 256 | 0) & 65535);
}
function maths() {
+ check(5+12);
+ check(90+3+2);
__ZN6b2Vec2C1Ev(((((((($this1 + 20 | 0 | 0) + 8 | 0) + 8 | 0) + 8 | 0) + 8 | 0) + 8 | 0) + 8 | 0) + 8 | 0);
}
// EMSCRIPTEN_GENERATED_FUNCTIONS: ["abc", "xyz", "xyz2", "expr", "loopy", "bits", "maths"]