aboutsummaryrefslogtreecommitdiff
path: root/tools/test-js-optimizer-t3-output.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-06-21 16:37:48 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-06-21 16:37:48 -0700
commitdf420614de18bf8fa8e45a88feabbecd3618b892 (patch)
tree147efa8ebb2c5cacbe83043d5d54c26e3b2ac43f /tools/test-js-optimizer-t3-output.js
parentfb9b76bd934414969e90b75671fd4c64bf689246 (diff)
update tests
Diffstat (limited to 'tools/test-js-optimizer-t3-output.js')
-rw-r--r--tools/test-js-optimizer-t3-output.js90
1 files changed, 45 insertions, 45 deletions
diff --git a/tools/test-js-optimizer-t3-output.js b/tools/test-js-optimizer-t3-output.js
index 924868fa..9a16c2ac 100644
--- a/tools/test-js-optimizer-t3-output.js
+++ b/tools/test-js-optimizer-t3-output.js
@@ -1,49 +1,49 @@
function _png_create_write_struct_2($user_png_ver, $error_ptr, $error_fn, $warn_fn, $mem_ptr, $malloc_fn, $free_fn) {
- var $png_ptr$s2;
- var label;
- label = 2;
- var setjmpTable = {
- "2": (function(value) {
- label = 5;
- $call1 = value;
- }),
- dummy: 0
- };
- while (1) try {
- switch (label) {
- case 2:
- var $png_ptr;
- var $call = _png_create_struct(1);
- $png_ptr = $call;
- var $call1 = (HEAP32[$png_ptr >> 2] = label, 0);
- label = 5;
- break;
- case 5:
- var $2 = $png_ptr;
- if (($call1 | 0) == 0) {
- label = 4;
- break;
- } else {
- label = 3;
- break;
- }
- case 3:
- var $4 = HEAP32[($png_ptr >> 2) + (148 >> 2)];
- _png_free($2, $4);
- HEAP32[($png_ptr >> 2) + (148 >> 2)] = 0;
- _png_destroy_struct($png_ptr);
- var $retval_0 = 0;
- label = 4;
- break;
- case 4:
- var $retval_0;
- return $retval_0;
- default:
- assert(0, "bad label: " + label);
- }
- } catch (e) {
- if (!e.longjmp) throw e;
- setjmpTable[e.label](e.value);
+ var $png_ptr$s2;
+ var label;
+ label = 2;
+ var setjmpTable = {
+ "2": (function(value) {
+ label = 5;
+ $call1 = value;
+ }),
+ dummy: 0
+ };
+ while (1) try {
+ switch (label) {
+ case 2:
+ var $png_ptr;
+ var $call = _png_create_struct(1);
+ $png_ptr = $call;
+ var $call1 = (HEAP32[$png_ptr >> 2] = label, 0);
+ label = 5;
+ break;
+ case 5:
+ var $2 = $png_ptr;
+ if (($call1 | 0) == 0) {
+ label = 4;
+ break;
+ } else {
+ label = 3;
+ break;
+ }
+ case 3:
+ var $4 = HEAP32[($png_ptr >> 2) + (148 >> 2)];
+ _png_free($2, $4);
+ HEAP32[($png_ptr >> 2) + (148 >> 2)] = 0;
+ _png_destroy_struct($png_ptr);
+ var $retval_0 = 0;
+ label = 4;
+ break;
+ case 4:
+ var $retval_0;
+ return $retval_0;
+ default:
+ assert(0, "bad label: " + label);
}
+ } catch (e) {
+ if (!e.longjmp) throw e;
+ setjmpTable[e.label](e.value);
+ }
}