Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: test/mjsunit/regress/regress-5380.js

Issue 2341663002: [compiler] Fix confusion about OSR BailoutId semantics. (Closed)
Patch Set: Fix typo. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « src/compiler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698