| Index: test/mjsunit/compiler/deopt-accessors6.js
|
| diff --git a/test/mjsunit/regress/regress-crbug-595615.js b/test/mjsunit/compiler/deopt-accessors6.js
|
| similarity index 51%
|
| copy from test/mjsunit/regress/regress-crbug-595615.js
|
| copy to test/mjsunit/compiler/deopt-accessors6.js
|
| index 33095013fa1726d140a411af963c789274ef6594..16fb4ddf6409a0f423074b6817baa3c02d024d26 100644
|
| --- a/test/mjsunit/regress/regress-crbug-595615.js
|
| +++ b/test/mjsunit/compiler/deopt-accessors6.js
|
| @@ -6,10 +6,19 @@
|
|
|
| "use strict";
|
|
|
| -function f(o) {
|
| - return o.x();
|
| +function f(v) {
|
| + %DeoptimizeFunction(test);
|
| + return 153;
|
| }
|
| -try { f({ x: 1 }); } catch(e) {}
|
| -try { f({ x: 1 }); } catch(e) {}
|
| -%OptimizeFunctionOnNextCall(f);
|
| -try { f({ x: 1 }); } catch(e) {}
|
| +
|
| +function test() {
|
| + var o = {};
|
| + var q = "q";
|
| + o.__defineSetter__(q, f);
|
| + assertEquals(1, o[q] = 1);
|
| +}
|
| +
|
| +test();
|
| +test();
|
| +%OptimizeFunctionOnNextCall(test);
|
| +test();
|
|
|