js/src/jit-test/tests/ion/invalidation/outofline.js

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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