Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r220500 - [JSC] Create JSSet constructor that accepts it's size…
… as parameter https://bugs.webkit.org/show_bug.cgi?id=173297 Reviewed by Saam Barati. This patch is adding a new constructor to JSSet that gives its expected initial size. It is important to avoid re-hashing and mutiple allocations when we know the final size of JSSet, such as in CodeBlock::setConstantIdentifierSetRegisters. * bytecode/CodeBlock.cpp: (JSC::CodeBlock::setConstantIdentifierSetRegisters): * runtime/HashMapImpl.h: (JSC::HashMapImpl::HashMapImpl): * runtime/JSSet.h:
- Loading branch information
1 parent
ae6d2f9
commit 4bcc2e2
Showing
4 changed files
with
42 additions
and
3 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
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