| Index: test/mjsunit/regress/regress-indirect-push-unchecked.js
|
| diff --git a/test/mjsunit/compiler/regress-ntl-effect.js b/test/mjsunit/regress/regress-indirect-push-unchecked.js
|
| similarity index 54%
|
| copy from test/mjsunit/compiler/regress-ntl-effect.js
|
| copy to test/mjsunit/regress/regress-indirect-push-unchecked.js
|
| index 708fe32828c9197dfa3d8c371ab01cbc1ad3317a..dca7e96d4e86e8f85566dcb1ba8d42f96fd3b8e5 100644
|
| --- a/test/mjsunit/compiler/regress-ntl-effect.js
|
| +++ b/test/mjsunit/regress/regress-indirect-push-unchecked.js
|
| @@ -4,13 +4,17 @@
|
|
|
| // Flags: --allow-natives-syntax
|
|
|
| -function g() {
|
| - throw 0;
|
| -}
|
| +var a = [1.5];
|
|
|
| -function f() {
|
| - g();
|
| - while (1) {}
|
| +function p() {
|
| + Array.prototype.push.call(a, 1.7);
|
| }
|
|
|
| -assertThrows(function () { f(); });
|
| +p();
|
| +p();
|
| +p();
|
| +%OptimizeFunctionOnNextCall(p);
|
| +p();
|
| +a.push({});
|
| +p();
|
| +assertEquals(1.7, a[a.length - 1]);
|
|
|