1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:47:35 +00:00

LibJS: Rename VM::string_cache to deprecated_string_cache

And rename the member variable from m_string_cache to
m_deprecated_string_cache to match.
This commit is contained in:
Timothy Flynn 2023-01-13 09:41:24 -05:00 committed by Linus Groh
parent 3a004e8f1a
commit ca655f5e7d
3 changed files with 6 additions and 6 deletions

View file

@ -73,9 +73,9 @@ public:
JS_ENUMERATE_WELL_KNOWN_SYMBOLS
#undef __JS_ENUMERATE
HashMap<DeprecatedString, PrimitiveString*>& string_cache()
HashMap<DeprecatedString, PrimitiveString*>& deprecated_string_cache()
{
return m_string_cache;
return m_deprecated_string_cache;
}
PrimitiveString& empty_string() { return *m_empty_string; }
PrimitiveString& single_ascii_character_string(u8 character)
@ -257,7 +257,7 @@ private:
void import_module_dynamically(ScriptOrModule referencing_script_or_module, ModuleRequest module_request, PromiseCapability const& promise_capability);
void finish_dynamic_import(ScriptOrModule referencing_script_or_module, ModuleRequest module_request, PromiseCapability const& promise_capability, Promise* inner_promise);
HashMap<DeprecatedString, PrimitiveString*> m_string_cache;
HashMap<DeprecatedString, PrimitiveString*> m_deprecated_string_cache;
Heap m_heap;
Vector<Interpreter*> m_interpreters;