mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 07:33:20 +00:00
Revert "LibJS: Use HashMap::ensure() in VM string cache helpers"
This reverts commit 5810ddf339
.
Appears to have introduced flakiness on WPT.
This commit is contained in:
parent
0d62803f15
commit
7a2fe53c65
Notes:
github-actions[bot]
2025-10-06 10:18:09 +00:00
Author: https://github.com/awesomekling
Commit: 7a2fe53c65
2 changed files with 13 additions and 10 deletions
|
@ -75,12 +75,12 @@ public:
|
|||
JS_ENUMERATE_WELL_KNOWN_SYMBOLS
|
||||
#undef __JS_ENUMERATE
|
||||
|
||||
HashMap<String, GC::Ref<PrimitiveString>>& string_cache()
|
||||
HashMap<String, GC::Ptr<PrimitiveString>>& string_cache()
|
||||
{
|
||||
return m_string_cache;
|
||||
}
|
||||
|
||||
HashMap<Utf16String, GC::Ref<PrimitiveString>>& utf16_string_cache()
|
||||
HashMap<Utf16String, GC::Ptr<PrimitiveString>>& utf16_string_cache()
|
||||
{
|
||||
return m_utf16_string_cache;
|
||||
}
|
||||
|
@ -323,8 +323,8 @@ private:
|
|||
|
||||
void run_queued_promise_jobs_impl();
|
||||
|
||||
HashMap<String, GC::Ref<PrimitiveString>> m_string_cache;
|
||||
HashMap<Utf16String, GC::Ref<PrimitiveString>> m_utf16_string_cache;
|
||||
HashMap<String, GC::Ptr<PrimitiveString>> m_string_cache;
|
||||
HashMap<Utf16String, GC::Ptr<PrimitiveString>> m_utf16_string_cache;
|
||||
|
||||
static constexpr size_t numeric_string_cache_size = 1000;
|
||||
AK::Array<GC::Ptr<PrimitiveString>, numeric_string_cache_size> m_numeric_string_cache;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue