[turbofan] Adding missing DecompressionElimination flag check

Effect control linearization knows about compressed values only when
DecompressionElimination is active.

Bug: v8:7703
Change-Id: I7854488322f846f94c644e057ab1c32641adf662
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1883896
Reviewed-by: Tobias Tebbi <tebbi@chromium.org>
Commit-Queue: Santiago Aboy Solanes <solanes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#64637}
This commit is contained in:
Santiago Aboy Solanes 2019-10-28 16:18:54 +00:00 committed by Commit Bot
parent 7bd4068101
commit 2b9c0b3c51

View File

@ -6012,7 +6012,7 @@ Node* EffectControlLinearizer::LowerFindOrderedHashMapEntryForInt32Key(
auto if_match = __ MakeLabel();
auto if_notmatch = __ MakeLabel();
auto if_notsmi = __ MakeDeferredLabel();
if (COMPRESS_POINTERS_BOOL) {
if (COMPRESS_POINTERS_BOOL && FLAG_turbo_decompression_elimination) {
__ GotoIfNot(ObjectIsSmi(candidate_key), &if_notsmi);
__ Branch(__ Word32Equal(ChangeCompressedSmiToInt32(candidate_key), key),
&if_match, &if_notmatch);