[webkit-reviews] review granted: [Bug 180804] [DFG] Reduce register pressure of WeakMapGet to be used for 32bit : [Attachment 329343] Patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 14 09:49:24 PST 2017

Saam Barati <sbarati at apple.com> has granted Yusuke Suzuki
<utatane.tea at gmail.com>'s request for review:
Bug 180804: [DFG] Reduce register pressure of WeakMapGet to be used for 32bit

Attachment 329343: Patch


--- Comment #3 from Saam Barati <sbarati at apple.com> ---
Comment on attachment 329343
  --> https://bugs.webkit.org/attachment.cgi?id=329343

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


> Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp:10977
> +    std::optional<GPRTemporary> index;

Why optional? Does GPRTemporary have an empty constructor? If not, maybe it’s
worth adding and you can just WTFMove() to it below instead of emplace

> Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp:10982
> +	   index.emplace(this, Reuse, hash);

Does Reuse only reuse if we’re the last user of the value?

More information about the webkit-reviews mailing list