Bug 227230 - Shrink sizeof(RegisteredEventListener)
Summary: Shrink sizeof(RegisteredEventListener)
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Yusuke Suzuki
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-06-21 12:06 PDT by Yusuke Suzuki
Modified: 2021-06-25 16:22 PDT (History)
6 users (show)

See Also:


Attachments
Patch (2.31 KB, patch)
2021-06-21 12:07 PDT, Yusuke Suzuki
ggaren: review+
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (2.31 KB, patch)
2021-06-21 14:29 PDT, Yusuke Suzuki
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yusuke Suzuki 2021-06-21 12:06:15 PDT
Shrink sizeof(RegisteredEventListener)
Comment 1 Yusuke Suzuki 2021-06-21 12:07:18 PDT
Created attachment 431892 [details]
Patch
Comment 2 Chris Dumez 2021-06-21 12:11:20 PDT
Comment on attachment 431892 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=431892&action=review

> Source/WebCore/dom/RegisteredEventListener.h:68
> +    bool m_useCapture : 1;

do we really need the ": 1"?
Comment 3 Yusuke Suzuki 2021-06-21 12:18:10 PDT
Comment on attachment 431892 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=431892&action=review

>> Source/WebCore/dom/RegisteredEventListener.h:68
>> +    bool m_useCapture : 1;
> 
> do we really need the ": 1"?

I prefer using bit fields for many bool flags since we can easily add more things while maintaining size.
Comment 4 Geoffrey Garen 2021-06-21 12:35:23 PDT
Comment on attachment 431892 [details]
Patch

r=me
Comment 5 Yusuke Suzuki 2021-06-21 14:29:05 PDT
Created attachment 431910 [details]
Patch
Comment 6 Yusuke Suzuki 2021-06-22 08:31:15 PDT
Committed r279117 (239034@main): <https://commits.webkit.org/239034@main>
Comment 7 Radar WebKit Bug Importer 2021-06-22 08:32:16 PDT
<rdar://problem/79615813>
Comment 8 Yusuke Suzuki 2021-06-25 16:22:52 PDT
Use this commit to test webkitbot. Please ignore following messages.