| Index: test/mjsunit/compiler/regress-645851.js
|
| diff --git a/test/mjsunit/compiler/regress-621423.js b/test/mjsunit/compiler/regress-645851.js
|
| similarity index 57%
|
| copy from test/mjsunit/compiler/regress-621423.js
|
| copy to test/mjsunit/compiler/regress-645851.js
|
| index 962176ffbff75281ae55fed8a05fb40158f0d6f1..0ea70bd71ec53128bdc20873f4731ba19997c890 100644
|
| --- a/test/mjsunit/compiler/regress-621423.js
|
| +++ b/test/mjsunit/compiler/regress-645851.js
|
| @@ -4,18 +4,16 @@
|
|
|
| // Flags: --allow-natives-syntax
|
|
|
| -var a = [0, ""];
|
| -a[0] = 0;
|
| -
|
| -function g(array) {
|
| - array[1] = undefined;
|
| -}
|
| -
|
| function f() {
|
| - g(function() {});
|
| - g(a);
|
| + var sum = 0;
|
| + while (1) {
|
| + for (var j = 0; j < 200; j -= j) {
|
| + sum = sum + 1;
|
| + %OptimizeOsr();
|
| + if (sum == 2) return;
|
| + }
|
| + }
|
| + return sum;
|
| }
|
|
|
| f();
|
| -%OptimizeFunctionOnNextCall(f);
|
| -f();
|
|
|