[maglev] Fix scratch register in StringAt

Bug: v8:7700, v8:13397, chromium:1376856
Change-Id: I6b75658e41e7f1b44c62274011876a03ab8c8414
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3967903
Reviewed-by: Leszek Swirski <leszeks@chromium.org>
Auto-Submit: Victor Gomes <victorgomes@chromium.org>
Commit-Queue: Leszek Swirski <leszeks@chromium.org>
Cr-Commit-Position: refs/heads/main@{#83824}
This commit is contained in:
Victor Gomes 2022-10-20 16:33:29 +02:00 committed by V8 LUCI CQ
parent 8918a05117
commit f8b46ec083

View File

@ -1958,7 +1958,7 @@ void StringAt::GenerateCode(MaglevAssembler* masm,
__ bind(&sliced_string);
{
Register offset = rcx;
Register offset = scratch1;
__ movl(offset, FieldOperand(string_object, SlicedString::kOffsetOffset));
__ SmiUntag(offset);
__ DecompressAnyTagged(