[Webkit-unassigned] [Bug 170316] WebAssembly: Ref count Signature and SignatureInformation should not care about VM

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 31 12:02:19 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=170316

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

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

>>> Source/JavaScriptCore/wasm/WasmB3IRGenerator.cpp:412
>>> +auto B3IRGenerator::addArguments(const RefPtr<Signature>& signature) -> PartialResult
>> 
>> style: Revert this or use Signature& here. It's an anti-pattern to use a ref to a container class when the function isn't going hold any reference anyway.
> 
> I don't agree. I made "const RefPtr<Signature>&" precisely because the function doesn't need to ref it.

I misread your comment. Anyways, I still don't agree. We use this pattern all over the place in JSC.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170331/96989faf/attachment.html>


More information about the webkit-unassigned mailing list