mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-16 13:09:41 +00:00
LibJS: Cache bytecode constant strings with their Utf16String as key
This commit is contained in:
parent
5810ddf339
commit
46c6176235
Notes:
github-actions[bot]
2025-10-05 19:45:04 +00:00
Author: https://github.com/awesomekling
Commit: 46c6176235
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6401
2 changed files with 2 additions and 2 deletions
|
@ -1358,7 +1358,7 @@ ScopedOperand Generator::add_constant(Value value)
|
|||
});
|
||||
}
|
||||
if (value.is_string()) {
|
||||
auto as_string = value.as_string().utf8_string();
|
||||
auto as_string = value.as_string().utf16_string();
|
||||
return m_string_constants.ensure(as_string, [&] {
|
||||
return append_new_constant();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue