[webkit-reviews] review granted: [Bug 33540] Make it possible to build in debug mode with assertions disabled : [Attachment 46384] proposed patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 12 11:27:08 PST 2010


Darin Adler <darin at apple.com> has granted Alexey Proskuryakov <ap at webkit.org>'s
request for review:
Bug 33540: Make it possible to build in debug mode with assertions disabled
https://bugs.webkit.org/show_bug.cgi?id=33540

Attachment 46384: proposed patch
https://bugs.webkit.org/attachment.cgi?id=46384&action=review

------- Additional Comments from Darin Adler <darin at apple.com>
> +    UNUSED_PARAM(exec);
>      ASSERT(exec->globalData().identifierTable == currentIdentifierTable());

How about using ASSERT_UNUSED? We made it for this kind of situation.

> +    UNUSED_PARAM(globalData);
>      ASSERT(globalData->identifierTable == currentIdentifierTable());

Ditto.

> +#include <wtf/UnusedParam.h>
>  
>  namespace WTF {
>  
> @@ -196,6 +197,7 @@ namespace WTF {
>  #if CHECK_HASHTABLE_ITERATORS
>	   void checkValidity(const const_iterator& other) const
>	   {
> +	       UNUSED_PARAM(other);

Here too.

> +#include <wtf/UnusedParam.h>
>  
>  #define ROUNDUP(x, y) ((((x)+((y)-1))/(y))*(y))
>  
> @@ -111,6 +112,7 @@ void* RenderArena::allocate(size_t size)
>  void RenderArena::free(size_t size, void* ptr)
>  {
>  #ifndef NDEBUG
> +    UNUSED_PARAM(size);
>      // Use standard free so that memory debugging tools work.
>      RenderArenaDebugHeader* header =
static_cast<RenderArenaDebugHeader*>(ptr) - 1;
>      ASSERT(header->signature == signature);

I don't understand this change.

> +	   * DumpRenderTree/ForwardingHeaders/wtf/UnusedParam.h: Added.

Maybe we can avoid this.

> Index: LayoutTests/ChangeLog
> ===================================================================
> --- LayoutTests/ChangeLog	(revision 53112)
> +++ LayoutTests/ChangeLog	(working copy)
> @@ -1,3 +1,17 @@
> +2010-01-08  Alexey Proskuryakov  <ap at apple.com>
> +
> +	   Reviewed by NOBODY (OOPS!).
> +
> +	   https://bugs.webkit.org/show_bug.cgi?id=32294
> +	   http/tests/uri/escaped-entity.html affects the output of
svg/W3C-SVG-1.1/filters-conv-01-f.svg
> +
> +	   Changed the test to not have any funky characters. Filed bug 33400
to track the underlying
> +	   problem with kerning.
> +
> +	   * http/tests/uri/escaped-entity-expected.txt:
> +	   * http/tests/uri/escaped-entity.html:
> +	   * platform/mac/Skipped:

Oops.

r=me, but I'd prefer a version that uses UNUSED_PARAM less


More information about the webkit-reviews mailing list