Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e6f9a1224f2da4c02a368eb96eb607bab04af00f
https://github.com/WebKit/WebKit/commit/e6f9a1224f2da4c02a368eb96eb607bab04af00f
Author: Yusuke Suzuki <[email protected]>
Date: 2024-04-25 (Thu, 25 Apr 2024)
Changed paths:
M Source/JavaScriptCore/runtime/RegExp.cpp
M Source/JavaScriptCore/runtime/RegExpCache.cpp
M Source/JavaScriptCore/runtime/RegExpCache.h
M Source/JavaScriptCore/runtime/VM.cpp
M Source/JavaScriptCore/runtime/VM.h
Log Message:
-----------
[JSC] Extend RegExpCache from 32 to 64
https://bugs.webkit.org/show_bug.cgi?id=273232
rdar://127033072
Reviewed by Mark Lam.
Let's slightly increase the cache size from 32 to 64 to avoid repeated
compilation of RegExp.
Also, this patch cleans up RegExpCache.
1. Use modern coding style.
2. Add visitAggregate and visit from VM instead of using Strong<>
* Source/JavaScriptCore/runtime/RegExp.cpp:
(JSC::RegExp::create):
* Source/JavaScriptCore/runtime/RegExpCache.cpp:
(JSC::RegExpCache::lookupOrCreate):
(JSC::RegExpCache::ensureEmptyRegExpSlow):
(JSC::RegExpCache::addToStrongCache):
(JSC::RegExpCache::deleteAllCode):
(JSC::RegExpCache::visitAggregateImpl):
(JSC::RegExpCache::RegExpCache): Deleted.
* Source/JavaScriptCore/runtime/RegExpCache.h:
* Source/JavaScriptCore/runtime/VM.cpp:
(JSC::VM::VM):
(JSC::VM::~VM):
(JSC::VM::visitAggregateImpl):
* Source/JavaScriptCore/runtime/VM.h:
(JSC::VM::regExpCache):
Canonical link: https://commits.webkit.org/277987@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes