| Index: test/mjsunit/compiler/type-feedback-after-throw.js
|
| diff --git a/test/mjsunit/regress/regress-171641.js b/test/mjsunit/compiler/type-feedback-after-throw.js
|
| similarity index 91%
|
| copy from test/mjsunit/regress/regress-171641.js
|
| copy to test/mjsunit/compiler/type-feedback-after-throw.js
|
| index 8db6781821325f8f6253eb2df4abb2b362b001c0..891e315c5c1121fb1674ee4094890266a7708889 100644
|
| --- a/test/mjsunit/regress/regress-171641.js
|
| +++ b/test/mjsunit/compiler/type-feedback-after-throw.js
|
| @@ -27,14 +27,12 @@
|
|
|
| // Flags: --allow-natives-syntax
|
|
|
| -function foo(k, p) {
|
| - for (var i = 0; i < 1; i++) {
|
| - p = Math.min(p, i);
|
| - }
|
| - m = Math.floor((k | 0) / p);
|
| -}
|
| +function foo() {
|
| + throw "Error";
|
| + return 1 > 5;
|
| +};
|
|
|
| -foo(0, 1);
|
| -foo(0, 1);
|
| +try { foo() } catch(e) {}
|
| +try { foo() } catch(e) {}
|
| %OptimizeFunctionOnNextCall(foo);
|
| -foo(0, 1);
|
| +try { foo() } catch(e) {}
|
|
|