The Document.h and JSObject.h headers are very costly. They are included in a few places where they are not used: 1. DocumentParser.h doesn't need to include the header, and already includes it in its implementation file. 2. JSSegmentedVariableObject.h doesn't use the contents of JSObject.h at all, so pays a heavy price for no benefit. These two changes save about 4 minutes of CPU time parsing, and about 0.75 minutes of codegen.
<rdar://problem/106579489>
Pull request: https://github.com/WebKit/WebKit/pull/11392
Committed 261538@main (f19ec43b3605): <https://commits.webkit.org/261538@main> Reviewed commits have been landed. Closing PR #11392 and removing active labels.