[maglev][arm64] Fix wrong scaling in StringCharCodeAt
Bug: v8:7700 Change-Id: I940280221deabf49c87fdc099afb77bfce9015c4 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4128531 Auto-Submit: Darius Mercadier <dmercadier@chromium.org> Reviewed-by: Victor Gomes <victorgomes@chromium.org> Commit-Queue: Darius Mercadier <dmercadier@chromium.org> Commit-Queue: Victor Gomes <victorgomes@chromium.org> Cr-Commit-Position: refs/heads/main@{#85078}
This commit is contained in:
parent
1fe6f5ca92
commit
58421a8165
@ -519,7 +519,7 @@ void MaglevAssembler::StringCharCodeAt(RegisterSnapshot& register_snapshot,
|
||||
B(result_fits_one_byte);
|
||||
|
||||
bind(&two_byte_string);
|
||||
Lsl(index, index, 2);
|
||||
Lsl(index, index, 1);
|
||||
Add(index, index, SeqTwoByteString::kHeaderSize - kHeapObjectTag);
|
||||
Ldrh(result, MemOperand(string, index));
|
||||
// Fallthrough.
|
||||
|
Loading…
Reference in New Issue
Block a user