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

Andreas Kling kling at webkit.org
Thu Sep 29 11:40:44 PDT 2011

Dear WebKittens,

I'd like to add some compile-time assertions for the sizes of various
objects. The motivation comes a patch fixing bloat in InlineBox[1].

There are two major problems with this:

1. The sizes will differ on 32- and 64-bit platforms.
2. The sizes will differ based on compiler flags.

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.

Any suggestions? :)


[1] https://bugs.webkit.org/show_bug.cgi?id=64914
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20110929/62389ff4/attachment.html>

More information about the webkit-dev mailing list