[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/+/1611545
Reviewed-by: Ross McIlroy <rmcilroy@chromium.org>
Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
Commit-Queue: Mythri Alle <mythria@chromium.org>
Cr-Commit-Position: refs/heads/master@{#61513}
This commit is contained in:
Mythri A 2019-05-14 17:31:50 +01:00 committed by Commit Bot
parent a6dcbc545b
commit 61b56e19f8

View File

@ -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);