Bug 206663 - [JSC] reduce memory use of class fields feature
Summary: [JSC] reduce memory use of class fields feature
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
Depends on: 174212 206431
  Show dependency treegraph
Reported: 2020-01-23 07:42 PST by Caitlin Potter (:caitp)
Modified: 2020-01-24 03:16 PST (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
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.