js/src/jit-test/tests/ion/bug732847.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.

     1 try{} catch (x) {}
     3 var callStack = [];
     4 function currentFunc() {
     5     return callStack[0];
     6 }
     7 function reportFailure () {
     8     var funcName = currentFunc();
     9     // play with the result to cause a SEGV.
    10     var prefix = (funcName) ? funcName : "";
    11     // Use OSR to compile the function at the end of the first run.
    12     for (var i=0; i < 50; i++) ;
    13 }
    15 callStack[0] = 'test';
    16 // Run and compile with a string as result of currentFunc.
    17 reportFailure();
    18 callStack[0] = undefined;
    19 // Use previously compiled code with the string assumption.
    20 reportFailure();

mercurial