js/src/jit-test/tests/ion/invalidation/outofline.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 // Breaks with --ion -n. See bug 718122.
     3 function Foo()
     4 { }
     6 Foo.prototype.bar = function(){
     7 	print("yes hello");
     8 	return 5;
     9 }
    11 var x = new Foo();
    13 function f(x) {
    14 	// Enter Ion.
    15 	for (var i=0; i < 41; i++);
    17 	// At this point we have no type information for the GetPropertyCache below.
    18 	// This causes the cache to be typed as Value.
    19 	x.bar();
    20 }
    22 f(x);

mercurial