Changeset 180964 in webkit


Ignore:
Timestamp:
Mar 3, 2015 4:30:01 PM (9 years ago)
Author:
ggaren@apple.com
Message:

bmalloc: Don't branch when setting the owner of a large object
https://bugs.webkit.org/show_bug.cgi?id=142241

Reviewed by Andreas Kling.

  • bmalloc/BoundaryTag.h:

(bmalloc::BoundaryTag::owner):
(bmalloc::BoundaryTag::setOwner):

Location:
trunk/Source/bmalloc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/bmalloc/ChangeLog

    r180960 r180964  
     12015-03-03  Geoffrey Garen  <ggaren@apple.com>
     2
     3        bmalloc: Don't branch when setting the owner of a large object
     4        https://bugs.webkit.org/show_bug.cgi?id=142241
     5
     6        Reviewed by Andreas Kling.
     7
     8        * bmalloc/BoundaryTag.h:
     9        (bmalloc::BoundaryTag::owner):
     10        (bmalloc::BoundaryTag::setOwner):
     11
    1122015-03-03  Geoffrey Garen  <ggaren@apple.com>
    213
  • trunk/Source/bmalloc/bmalloc/BoundaryTag.h

    r180806 r180964  
    5151    void setEnd(bool isEnd) { m_isEnd = isEnd; }
    5252
    53     Owner owner() { return m_ownerIsHeap ? Owner::Heap : Owner::VMHeap; }
    54     void setOwner(Owner owner) { m_ownerIsHeap = (owner == Owner::Heap); }
     53    Owner owner() { return static_cast<Owner>(m_owner); }
     54    void setOwner(Owner owner) { m_owner = static_cast<unsigned>(owner); }
    5555   
    5656    bool isMarked() { return m_isMarked; }
     
    8686    bool m_isFree: 1;
    8787    bool m_isEnd: 1;
    88     bool m_ownerIsHeap: 1;
     88    unsigned m_owner: 1;
    8989    bool m_isMarked: 1;
    9090    unsigned m_compactBegin: compactBeginBits;
Note: See TracChangeset for help on using the changeset viewer.