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

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     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