v8/test
Joyee Cheung 90a39679fd [string] handle strings sliced from externalized one-byte strings
...in Runtime_StringToArray.

When a string is sliced from an externalized two-byte string that has
only one-byte chars, String::IsFlat() and
should not call ToOneByteVector() on it and instead we should use

String: :IsOneByteRepresentation() can both be true, while
FlatContent: :IsOneByte() returns false. In this case we
String: :Get() to get the individual characters.
Bug: chromium:1350270
Change-Id: I735408602072279f09b32e1997c97b2900942bdd
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3813070
Reviewed-by: Leszek Swirski <leszeks@chromium.org>
Commit-Queue: Joyee Cheung <joyee@igalia.com>
Cr-Commit-Position: refs/heads/main@{#82268}
2022-08-08 14:28:18 +00:00
..
benchmarks [infra] Change all Python shebangs to Python3 2022-08-05 14:55:00 +00:00
bigint [test] Refactor testrunner (4) 2022-07-18 09:52:24 +00:00
cctest [ext-code-space] Add InterpreterEntryTrampolineForProfiling builtin 2022-08-08 12:50:42 +00:00
common [wasm-gc] Remove br_on_func & br_on_non_func op 2022-08-02 07:41:23 +00:00
debugger [test] Refactor testrunner (4) 2022-07-18 09:52:24 +00:00
debugging [test] Refactor testrunner (4) 2022-07-18 09:52:24 +00:00
fuzzer [fuzzer][wasm] Use externref in structs, locals and signatures 2022-08-01 15:48:02 +00:00
fuzzilli [test] Refactor testrunner (4) 2022-07-18 09:52:24 +00:00
inspector [debug] Fix crash in debug scope search 2022-08-05 09:53:54 +00:00
intl [Intl] Remove DateTimeFormat order check not throw RangeError 2022-07-27 05:31:00 +00:00
js-perf-test [TurboFan] Remove inappropriate perf tests for BigInt multiply 2022-07-27 14:27:48 +00:00
memory
message Reland "[riscv32] Add RISCV32 backend" 2022-08-04 12:47:44 +00:00
mjsunit [string] handle strings sliced from externalized one-byte strings 2022-08-08 14:28:18 +00:00
mkgrokdump [test] Refactor testrunner (4) 2022-07-18 09:52:24 +00:00
mozilla [test] Refactor testrunner (4) 2022-07-18 09:52:24 +00:00
test262 [Temporal] Fix bug in Plain(Date|YearMonth|MonthDay) with() 2022-08-03 21:58:54 +00:00
torque
unittests [wasm-gc] Make funcref unrelated to anyref 2022-08-08 14:27:15 +00:00
wasm-api-tests [wasm-gc] Split any and extern type 2022-07-28 13:09:55 +00:00
wasm-js [test] Refactor testrunner (4) 2022-07-18 09:52:24 +00:00
wasm-spec-tests Reland "[riscv32] Add RISCV32 backend" 2022-08-04 12:47:44 +00:00
webkit [test] Refactor testrunner (4) 2022-07-18 09:52:24 +00:00
BUILD.gn [test] Move cctest/interpreter to unittests 2022-06-10 08:37:10 +00:00
OWNERS