[webkit-dev] Compile-time assertions for object sizes

Antti Koivisto koivisto at iki.fi
Thu Sep 29 14:03:32 PDT 2011

On Thu, Sep 29, 2011 at 9:40 PM, Andreas Kling <kling at webkit.org> wrote:

> One idea is to add a file that would only be built on (for example) 64-bit
> Mac and then at least that bot would break if an object changes size. That's
> obviously not ideal though.

I like that approach as it allows you to explicitly assert against byte
counts. Other approaches are more abstract and so easier to dismiss when
checking in a bloaty patch. It also documents the byte sizes and makes
progressions explicit too.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20110930/f79ea408/attachment.html>

More information about the webkit-dev mailing list