Bug 206663

Summary: [JSC] reduce memory use of class fields feature
Product: WebKit Reporter: Caitlin Potter (:caitp) <caitp>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: chi187, xan.lopez, ysuzuki
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 174212, 206431    
Bug Blocks:    

Description Caitlin Potter (:caitp) 2020-01-23 07:42:58 PST
Currently PrivateNames are tracked in 2 places in SymbolTables --- One in the ordinary symbol hash, and also separately in a list specifically for PrivateNames. This is used to provide DirectEval with information it needs regarding valid PrivateNames, however currently this is done whether an eval is known to occur or not. The information could potentially be useful for other things, like Web Inspector diagnostics, and such.

We should investigate how worthwhile it is to have a separate hashset for this, as opposed to collecting private symbols from the main hash instead.