Changeset 181067 in webkit


Ignore:
Timestamp:
Mar 4, 2015, 9:14:53 PM (10 years ago)
Author:
ddkilzer@apple.com
Message:

Switch new soft-linking debug asserts to release asserts
<http://webkit.org/b/142176>

Reviewed by Alex Christensen.

  • platform/mac/SoftLinking.h:

(SOFT_LINK_CONSTANT_SOURCE): Switch to release assert.
(SOFT_LINK_FUNCTION_SOURCE): Ditto.

  • platform/win/SoftLinking.h:

(SOFT_LINK_CONSTANT_SOURCE): Ditto.
(SOFT_LINK_FUNCTION_SOURCE): Ditto. Note that this method is
effectively only called once because the function pointer is
replaced after the first time it's called.

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r181065 r181067  
     12015-03-04  David Kilzer  <ddkilzer@apple.com>
     2
     3        Switch new soft-linking debug asserts to release asserts
     4        <http://webkit.org/b/142176>
     5
     6        Reviewed by Alex Christensen.
     7
     8        * platform/mac/SoftLinking.h:
     9        (SOFT_LINK_CONSTANT_SOURCE): Switch to release assert.
     10        (SOFT_LINK_FUNCTION_SOURCE): Ditto.
     11        * platform/win/SoftLinking.h:
     12        (SOFT_LINK_CONSTANT_SOURCE): Ditto.
     13        (SOFT_LINK_FUNCTION_SOURCE): Ditto.  Note that this method is
     14        effectively only called once because the function pointer is
     15        replaced after the first time it's called.
     16
    1172015-03-04  Alex Christensen  <achristensen@webkit.org>
    218
  • trunk/Source/WebCore/platform/mac/SoftLinking.h

    r181036 r181067  
    338338        dispatch_once(&once, ^{ \
    339339            void* constant = dlsym(framework##Library(), #variableName); \
    340             ASSERT_WITH_MESSAGE(constant, "%s", dlerror()); \
     340            RELEASE_ASSERT_WITH_MESSAGE(constant, "%s", dlerror()); \
    341341            constant##framework##variableName = *static_cast<variableType*>(constant); \
    342342        }); \
     
    369369        dispatch_once(&once, ^{ \
    370370            softLink##framework##functionName = (resultType (*) parameterDeclarations) dlsym(framework##Library(), #functionName); \
    371             ASSERT_WITH_MESSAGE(softLink##framework##functionName, "%s", dlerror()); \
     371            RELEASE_ASSERT_WITH_MESSAGE(softLink##framework##functionName, "%s", dlerror()); \
    372372        }); \
    373373        return softLink##framework##functionName parameterNames; \
  • trunk/Source/WebCore/platform/win/SoftLinking.h

    r181036 r181067  
    214214    static void init##framework##variableName(void* context) { \
    215215        variableType* ptr = reinterpret_cast<variableType*>(SOFT_LINK_GETPROCADDRESS(framework##Library(), #variableName)); \
    216         ASSERT(ptr); \
     216        RELEASE_ASSERT(ptr); \
    217217        *static_cast<variableType*>(context) = *ptr; \
    218218    } \
     
    243243    { \
    244244        softLink##framework##functionName = reinterpret_cast<resultType (__cdecl*)parameterDeclarations>(SOFT_LINK_GETPROCADDRESS(framework##Library(), #functionName)); \
    245         ASSERT(softLink##framework##functionName); \
     245        RELEASE_ASSERT(softLink##framework##functionName); \
    246246        return softLink##framework##functionName parameterNames; \
    247247    } \
Note: See TracChangeset for help on using the changeset viewer.