Revert "Speed up IsAdScriptInStack by passing ExecutionContext when known"
This reverts commit bda6c898. Reason for revert: GetExecutionContext() isn't as slow as I initially though. Reverting due to added complexity this change added for marginal performance win. Original change's description: > Speed up IsAdScriptInStack by passing ExecutionContext when known > > What: Some callers to IsAdScriptInStack know the ExecutionContext that > triggered the event. Those callers should pass the context in to > IsAdScriptInStack as there is a small cost to looking it up. > > Why: Some callers (such as core_probes) call frequently and looking up > the ExecutionContext when it's already known only slows things down. > > Bug: 851531 > Change-Id: Id8eadfc9855cdda0d18df34a4829dd47e31ac64f > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2090232 > Commit-Queue: Josh Karlin <jkarlin@chromium.org> > Reviewed-by: Daniel Cheng <dcheng@chromium.org> > Cr-Commit-Position: refs/heads/master@{#747899} TBR=dcheng@chromium.org,jkarlin@chromium.org # Not skipping CQ checks because original CL landed > 1 day ago. Bug: 851531 Change-Id: Idc280fb6acaf90a948a6363a8c7b3c23aad12834 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2127902Reviewed-by:Josh Karlin <jkarlin@chromium.org> Reviewed-by:
Daniel Cheng <dcheng@chromium.org> Commit-Queue: Josh Karlin <jkarlin@chromium.org> Cr-Commit-Position: refs/heads/master@{#754909}
Showing
Please register or sign in to comment