Improve String hasher

Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
Seonghyun Kim 2025-06-13 15:34:42 +09:00 committed by Patrick Kim
commit ef7441c412
4 changed files with 25 additions and 18 deletions

View file

@ -329,7 +329,7 @@ ScriptParser::InitializeScriptResult ScriptParser::initializeScript(String* orig
if (cacheable) {
ASSERT(!parentCodeBlock);
// set m_functionIndex as SIZE_MAX for global code
cacheIndex = CodeCacheIndex(source->hashValue(), source->length(), SIZE_MAX);
cacheIndex = CodeCacheIndex(source->hashValue<0, false>(), source->length(), SIZE_MAX);
auto result = codeCache->searchCache(cacheIndex);
if (result.first) {
GC_disable();