1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:57:44 +00:00

LibJS: Add a simple reference-counted UTF-16 string

To help alleviate memory usage when creating and copying large strings,
create a simple wrapper around a Vector<u16> to reference count UTF-16
strings.
This commit is contained in:
Timothy Flynn 2021-08-09 08:58:31 -04:00 committed by Andreas Kling
parent 3322efd4cd
commit 02e7dceb96
4 changed files with 183 additions and 0 deletions

View file

@ -157,6 +157,7 @@ set(SOURCES
Runtime/TypedArray.cpp
Runtime/TypedArrayConstructor.cpp
Runtime/TypedArrayPrototype.cpp
Runtime/Utf16String.cpp
Runtime/Value.cpp
Runtime/VM.cpp
Runtime/WeakContainer.cpp