Commit 450dfc2b authored by Santiago Aboy Solanes's avatar Santiago Aboy Solanes Committed by Commit Bot

[cleanup][turbofan] Move common SmiUntag code out of if else body

Bug: v8:10021
Change-Id: Id0616fa2c320bd5a817745310debf63fcf58e107
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1950490
Auto-Submit: Santiago Aboy Solanes <solanes@chromium.org>
Reviewed-by: 's avatarTobias Tebbi <tebbi@chromium.org>
Commit-Queue: Tobias Tebbi <tebbi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#65348}
parent d7160560
......@@ -1117,11 +1117,10 @@ void TurboAssembler::SmiUntag(Register dst, Operand src) {
DCHECK(SmiValuesAre31Bits());
if (COMPRESS_POINTERS_BOOL) {
movsxlq(dst, src);
sarq(dst, Immediate(kSmiShift));
} else {
movq(dst, src);
sarq(dst, Immediate(kSmiShift));
}
sarq(dst, Immediate(kSmiShift));
}
}
......
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