Repository navigation
[EWS] Rename CompileJSCWithoutPatch - #124
Merged
JonWBedard merged 0 commit intoFeb 4, 2022
Merged
JonWBedard merged 0 commit into
JonWBedard merged 0 commit into
Conversation
aj062
approved these changes
Feb 4, 2022
JonWBedard
force-pushed
the
eng/github-ews-rename-compile-jsc-without-patch
branch
from
February 4, 2022 14:48
fd5712e to
a7d6af4
Compare
JonWBedard
force-pushed
the
eng/github-ews-rename-compile-jsc-without-patch
branch
from
February 4, 2022 14:56
a7d6af4 to
59083ad
Compare
Member
Author
JonWBedard
deleted the
eng/github-ews-rename-compile-jsc-without-patch
branch
February 4, 2022 14:57
webkit-commit-queue
pushed a commit
that referenced
this pull request
Oct 4, 2025
rdar://161694748 https://bugs.webkit.org/show_bug.cgi?id=299920 Reviewed by Ryosuke Niwa. Prior to this patch, DocumentInlines.h was the most expensive header used in WebCore; it is included 303 times in a WebCore Unified build, and on this machine, each include of that file too the compile on average 1.5s to parse, for a total of 8m CPU minutes of time spent parsing this header. To diagnose why this header is so expensive, I commented out all the implementations from the body of this header and ran a compile, collecting a list of all the errors encountered. I then collected the counts of each error message, and grouped liked errors together. It became clear that most uses of DocumentInlines.h were to pull in a very narrow set of inlined methods, but to get those few methods had to include a very large and very heavy header. To address this, DocumentInlines.h was broken up into separate headers, each which includes only Document.h and one or two other headers. Usually the second header was required to define the return type of the method, and the type definition is required because the return type is a CheckedPtr or RefPtr. However because the return value is typically used at the call site, that return value header would have been included already, meaning this style of header has zero effective additional cost. The files were created in descending order of the number of uses: - DocumentView.h - 187 - DocumentPage.h - 175 - DocumentQuirks.h - 84 - DocumentSecurityOrigin.h - 54 - DocumentResourceLoader.h - 49 - DocumentMarkers.h - 27 - DocumentEventLoop.h - 26 - DocumentSettingsValues.h - 23 - DocumentWindow.h - 19 The remaining grab-bag of inlined methods had less than 10 uses each and were left in DocumentInlines.h. After this patch, DocumentInlines.h is used in just over 100 implementation files and no headers. None of the new Document*.h headers or DocumentInlines.h appear in the top 100 most expensive header files. DocumentInlines.h dropped from the #1 most expensive header taking 8m to parse to #389 and 5.7s of parsing. The most expensive new header is DocumentPage.h at #124 and 25s of parsing. Canonical link: https://commits.webkit.org/300989@main
dangowrt
added a commit
to dangowrt/WebKit
that referenced
this pull request
May 27, 2026
https://bugs.webkit.org/show_bug.cgi?id=315509 Reviewed by NOBODY (OOPS!). The JS-to-wasm trampoline in JSToWasm.cpp handles register-arg shuffling across three architectures. ARM64 (8 GPR args) and X86_64 (6 GPR args) have dedicated branches. RISCV64 also has 8 GPR args (regWA0..regWA7, a0..a7) but was falling through to the generic USE(JSVALUE64) branch which only handles 6, leaving regWA6 and regWA7 with stale stack contents on call entry and dropping them on call return. Symptom: any wasm function whose calling convention places i32/i64 params in a6 or a7 sees garbage for those args. Reproducer is the JSC wasm-spec "large-sig" function (17 mixed-type params -- locals 14 and 15 land in a6/a7); also propagates to wasm-to-wasm via JS import (e.g. spec-tests/func.wast.js WebKit#124, memory_trap.wast.js WebKit#295). Add explicit CPU(RISCV64) branches mirroring the X86_64 form but covering all 8 GPRs. FPRs already had a combined X86_64||RISCV64 branch covering all 8 FPRs, so no change needed there. Signed-off-by: Daniel Golle <[email protected]>
Wowfunhappy
pushed a commit
to Wowfunhappy/WebKit
that referenced
this pull request
Jun 24, 2026
…t#124) 10.9's CoreAnimation leaves an opaque CALayer's backing uninitialized to BLACK wherever it isn't painted (modern macOS clears it). WebCore marks a layer opaque from its CSS background, but the painted result can still be transparent -- e.g. DuckDuckGo's inline-SVG logo layer -- and on the TiledCoreAnimation path there is no draw callback to white-fill it, so the opaque black backing shows through the transparent regions as a black box. Force non-opaque in GraphicsLayerCA::updateContentsOpaque so CoreAnimation always composites alpha correctly. Fixes the DDG logo black box (3 prior draw-path attempts failed -- the box layer reports drawsContent() but never reaches a draw callback) and the general opaque-layer-with-transparency black-box class (also the #70 inspector black-edge signature). Cost: composited text uses grayscale rather than subpixel AA (matches modern macOS, where subpixel AA is gone) plus a minor blend overhead -- fine on this software-rendered target. Verified: DDG box gone; github + theverge render correctly with no AA/layout regressions. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Wowfunhappy
pushed a commit
to Wowfunhappy/WebKit
that referenced
this pull request
Jun 24, 2026
6619f5f force-set contentsOpaque=false for every composited layer in GraphicsLayerCA::updateContentsOpaque. It does not fix the DuckDuckGo logo box (the box remains, merely white instead of black) and is far too broad -- it disables the opaque-layer fast path for all composited content. Back it out; WebKit#124 needs a real, targeted root cause. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Wowfunhappy
pushed a commit
to Wowfunhappy/WebKit
that referenced
this pull request
Jul 8, 2026
Diagnostic tooling, inert unless its sentinel file exists. RELEASE_LOG is
compiled out on 10.9, so failure paths were invisible without these.
Gated on /tmp/wk-debug-on:
- Load-lifecycle tracing across the loader stack: CachedResource /
CachedResourceLoader ([CR-LOAD-FAIL]/[SYNC-LOAD-FAIL]), ResourceLoader
([RL-INIT-FAIL]), ThreadableLoader ([THREADABLE-FAIL]), FrameLoader
main-frame state transitions ([FL-STATE]/[FL-PROVFAIL]/[FL-ABANDON]),
CORS response checks ([CORS-CHECK]), NetworkResourceLoader
([NRL-ABORT]/[NRL-FINISH]/[NRL-FAIL]) and COOP/COEP swap decisions
([COOP-DECIDE]), WebLoaderStrategy ([WLS-NO-LOADER]), injected-bundle
request blocking ([BUNDLE-WSR-NULL]), WebSocket polyfill open/error/
handshake tracing ([WSPOLYFILL]).
- Console capture: WebChromeClient mirrors every console message to the
per-pid stderr log ([CONSOLE]); FrameConsoleClient dumps ALL console
arguments ([CARGS]) — addMessageToConsole forwards only the first, so
console.log("%c%s", style, text) styled logs lose their text otherwise.
- Document-start script injection (WebLocalFrameLoaderClient): runs
/tmp/meet-inject.js in meet.google.com main-world frames before any page
script, re-read from disk each load so instrumentation iterates without
rebuilds. This is what pinned Google Meet's EndCause=16 root cause.
Gated on /tmp/wk-gst-debug (XPCServiceMain): env vars don't propagate to
XPC services on 10.9, so the file's first line becomes GST_DEBUG, with
output to /tmp/wk-gst-<pid>.log.
Gated on /tmp/wk-ddg-probe (PlatformCALayerCocoa): temporary WebKit#124 probe
correlating dirtied vs drawn layers, logging contents-set events and paint
clips, and stamping a marker rect to distinguish never-painted backing from
a clipped paint. Remove with WebKit#124.
Co-Authored-By: Claude Fable 5 <[email protected]>
Wowfunhappy
pushed a commit
to Wowfunhappy/WebKit
that referenced
this pull request
Jul 17, 2026
…elegate, CATransformLayer to upstream All items adversarial-hack-reviewer APPROVED, each verified on the installed build with fresh processes: - PlatformCALayerCocoa.mm: the /tmp/wk-ddg-probe diagnostic apparatus (layer-event logger, dirty/draw probes, setContents logger, magenta stamp) is deleted; WebKit#124 (DDG black box) stays open and unmasked. - PlatformCALayerCocoa.mm: WebActionDisablingCALayerDelegate restored (upstream two-branch form). The "stale delegate pointer" crash claim was incoherent (the delegate is an immortal singleton) and four navigations in one WebContent reproduce no crash. The hand-enumerated actions dictionary also silently allowed implicit animations on every unenumerated key. - PlatformCALayerCocoa.mm: real CATransformLayer restored (plus removal of the type-based contents/contentsScale guards; upstream's own setContentsScale TransformLayer guard stays). The "10.9 QC over-release" premise does not reproduce: a minimal preserve-3d page composites pixel-correct, Wikipedia/Apple_silicon and apple.com (the cited crash pages) load and survive navigation. preserve-3d subtree compositing is a regained feature. - WebPageProxy.cpp: upstream `if (!hasRunningProcess()) return;` gate in initializeWebPage restored (probe data shows Launching->Running at every launch dispatch; the wrongly-Terminated premise is stale). Top Sites live thumbnails (offscreen-snapshot flow) verified. - WebPageProxy.cpp: ShouldWaitForSiteHasStorageCheck restored to the upstream computation (the "NetworkProcess is fake" justification was false), and the no-op hasRunningProcess() hoist reverted. Open, unmasked: intermittent ~60s first-paint stall (apple.com) — an unfound WebKit-side networking defect (a resumed NSURLSessionTask delivering no callback until timeout); root-cause hunt targets our own NetworkLoad/NetworkSession stack. Co-Authored-By: Claude Fable 5 <[email protected]>
Wowfunhappy
pushed a commit
to Wowfunhappy/WebKit
that referenced
this pull request
Jul 24, 2026
…t#124) 10.9's CoreAnimation leaves an opaque CALayer's backing uninitialized to BLACK wherever it isn't painted (modern macOS clears it). WebCore marks a layer opaque from its CSS background, but the painted result can still be transparent -- e.g. DuckDuckGo's inline-SVG logo layer -- and on the TiledCoreAnimation path there is no draw callback to white-fill it, so the opaque black backing shows through the transparent regions as a black box. Force non-opaque in GraphicsLayerCA::updateContentsOpaque so CoreAnimation always composites alpha correctly. Fixes the DDG logo black box (3 prior draw-path attempts failed -- the box layer reports drawsContent() but never reaches a draw callback) and the general opaque-layer-with-transparency black-box class (also the #70 inspector black-edge signature). Cost: composited text uses grayscale rather than subpixel AA (matches modern macOS, where subpixel AA is gone) plus a minor blend overhead -- fine on this software-rendered target. Verified: DDG box gone; github + theverge render correctly with no AA/layout regressions. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Wowfunhappy
pushed a commit
to Wowfunhappy/WebKit
that referenced
this pull request
Jul 24, 2026
6619f5f force-set contentsOpaque=false for every composited layer in GraphicsLayerCA::updateContentsOpaque. It does not fix the DuckDuckGo logo box (the box remains, merely white instead of black) and is far too broad -- it disables the opaque-layer fast path for all composited content. Back it out; WebKit#124 needs a real, targeted root cause. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Wowfunhappy
pushed a commit
to Wowfunhappy/WebKit
that referenced
this pull request
Jul 24, 2026
Diagnostic tooling, inert unless its sentinel file exists. RELEASE_LOG is
compiled out on 10.9, so failure paths were invisible without these.
Gated on /tmp/wk-debug-on:
- Load-lifecycle tracing across the loader stack: CachedResource /
CachedResourceLoader ([CR-LOAD-FAIL]/[SYNC-LOAD-FAIL]), ResourceLoader
([RL-INIT-FAIL]), ThreadableLoader ([THREADABLE-FAIL]), FrameLoader
main-frame state transitions ([FL-STATE]/[FL-PROVFAIL]/[FL-ABANDON]),
CORS response checks ([CORS-CHECK]), NetworkResourceLoader
([NRL-ABORT]/[NRL-FINISH]/[NRL-FAIL]) and COOP/COEP swap decisions
([COOP-DECIDE]), WebLoaderStrategy ([WLS-NO-LOADER]), injected-bundle
request blocking ([BUNDLE-WSR-NULL]), WebSocket polyfill open/error/
handshake tracing ([WSPOLYFILL]).
- Console capture: WebChromeClient mirrors every console message to the
per-pid stderr log ([CONSOLE]); FrameConsoleClient dumps ALL console
arguments ([CARGS]) — addMessageToConsole forwards only the first, so
console.log("%c%s", style, text) styled logs lose their text otherwise.
- Document-start script injection (WebLocalFrameLoaderClient): runs
/tmp/meet-inject.js in meet.google.com main-world frames before any page
script, re-read from disk each load so instrumentation iterates without
rebuilds. This is what pinned Google Meet's EndCause=16 root cause.
Gated on /tmp/wk-gst-debug (XPCServiceMain): env vars don't propagate to
XPC services on 10.9, so the file's first line becomes GST_DEBUG, with
output to /tmp/wk-gst-<pid>.log.
Gated on /tmp/wk-ddg-probe (PlatformCALayerCocoa): temporary WebKit#124 probe
correlating dirtied vs drawn layers, logging contents-set events and paint
clips, and stamping a marker rect to distinguish never-painted backing from
a clipped paint. Remove with WebKit#124.
Co-Authored-By: Claude Fable 5 <[email protected]>
Wowfunhappy
pushed a commit
to Wowfunhappy/WebKit
that referenced
this pull request
Jul 24, 2026
…elegate, CATransformLayer to upstream All items adversarial-hack-reviewer APPROVED, each verified on the installed build with fresh processes: - PlatformCALayerCocoa.mm: the /tmp/wk-ddg-probe diagnostic apparatus (layer-event logger, dirty/draw probes, setContents logger, magenta stamp) is deleted; WebKit#124 (DDG black box) stays open and unmasked. - PlatformCALayerCocoa.mm: WebActionDisablingCALayerDelegate restored (upstream two-branch form). The "stale delegate pointer" crash claim was incoherent (the delegate is an immortal singleton) and four navigations in one WebContent reproduce no crash. The hand-enumerated actions dictionary also silently allowed implicit animations on every unenumerated key. - PlatformCALayerCocoa.mm: real CATransformLayer restored (plus removal of the type-based contents/contentsScale guards; upstream's own setContentsScale TransformLayer guard stays). The "10.9 QC over-release" premise does not reproduce: a minimal preserve-3d page composites pixel-correct, Wikipedia/Apple_silicon and apple.com (the cited crash pages) load and survive navigation. preserve-3d subtree compositing is a regained feature. - WebPageProxy.cpp: upstream `if (!hasRunningProcess()) return;` gate in initializeWebPage restored (probe data shows Launching->Running at every launch dispatch; the wrongly-Terminated premise is stale). Top Sites live thumbnails (offscreen-snapshot flow) verified. - WebPageProxy.cpp: ShouldWaitForSiteHasStorageCheck restored to the upstream computation (the "NetworkProcess is fake" justification was false), and the no-op hasRunningProcess() hoist reverted. Open, unmasked: intermittent ~60s first-paint stall (apple.com) — an unfound WebKit-side networking defect (a resumed NSURLSessionTask delivering no callback until timeout); root-cause hunt targets our own NetworkLoad/NetworkSession stack. Co-Authored-By: Claude Fable 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
59083ad