Chromium Code Reviews| Index: test/mjsunit/compiler/regress-closures-with-eval.js |
| diff --git a/test/mjsunit/compiler/regress-closures-with-eval.js b/test/mjsunit/compiler/regress-closures-with-eval.js |
| index 507d74f33ea54f8028f446586b6e1a8a41e5d0b4..babc6288751cf7e81c57dd17041c765a33388340 100644 |
| --- a/test/mjsunit/compiler/regress-closures-with-eval.js |
| +++ b/test/mjsunit/compiler/regress-closures-with-eval.js |
| @@ -25,12 +25,15 @@ |
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| +// Flags: --allow-natives-syntax |
| + |
| // Verifies that closures in presence of eval work fine. |
| function withEval(expr, filter) { |
| function walk(v) { |
| for (var i in v) { |
| for (var i in v) {} |
| } |
| + %OptimizeFunctionOnNextCall(filter); |
| return filter(v); |
| } |
| @@ -46,6 +49,7 @@ function makeTagInfoJSON(n) { |
| var expr = '([' + makeTagInfoJSON(128).join(', ') + '])' |
| -for (var n = 0; n < 300; n++) { |
| +for (var n = 0; n < 5; n++) { |
| withEval(expr, function(a) { return a; }); |
| } |
| +%OptimizeFunctionOnNextCall(withEval); |
|
Mads Ager (chromium)
2011/05/03 13:05:08
Does this actually do anything? Will there be anot
Karl Klose
2011/05/03 13:23:23
Oops, call added.
|