js/src/jit-test/tests/asm.js/testBug863867.js

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 assertEq((function() {
michael@0 2 'use asm';
michael@0 3 function _main() {
michael@0 4 var $1=0, $2=0, $3=0, $4=0, $5=0, $6=0, $7=0, $8=0, $9=0, $10=0, label=0;
michael@0 5 label = 1;
michael@0 6 while (1) {
michael@0 7 switch (label | 0) {
michael@0 8 case 1:
michael@0 9 $2 = $1 + 14 | 0;
michael@0 10 $3 = $1;
michael@0 11 label = 20;
michael@0 12 break;
michael@0 13 case 20:
michael@0 14 $5 = $2;
michael@0 15 $4 = $3;
michael@0 16 label = 24;
michael@0 17 break;
michael@0 18 case 24:
michael@0 19 $7 = $5 + 1 | 0;
michael@0 20 $8 = $4 + 1 | 0;
michael@0 21 return $8|0;
michael@0 22 case 49:
michael@0 23 $9 = $6 + 1 | 0;
michael@0 24 if ($10) {
michael@0 25 $6 = $9;
michael@0 26 break;
michael@0 27 }
michael@0 28 return 0;
michael@0 29 }
michael@0 30 }
michael@0 31 return 0;
michael@0 32 }
michael@0 33 return _main;
michael@0 34 })()(), 1);

mercurial