aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-09 20:45:59 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-03-09 20:45:59 -0800
commit683c5b45085fd947d66e7ade49e1bc1df000c06a (patch)
tree2b1bfe17677bf3f1120d531481afd3a4ea79efcb
parentb5c3e1bda0ef9080228f452ce7ca8c60d3dcf452 (diff)
move asm return adding test to right place
-rw-r--r--tools/test-js-optimizer-asm-pre-output.js20
-rw-r--r--tools/test-js-optimizer-asm-pre.js23
-rw-r--r--tools/test-js-optimizer-asm-regs-output.js20
-rw-r--r--tools/test-js-optimizer-asm-regs.js23
4 files changed, 43 insertions, 43 deletions
diff --git a/tools/test-js-optimizer-asm-pre-output.js b/tools/test-js-optimizer-asm-pre-output.js
index 745873f8..53619c84 100644
--- a/tools/test-js-optimizer-asm-pre-output.js
+++ b/tools/test-js-optimizer-asm-pre-output.js
@@ -53,4 +53,24 @@ function b($this, $__n) {
HEAP8[$38 + $40 & 16777215] = 0;
return;
}
+function rett() {
+ if (f()) {
+ g();
+ return 5;
+ }
+ return 0;
+}
+function ret2t() {
+ if (f()) {
+ g();
+ return;
+ }
+}
+function retf() {
+ if (f()) {
+ g();
+ return +h();
+ }
+ return +0;
+}
diff --git a/tools/test-js-optimizer-asm-pre.js b/tools/test-js-optimizer-asm-pre.js
index 36fe245a..0fb7050f 100644
--- a/tools/test-js-optimizer-asm-pre.js
+++ b/tools/test-js-optimizer-asm-pre.js
@@ -53,4 +53,25 @@ function b($this, $__n) {
HEAP8[($38 + $40 | 0) & 16777215] = 0;
return;
}
-// EMSCRIPTEN_GENERATED_FUNCTIONS: ["a", "b"]
+function rett() {
+ if (f()) {
+ g();
+ return 5;
+ }
+ // missing final return, need to add it
+}
+function ret2t() {
+ if (f()) {
+ g();
+ return;
+ }
+ // missing final return, but no need
+}
+function retf() {
+ if (f()) {
+ g();
+ return +h();
+ }
+ // missing final return, need it as a float
+}
+// EMSCRIPTEN_GENERATED_FUNCTIONS: ["a", "b", "rett", "ret2t", "retf"]
diff --git a/tools/test-js-optimizer-asm-regs-output.js b/tools/test-js-optimizer-asm-regs-output.js
index 8c0bd970..bb6a502b 100644
--- a/tools/test-js-optimizer-asm-regs-output.js
+++ b/tools/test-js-optimizer-asm-regs-output.js
@@ -18,26 +18,6 @@ function _doit(i1, i2, i3) {
STACKTOP = i1;
return 0 | 0;
}
-function rett() {
- if (f()) {
- g();
- return 5;
- }
- return 0;
-}
-function ret2t() {
- if (f()) {
- g();
- return;
- }
-}
-function retf() {
- if (f()) {
- g();
- return +h();
- }
- return +0;
-}
function stackRestore(i1) {
i1 = i1 | 0;
STACKTOP = i1;
diff --git a/tools/test-js-optimizer-asm-regs.js b/tools/test-js-optimizer-asm-regs.js
index a8b637ce..4f7e04d4 100644
--- a/tools/test-js-optimizer-asm-regs.js
+++ b/tools/test-js-optimizer-asm-regs.js
@@ -20,30 +20,9 @@ function _doit($x, $y$0, $y$1) {
STACKTOP = __stackBase__;
return 0 | 0;
}
-function rett() {
- if (f()) {
- g();
- return 5;
- }
- // missing final return, need to add it
-}
-function ret2t() {
- if (f()) {
- g();
- return;
- }
- // missing final return, but no need
-}
-function retf() {
- if (f()) {
- g();
- return +h();
- }
- // missing final return, need it as a float
-}
function stackRestore(top) {
top = top|0;
STACKTOP = top;
}
-// EMSCRIPTEN_GENERATED_FUNCTIONS: ["asm", "_doit", "rett", "ret2t", "retf", "stackRestore"]
+// EMSCRIPTEN_GENERATED_FUNCTIONS: ["asm", "_doit", "stackRestore"]