| Summary: | [JSC] Clean up StructureStubInfo initialization | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Yusuke Suzuki <ysuzuki> | ||||||||||||||
| Component: | New Bugs | Assignee: | Yusuke Suzuki <ysuzuki> | ||||||||||||||
| Status: | REOPENED --- | ||||||||||||||||
| Severity: | Normal | CC: | benjamin, cdumez, cmarcelo, commit-queue, ews-watchlist, hi, joepeck, keith_miller, mark.lam, msaboff, pangle, saam, tzagallo, webkit-bug-importer | ||||||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||||||
| Version: | WebKit Nightly Build | ||||||||||||||||
| Hardware: | Unspecified | ||||||||||||||||
| OS: | Unspecified | ||||||||||||||||
| Bug Depends on: | 232907 | ||||||||||||||||
| Bug Blocks: | |||||||||||||||||
| Attachments: |
|
||||||||||||||||
|
Description
Yusuke Suzuki
2021-11-02 19:38:33 PDT
Created attachment 443164 [details]
Patch
Comment on attachment 443164 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=443164&action=review > Source/WTF/wtf/FixedVector.h:68 > + : m_storage(std::forward<Container>(other)) Why forward? > Source/WTF/wtf/FixedVector.h:74 > + m_storage = std::forward<Container>(other); Why forward? Created attachment 443205 [details]
Patch
Comment on attachment 443164 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=443164&action=review >> Source/WTF/wtf/FixedVector.h:68 >> + : m_storage(std::forward<Container>(other)) > > Why forward? Since this Container can become rvalue and lvalue (using Container&& templatized value in the parameter). std::forward handles both cases. https://en.cppreference.com/w/cpp/utility/forward >> Source/WTF/wtf/FixedVector.h:74 >> + m_storage = std::forward<Container>(other); > > Why forward? Ditto Created attachment 443211 [details]
Patch
Created attachment 443221 [details]
Patch
Created attachment 443226 [details]
Patch
Created attachment 443235 [details]
Patch
Committed r285246 (243861@main): <https://commits.webkit.org/243861@main> Re-opened since this is blocked by bug 232907 |