Changeset 245254 in webkit


Ignore:
Timestamp:
May 13, 2019 3:00:09 PM (5 years ago)
Author:
ysuzuki@apple.com
Message:

Unreviewed, follow-up after r245214
https://bugs.webkit.org/show_bug.cgi?id=197730

Suggested by Sam. We should have static_assert with MACH_VM_MAX_ADDRESS.

  • wtf/WTFAssertions.cpp:
Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r245244 r245254  
     12019-05-13  Yusuke Suzuki  <ysuzuki@apple.com>
     2
     3        Unreviewed, follow-up after r245214
     4        https://bugs.webkit.org/show_bug.cgi?id=197730
     5
     6        Suggested by Sam. We should have static_assert with MACH_VM_MAX_ADDRESS.
     7
     8        * wtf/WTFAssertions.cpp:
     9
    1102019-05-13  Youenn Fablet  <youenn@apple.com>
    211
  • trunk/Source/WTF/wtf/WTFAssertions.cpp

    r242127 r245254  
    2727
    2828#include <wtf/Bag.h>
     29#include <wtf/Platform.h>
    2930#include <wtf/RefCountedArray.h>
    3031#include <wtf/RefPtr.h>
     32
     33#if OS(DARWIN)
     34#include <mach/vm_param.h>
     35#endif
    3136
    3237namespace WTF {
     
    4348
    4449static_assert(sizeof(RefCountedArray<DummyStruct>) == sizeof(void*), "");
     50
     51#if OS(DARWIN)
     52static_assert(MACH_VM_MAX_ADDRESS <= ((1ULL << WTF_CPU_EFFECTIVE_ADDRESS_WIDTH) - 1));
     53#endif
    4554   
    4655} // namespace WTF
Note: See TracChangeset for help on using the changeset viewer.