| Index: test/mjsunit/compiler/regress-escape-analysis-indirect.js
|
| diff --git a/test/mjsunit/regress/regress-crbug-644245.js b/test/mjsunit/compiler/regress-escape-analysis-indirect.js
|
| similarity index 51%
|
| copy from test/mjsunit/regress/regress-crbug-644245.js
|
| copy to test/mjsunit/compiler/regress-escape-analysis-indirect.js
|
| index 7f4e00599e7eabfd8923c81debd3633bcfb095fb..6d79a9313374a31125164304325b0620790381d3 100644
|
| --- a/test/mjsunit/regress/regress-crbug-644245.js
|
| +++ b/test/mjsunit/compiler/regress-escape-analysis-indirect.js
|
| @@ -4,15 +4,14 @@
|
|
|
| // Flags: --allow-natives-syntax --turbo --turbo-escape
|
|
|
| -function f() {
|
| - try {
|
| - throw "boom";
|
| - } catch(e) {
|
| - %_DeoptimizeNow();
|
| - }
|
| +function f(apply) {
|
| + var value = 23;
|
| + apply(function bogeyman() { value = 42 });
|
| + return value;
|
| }
|
| -
|
| -f();
|
| -f();
|
| +function apply(fun) { fun() }
|
| +assertEquals(42, f(apply));
|
| +assertEquals(42, f(apply));
|
| +%NeverOptimizeFunction(apply);
|
| %OptimizeFunctionOnNextCall(f);
|
| -f();
|
| +assertEquals(42, f(apply));
|
|
|