Summary: | FunctionPtr should be passed by value. | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Mark Lam <mark.lam> | ||||||
Component: | JavaScriptCore | Assignee: | Mark Lam <mark.lam> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | commit-queue, fpizlo, jfbastien, keith_miller, msaboff, rmorisset, saam, webkit-bug-importer | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | WebKit Nightly Build | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
Mark Lam
2018-03-19 10:52:53 PDT
Created attachment 336056 [details]
proposed patch.
Comment on attachment 336056 [details] proposed patch. View in context: https://bugs.webkit.org/attachment.cgi?id=336056&action=review r=me with suggested assert. > Source/JavaScriptCore/assembler/MacroAssemblerCodeRef.h:129 > +static_assert(sizeof(FunctionPtr) == sizeof(void*), ""); You probably also want std::is_trivially_copyable<FunctionPtr>::value so that passing it by values is just a register thing. Created attachment 336069 [details]
patch for landing.
Comment on attachment 336069 [details] patch for landing. Clearing flags on attachment: 336069 Committed r229709: <https://trac.webkit.org/changeset/229709> All reviewed patches have been landed. Closing bug. |