| Index: test/mjsunit/regress/regress-arg-materialize-store.js
|
| diff --git a/test/mjsunit/compiler/regress-ntl-effect.js b/test/mjsunit/regress/regress-arg-materialize-store.js
|
| similarity index 55%
|
| copy from test/mjsunit/compiler/regress-ntl-effect.js
|
| copy to test/mjsunit/regress/regress-arg-materialize-store.js
|
| index 708fe32828c9197dfa3d8c371ab01cbc1ad3317a..2a30dc87a33da0aced9afd339fe56efce57933d0 100644
|
| --- a/test/mjsunit/compiler/regress-ntl-effect.js
|
| +++ b/test/mjsunit/regress/regress-arg-materialize-store.js
|
| @@ -4,13 +4,19 @@
|
|
|
| // Flags: --allow-natives-syntax
|
|
|
| -function g() {
|
| - throw 0;
|
| +function f() {
|
| + return f.arguments;
|
| }
|
|
|
| -function f() {
|
| - g();
|
| - while (1) {}
|
| +function g(deopt) {
|
| + var o = { x : 2 };
|
| + f();
|
| + o.x = 1;
|
| + deopt + 0;
|
| + return o.x;
|
| }
|
|
|
| -assertThrows(function () { f(); });
|
| +g(0);
|
| +g(0);
|
| +%OptimizeFunctionOnNextCall(g);
|
| +assertEquals(1, g({}));
|
|
|