test/mjsunit/compiler/deopt-pretenure.js
// Trigger pretenuring decision change during OSR.
Trigger pretenuring decision change during OSR.
Trigger pretenuring decision change during OSR .
function createSource(name, fillCnt) {
  var src =
  `function ${name}() {
     let arr = [];
     for (var i = 0; i < 10; i++) {
       let local_arr = [];
       arr[i] = local_arr;`
  for (var i = 0; i < fillCnt; i++) {
    src += '    try {} catch (e) {}\n';
  }
  src +=
  `    if (i == 5) {
         %OptimizeOsr();
         %PretenureAllocationSite(local_arr);
       }
     }
   }
   %PrepareFunctionForOptimization(${name});
   ${name}();`
  return src;
}
function createSource ( name , fillCnt ) { var src = ` ${ name } ` for ( var i = 0 ; i < fillCnt ; i ++ ) { src += '    try {} catch (e) {}\n' ; } src += ` ${ name } ${ name } ` return src ; }
Trigger pretenuring decision change during OSR.
Trigger pretenuring decision change during OSR .
// Useless bytecodes to force a wider jump.