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

Changeset 243867 in webkit


Ignore:
Timestamp:
Apr 4, 2019, 7:15:20 AM (7 years ago)
Author:
Tadeu Zagallo
Message:

UnlinkedCodeBlock constructor from cache should initialize m_didOptimize
https://bugs.webkit.org/show_bug.cgi?id=196396

Reviewed by Saam Barati.

The UnlinkedCodeBlock constructor in CachedTypes was missing the initialization
for m_didOptimize, which leads to crashes in CodeBlock::thresholdForJIT.

  • runtime/CachedTypes.cpp:

(JSC::UnlinkedCodeBlock::UnlinkedCodeBlock):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r243857 r243867  
     12019-04-04  Tadeu Zagallo  <tzagallo@apple.com>
     2
     3        UnlinkedCodeBlock constructor from cache should initialize m_didOptimize
     4        https://bugs.webkit.org/show_bug.cgi?id=196396
     5
     6        Reviewed by Saam Barati.
     7
     8        The UnlinkedCodeBlock constructor in CachedTypes was missing the initialization
     9        for m_didOptimize, which leads to crashes in CodeBlock::thresholdForJIT.
     10
     11        * runtime/CachedTypes.cpp:
     12        (JSC::UnlinkedCodeBlock::UnlinkedCodeBlock):
     13
    1142019-04-03  Yusuke Suzuki  <ysuzuki@apple.com>
    215
  • trunk/Source/JavaScriptCore/runtime/CachedTypes.cpp

    r243295 r243867  
    18741874    , m_hasTailCalls(cachedCodeBlock.hasTailCalls())
    18751875    , m_codeType(cachedCodeBlock.codeType())
     1876
     1877    , m_didOptimize(static_cast<unsigned>(MixedTriState))
    18761878
    18771879    , m_features(cachedCodeBlock.features())
Note: See TracChangeset for help on using the changeset viewer.