Ignore:
Timestamp:
Jul 21, 2009, 11:13:11 AM (16 years ago)
Author:
Adam Roben
Message:

Roll out r46153, r46154, and r46155

These changes were causing build failures and assertion failures on
Windows.

JavaScriptCore:

  • JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
  • JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore_debug.def:
  • JavaScriptCore.xcodeproj/project.pbxproj:
  • runtime/JSArray.cpp:
  • runtime/StringPrototype.cpp:
  • runtime/UString.cpp:
  • runtime/UString.h:
  • wtf/FastMalloc.cpp:
  • wtf/FastMalloc.h:
  • wtf/Platform.h:
  • wtf/PossiblyNull.h: Removed.

WebCore:

  • ForwardingHeaders/wtf/PossiblyNull.h: Removed.
  • platform/graphics/cg/ImageBufferCG.cpp:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/FastMalloc.cpp

    r46153 r46180  
    173173}
    174174   
    175 TryMallocReturnValue tryFastZeroedMalloc(size_t n)
     175void* tryFastZeroedMalloc(size_t n)
    176176{
    177     void* result;
    178     if (!tryFastMalloc(n).getValue(result))
     177    void* result = tryFastMalloc(n);
     178    if (!result)
    179179        return 0;
    180180    memset(result, 0, n);
     
    195195namespace WTF {
    196196
    197 TryMallocReturnValue tryFastMalloc(size_t n)
     197void* tryFastMalloc(size_t n)
    198198{
    199199    ASSERT(!isForbidden());
     
    231231}
    232232
    233 TryMallocReturnValue tryFastCalloc(size_t n_elements, size_t element_size)
     233void* tryFastCalloc(size_t n_elements, size_t element_size)
    234234{
    235235    ASSERT(!isForbidden());
     
    286286}
    287287
    288 TryMallocReturnValue tryFastRealloc(void* p, size_t n)
     288void* tryFastRealloc(void* p, size_t n)
    289289{
    290290    ASSERT(!isForbidden());
     
    33883388}
    33893389
    3390 TryMallocReturnValue tryFastMalloc(size_t size)
     3390void* tryFastMalloc(size_t size)
    33913391{
    33923392    return malloc<false>(size);
     
    34493449}
    34503450
    3451 TryMallocReturnValue tryFastCalloc(size_t n, size_t elem_size)
     3451void* tryFastCalloc(size_t n, size_t elem_size)
    34523452{
    34533453    return calloc<false>(n, elem_size);
     
    35133513}
    35143514
    3515 TryMallocReturnValue tryFastRealloc(void* old_ptr, size_t new_size)
     3515void* tryFastRealloc(void* old_ptr, size_t new_size)
    35163516{
    35173517    return realloc<false>(old_ptr, new_size);
Note: See TracChangeset for help on using the changeset viewer.