REOPENED 187448
[JSC] Optimize padding of UnlinkedCodeBlock to shrink
https://bugs.webkit.org/show_bug.cgi?id=187448
Summary [JSC] Optimize padding of UnlinkedCodeBlock to shrink
Yusuke Suzuki
Reported 2018-07-08 09:48:13 PDT
[JSC] Optimize padding of UnlinkedCodeBlock to shrink
Attachments
Patch (7.89 KB, patch)
2018-07-08 09:50 PDT, Yusuke Suzuki
no flags
Yusuke Suzuki
Comment 1 2018-07-08 09:50:07 PDT
WebKit Commit Bot
Comment 2 2018-07-08 10:40:02 PDT
Comment on attachment 344548 [details] Patch Clearing flags on attachment: 344548 Committed r233629: <https://trac.webkit.org/changeset/233629>
WebKit Commit Bot
Comment 3 2018-07-08 10:40:04 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 4 2018-07-08 10:41:25 PDT
Keith Miller
Comment 5 2018-07-10 14:56:48 PDT
Comment on attachment 344548 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=344548&action=review > Source/JavaScriptCore/bytecode/UnlinkedCodeBlock.h:465 > + unsigned m_codeType : 2; // CodeType > + unsigned m_didOptimize : 2; // TriState Nit: I think these can still be the enum types btw.
Yusuke Suzuki
Comment 6 2018-07-10 15:02:16 PDT
(In reply to Keith Miller from comment #5) > Comment on attachment 344548 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=344548&action=review > > > Source/JavaScriptCore/bytecode/UnlinkedCodeBlock.h:465 > > + unsigned m_codeType : 2; // CodeType > > + unsigned m_didOptimize : 2; // TriState > > Nit: I think these can still be the enum types btw. IIRC, using different types for bit fields adds unnecessary paddings in MSVC. So, conservatively, I choose `unsigned` here.
Keith Miller
Comment 7 2018-07-17 21:35:40 PDT
I'm reverting this with https://bugs.webkit.org/show_bug.cgi?id=187746 since it seems to have broken internal wasm benchmarks. I think this patch just happened to exemplify an existing issue though. I'll investigate...
Note You need to log in before you can comment on or make changes to this bug.