1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/ion/invalidation/outofline.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,22 @@ 1.4 +// Breaks with --ion -n. See bug 718122. 1.5 + 1.6 +function Foo() 1.7 +{ } 1.8 + 1.9 +Foo.prototype.bar = function(){ 1.10 + print("yes hello"); 1.11 + return 5; 1.12 +} 1.13 + 1.14 +var x = new Foo(); 1.15 + 1.16 +function f(x) { 1.17 + // Enter Ion. 1.18 + for (var i=0; i < 41; i++); 1.19 + 1.20 + // At this point we have no type information for the GetPropertyCache below. 1.21 + // This causes the cache to be typed as Value. 1.22 + x.bar(); 1.23 +} 1.24 + 1.25 +f(x);