mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Improve String hasher
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
302a6ecd44
commit
ef7441c412
4 changed files with 25 additions and 18 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue