Commit 61b56e19 authored by Mythri A's avatar Mythri A Committed by Commit Bot

[lite] Don't set bailout reason to NeverOptimize in lite mode

We used to set disable optimization bits in SFI to NeverOptimize in lite
mode to avoid optimizing in tests. Now, tests that need optimization use
intrinsics to force feedback vector allocation. Hence this is no longer
necessary.

Bug: v8:8394
Change-Id: I0aeaeacc34d838cf15698a9227b6964292b97240
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1611545Reviewed-by: 's avatarRoss McIlroy <rmcilroy@chromium.org>
Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
Commit-Queue: Mythri Alle <mythria@chromium.org>
Cr-Commit-Position: refs/heads/master@{#61513}
parent a6dcbc54
......@@ -3556,12 +3556,6 @@ Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo(
share->set_raw_function_token_offset(0);
// All flags default to false or 0.
share->set_flags(0);
// For lite mode disable optimization.
if (FLAG_lite_mode) {
share->set_flags(
SharedFunctionInfo::DisabledOptimizationReasonBits::encode(
BailoutReason::kNeverOptimize));
}
share->CalculateConstructAsBuiltin();
share->set_kind(kind);
......
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