| Index: test/mjsunit/regress/setvalueof-deopt.js
|
| diff --git a/test/mjsunit/recursive-store-opt.js b/test/mjsunit/regress/setvalueof-deopt.js
|
| similarity index 91%
|
| copy from test/mjsunit/recursive-store-opt.js
|
| copy to test/mjsunit/regress/setvalueof-deopt.js
|
| index fb2649248dbabc642f864f671d0ce2273ad44bd7..8c42c8a20baa0845d8450d699e62cd98d7d39c08 100644
|
| --- a/test/mjsunit/recursive-store-opt.js
|
| +++ b/test/mjsunit/regress/setvalueof-deopt.js
|
| @@ -27,15 +27,16 @@
|
|
|
| // Flags: --allow-natives-syntax
|
|
|
| -function g() {
|
| - this.x = this;
|
| +function g(x, y) {
|
| + return y;
|
| }
|
|
|
| -function f() {
|
| - return new g();
|
| +function f(deopt) {
|
| + return g(%_SetValueOf(1, 1), deopt + 0);
|
| }
|
|
|
| -f();
|
| -f();
|
| +f(0);
|
| +f(0);
|
| +f(0);
|
| %OptimizeFunctionOnNextCall(f);
|
| -f();
|
| +assertEquals("result0", f("result"));
|
|
|