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

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:f62c86e52b6e
1 // Breaks with --ion -n. See bug 718122.
2
3 function Foo()
4 { }
5
6 Foo.prototype.bar = function(){
7 print("yes hello");
8 return 5;
9 }
10
11 var x = new Foo();
12
13 function f(x) {
14 // Enter Ion.
15 for (var i=0; i < 41; i++);
16
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 }
21
22 f(x);

mercurial