js/src/jit-test/tests/ion/bug706692.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 // |jit-test| error: TypeError
     3 // Bailout from a stack with multiple ion frames of different flavors.
     4 function f(obj,b,c) {
     5 	return obj(); // Throw error.
     6 }
     8 function g(f,obj) {
     9 	return f(obj); // Call f() with insufficient arguments, generating a RectifierFrame.
    10 }
    12 function h(f, g, obj) {
    13 	return g(f, obj); // EntryFrame. Generate a JSFrame.
    14 }
    16 f(); // Prime f().
    17 g(); // Prime g().
    18 var obj = new Object();
    20 h(f,g,obj);

mercurial