Index: test/mjsunit/regress/regress-5380.js |
diff --git a/test/mjsunit/regress/regress-crbug-645103.js b/test/mjsunit/regress/regress-5380.js |
similarity index 56% |
copy from test/mjsunit/regress/regress-crbug-645103.js |
copy to test/mjsunit/regress/regress-5380.js |
index 4f5f6629015d0a680940ef4cd1760f18a74ca7d2..98811083790dfa3f8aa1ca1b7f489d40f5fc87af 100644 |
--- a/test/mjsunit/regress/regress-crbug-645103.js |
+++ b/test/mjsunit/regress/regress-5380.js |
@@ -4,14 +4,14 @@ |
// Flags: --allow-natives-syntax --ignition-staging --turbo |
-class Base {} |
-class Subclass extends Base { |
- constructor() { |
- %DeoptimizeNow(); |
- super(); |
+function f(do_osr) { |
+ for (var i = 0; i < 3; ++i) { |
+ if (i == 1 && do_osr) %OptimizeOsr(); |
} |
} |
-new Subclass(); |
-new Subclass(); |
-%OptimizeFunctionOnNextCall(Subclass); |
-new Subclass(); |
+ |
+f(false); |
+f(false); |
+%BaselineFunctionOnNextCall(f); |
+f(false); |
+f(true); |