(deopt)
| 87 | (function() { |
| 88 | var a = [1, 2, 3, 4, 5]; |
| 89 | var lazyDeselection = function(deopt) { |
| 90 | var callback = function(v,i,o) { |
| 91 | if (i === 2 && deopt) { |
| 92 | %DeoptimizeNow(); |
| 93 | return false; |
| 94 | } |
| 95 | return true; |
| 96 | } |
| 97 | return a.filter(callback); |
| 98 | }; |
| 99 | %PrepareFunctionForOptimization(lazyDeselection); |
| 100 | assertEquals(a, lazyDeselection()); |
| 101 | lazyDeselection(); |
no test coverage detected
searching dependent graphs…