Commit 6d787191 authored by Georg Neis's avatar Georg Neis Committed by V8 LUCI CQ

[compiler] Prevent unexpected deopts causing test flakes

Bug: v8:12201
Change-Id: I9a225184a887002859882d6960432a71da28b76e
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3168230
Commit-Queue: Georg Neis <neis@chromium.org>
Commit-Queue: Nico Hartmann <nicohartmann@chromium.org>
Auto-Submit: Georg Neis <neis@chromium.org>
Reviewed-by: 's avatarNico Hartmann <nicohartmann@chromium.org>
Cr-Commit-Position: refs/heads/main@{#76899}
parent 04f26c63
......@@ -41,6 +41,7 @@
%OptimizeFunctionForTopTier(foo);
assertEquals(78, foo(26, 6, 46, null));
assertOptimized(foo);
%PrepareFunctionForOptimization(foo);
if (i < 3) {
assertFalse(sum_js_got_interpreted);
......@@ -60,6 +61,7 @@
assertUnoptimized(foo);
} else {
assertOptimized(foo);
%PrepareFunctionForOptimization(foo);
}
}
})();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment