Sat, 03 Jan 2015 20:18:00 +0100
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 setJitCompilerOption("ion.usecount.trigger", 50);
2 var f32 = new Float32Array(32);
3 f32[0] = 0;
5 function g(x) {
6 eval(""); // don't inline
7 return x + 4;
8 }
10 function f(n) {
11 var x;
12 if (n > 10000) {
13 x = 4.5;
14 } else {
15 x = f32[0];
16 }
17 f32[0] = g(x);
18 }
20 for (var n = 0; n < 100; n++)
21 f(n);
23 assertEq(f32[0], 400);