[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:
parent
8918a05117
commit
f8b46ec083
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user