recover-arguments.js (694B)
1 setJitCompilerOption("baseline.warmup.trigger", 9); 2 setJitCompilerOption("ion.warmup.trigger", 20); 3 4 // Prevent the GC from cancelling compilations, when we expect them to succeed. 5 gczeal(0); 6 7 function rcreate_arguments_object_nouse() { 8 assertRecoveredOnBailout(arguments, true); 9 } 10 11 function rcreate_arguments_object_oneuse() { 12 assertRecoveredOnBailout(arguments, true); 13 return arguments[0]; 14 } 15 16 function rcreate_arguments_object_oneuse_oob() { 17 assertRecoveredOnBailout(arguments, true); 18 return arguments[100]; 19 } 20 21 with ({}) {} 22 for (var i = 0; i < 100; i++) { 23 rcreate_arguments_object_nouse(); 24 rcreate_arguments_object_oneuse(0); 25 rcreate_arguments_object_oneuse_oob(0); 26 }