| Index: test/mjsunit/compiler/deopt-accessors5.js
|
| diff --git a/test/mjsunit/regress/regress-crbug-595615.js b/test/mjsunit/compiler/deopt-accessors5.js
|
| similarity index 52%
|
| copy from test/mjsunit/regress/regress-crbug-595615.js
|
| copy to test/mjsunit/compiler/deopt-accessors5.js
|
| index 33095013fa1726d140a411af963c789274ef6594..1b23c532dc169ade6c414c706632f94a877beb10 100644
|
| --- a/test/mjsunit/regress/regress-crbug-595615.js
|
| +++ b/test/mjsunit/compiler/deopt-accessors5.js
|
| @@ -6,10 +6,18 @@
|
|
|
| "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 = {};
|
| + o.__defineSetter__('q', f);
|
| + assertEquals(1, o.q = 1);
|
| +}
|
| +
|
| +test();
|
| +test();
|
| +%OptimizeFunctionOnNextCall(test);
|
| +test();
|
|
|