Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JSC] Do not propagate ValueProfile and ArrayProfile in builtin code
https://bugs.webkit.org/show_bug.cgi?id=261583 rdar://115529687 Reviewed by Alexey Shvayka. Builtin JS code is used in too much different context. As a result, some of code pollute this profile (like, using ArrayStorage!), and all subsequent code hits this polluted profile unfortunately. Because we are propagating this to UnlinkedCodeBlock, then we will hit this pollution throughout the subsequent runs. In this patch, we stop propagating collected profiles into UnlinkedCodeBlock when it is builtin code. * Source/JavaScriptCore/bytecode/CodeBlock.cpp: (JSC::CodeBlock::updateAllNonLazyValueProfilePredictionsAndCountLiveness): (JSC::CodeBlock::updateAllArrayProfilePredictions): Canonical link: https://commits.webkit.org/268011@main
- Loading branch information