| Index: test/mjsunit/regress/regress-arguments-liveness-analysis.js
|
| diff --git a/test/mjsunit/regress/regress-opt-typeof-null.js b/test/mjsunit/regress/regress-arguments-liveness-analysis.js
|
| similarity index 52%
|
| copy from test/mjsunit/regress/regress-opt-typeof-null.js
|
| copy to test/mjsunit/regress/regress-arguments-liveness-analysis.js
|
| index e4721a18c5e0fb95a3b7cb323f229de9f605b64a..95c2c002624248185948380b069743cac80f4a20 100644
|
| --- a/test/mjsunit/regress/regress-opt-typeof-null.js
|
| +++ b/test/mjsunit/regress/regress-arguments-liveness-analysis.js
|
| @@ -4,9 +4,17 @@
|
|
|
| // Flags: --allow-natives-syntax
|
|
|
| -function f() {
|
| - return typeof null === "object";
|
| +function r(v) { return v.f }
|
| +function h() { }
|
| +function y(v) {
|
| + var x = arguments;
|
| + h.apply(r(v), x);
|
| };
|
|
|
| -%OptimizeFunctionOnNextCall(f);
|
| -assertTrue(f());
|
| +y({f:3});
|
| +y({f:3});
|
| +y({f:3});
|
| +
|
| +%OptimizeFunctionOnNextCall(y);
|
| +
|
| +y({ f : 3, u : 4 });
|
|
|