Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
We can cache lookups to JSScope::abstractResolve inside CodeBlock::fi…
…nishCreation https://bugs.webkit.org/show_bug.cgi?id=158036 Reviewed by Geoffrey Garen. This patch implements a 1 item cache for JSScope::abstractResolve. I also tried implementing the cache as a HashMap, but it seemed either less profitable on some benchmarks or just as profitable on others. Therefore, it's cleaner to just use a 1 item cache. * bytecode/CodeBlock.cpp: (JSC::CodeBlock::CodeBlock): (JSC::AbstractResolveKey::AbstractResolveKey): (JSC::AbstractResolveKey::operator==): (JSC::AbstractResolveKey::isEmptyValue): (JSC::CodeBlock::finishCreation): * runtime/GetPutInfo.h: (JSC::needsVarInjectionChecks): (JSC::ResolveOp::ResolveOp): Canonical link: https://commits.webkit.org/176167@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@201359 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Saam Barati
committed
May 24, 2016
1 parent
9a98f7c
commit 02a1a31
Showing
3 changed files
with
78 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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