Changeset 225471 in webkit


Ignore:
Timestamp:
Dec 3, 2017 10:26:13 PM (6 years ago)
Author:
tpopela@redhat.com
Message:

Build fails on x86_64 and arm64 with BMalloc disabled
https://bugs.webkit.org/show_bug.cgi?id=180188

Reviewed by Carlos Garcia Campos.

Add missing methods in WTF's Gigacage.h and fix g_gigacageBasePtr
definition.

  • wtf/Gigacage.cpp:
  • wtf/Gigacage.h:

(Gigacage::basePtr):
(Gigacage::isEnabled):

Location:
trunk/Source/WTF
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r225470 r225471  
     12017-12-03  Tomas Popela  <tpopela@redhat.com>
     2
     3        Build fails on x86_64 and arm64 with BMalloc disabled
     4        https://bugs.webkit.org/show_bug.cgi?id=180188
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        Add missing methods in WTF's Gigacage.h and fix g_gigacageBasePtr
     9        definition.
     10
     11        * wtf/Gigacage.cpp:
     12        * wtf/Gigacage.h:
     13        (Gigacage::basePtr):
     14        (Gigacage::isEnabled):
     15
    1162017-12-03  Yusuke Suzuki  <utatane.tea@gmail.com>
    217
  • trunk/Source/WTF/wtf/Gigacage.cpp

    r221422 r225471  
    3333#if defined(USE_SYSTEM_MALLOC) && USE_SYSTEM_MALLOC
    3434
    35 extern "C" {
    36 void* g_gigacageBasePtr;
    37 }
     35char g_gigacageBasePtrs[GIGACAGE_BASE_PTRS_SIZE];
    3836
    3937namespace Gigacage {
  • trunk/Source/WTF/wtf/Gigacage.h

    r222615 r225471  
    9898}
    9999
     100ALWAYS_INLINE void*& basePtr(Kind kind)
     101{
     102    return basePtr(basePtrs(), kind);
     103}
     104
     105ALWAYS_INLINE bool isEnabled(Kind kind)
     106{
     107    return !!basePtr(kind);
     108}
     109
    100110ALWAYS_INLINE size_t mask(Kind) { return 0; }
    101111
Note: See TracChangeset for help on using the changeset viewer.