| Index: test/mjsunit/regress/regress-351261.js
|
| diff --git a/test/mjsunit/regress/regress-347906.js b/test/mjsunit/regress/regress-351261.js
|
| similarity index 56%
|
| copy from test/mjsunit/regress/regress-347906.js
|
| copy to test/mjsunit/regress/regress-351261.js
|
| index c751618928c93015679087ee1b500637657aa341..48af5442fdc9b837a0259cceccdbfd3cf66f1a1d 100644
|
| --- a/test/mjsunit/regress/regress-347906.js
|
| +++ b/test/mjsunit/regress/regress-351261.js
|
| @@ -2,13 +2,18 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -// Flags: --allow-natives-syntax --harmony
|
| +// Flags: --allow-natives-syntax --fold-constants
|
|
|
| -function foo() {
|
| - return Math.clz32(12.34);
|
| +function store(a) {
|
| + a[5000000] = 1;
|
| }
|
|
|
| -foo();
|
| +function foo() {
|
| + var __v_8 = new Object;
|
| + var __v_7 = new Array(4999990);
|
| + store(__v_8);
|
| + store(__v_7);
|
| +}
|
| foo();
|
| %OptimizeFunctionOnNextCall(foo);
|
| foo();
|
|
|