⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 242660 in webkit


Ignore:
Timestamp:
Mar 8, 2019, 3:31:38 PM (7 years ago)
Author:
rmorisset@apple.com
Message:

TypeLocation can be shrunk by 8 bytes
https://bugs.webkit.org/show_bug.cgi?id=195483

Reviewed by Mark Lam.

  • bytecode/TypeLocation.h:

(JSC::TypeLocation::TypeLocation):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r242659 r242660  
     12019-03-08  Robin Morisset  <rmorisset@apple.com>
     2
     3        TypeLocation can be shrunk by 8 bytes
     4        https://bugs.webkit.org/show_bug.cgi?id=195483
     5
     6        Reviewed by Mark Lam.
     7
     8        * bytecode/TypeLocation.h:
     9        (JSC::TypeLocation::TypeLocation):
     10
    1112019-03-08  Robin Morisset  <rmorisset@apple.com>
    212
  • trunk/Source/JavaScriptCore/bytecode/TypeLocation.h

    r206525 r242660  
    4141public:
    4242    TypeLocation()
    43         : m_lastSeenType(TypeNothing)
     43        : m_instructionTypeSet(TypeSet::create())
     44        , m_globalTypeSet(nullptr)
    4445        , m_divotForFunctionOffsetIfReturnStatement(UINT_MAX)
    45         , m_instructionTypeSet(TypeSet::create())
    46         , m_globalTypeSet(nullptr)
     46        , m_lastSeenType(TypeNothing)
    4747    {
    4848    }
    4949
    5050    GlobalVariableID m_globalVariableID;
    51     RuntimeType m_lastSeenType;
     51    RefPtr<TypeSet> m_instructionTypeSet;
     52    RefPtr<TypeSet> m_globalTypeSet;
    5253    intptr_t m_sourceID;
    5354    unsigned m_divotStart;
    5455    unsigned m_divotEnd;
    5556    unsigned m_divotForFunctionOffsetIfReturnStatement;
    56     RefPtr<TypeSet> m_instructionTypeSet;
    57     RefPtr<TypeSet> m_globalTypeSet;
     57    RuntimeType m_lastSeenType;
    5858};
    5959
Note: See TracChangeset for help on using the changeset viewer.