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

Changeset 285793 in webkit


Ignore:
Timestamp:
Nov 14, 2021, 11:52:27 AM (5 years ago)
Author:
ysuzuki@apple.com
Message:

[JSC] Initialize m_usesT2
https://bugs.webkit.org/show_bug.cgi?id=233095

Reviewed by Alexey Shvayka.

m_usesT2 is not initialized as "false" correctly.

  • yarr/YarrJIT.cpp:
Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r285788 r285793  
     12021-11-14  Yusuke Suzuki  <ysuzuki@apple.com>
     2
     3        [JSC] Initialize m_usesT2
     4        https://bugs.webkit.org/show_bug.cgi?id=233095
     5
     6        Reviewed by Alexey Shvayka.
     7
     8        m_usesT2 is not initialized as "false" correctly.
     9
     10        * yarr/YarrJIT.cpp:
     11
    1122021-11-14  Mikhail R. Gadelha  <mikhail@igalia.com>
    213
  • trunk/Source/JavaScriptCore/yarr/YarrJIT.cpp

    r285651 r285793  
    40944094        , m_canonicalMode(m_pattern.unicode() ? CanonicalMode::Unicode : CanonicalMode::UCS2)
    40954095#if ENABLE(YARR_JIT_ALL_PARENS_EXPRESSIONS)
    4096         , m_containsNestedSubpatterns(false)
    40974096        , m_parenContextSizes(compileMode == JITCompileMode::IncludeSubpatterns ? m_pattern.m_numSubpatterns : 0, m_pattern.m_body->m_callFrameSize)
    40984097#endif
     
    41154114        , m_canonicalMode(m_pattern.unicode() ? CanonicalMode::Unicode : CanonicalMode::UCS2)
    41164115#if ENABLE(YARR_JIT_ALL_PARENS_EXPRESSIONS)
    4117         , m_containsNestedSubpatterns(false)
    41184116        , m_parenContextSizes(compileMode == JITCompileMode::IncludeSubpatterns ? m_pattern.m_numSubpatterns : 0, m_pattern.m_body->m_callFrameSize)
    41194117#endif
     
    46344632    bool m_decodeSurrogatePairs;
    46354633    bool m_unicodeIgnoreCase;
    4636     bool m_usesT2;
     4634    bool m_usesT2 { false };
    46374635    CanonicalMode m_canonicalMode;
    46384636#if ENABLE(YARR_JIT_ALL_PARENS_EXPRESSIONS)
    4639     bool m_containsNestedSubpatterns;
     4637    bool m_containsNestedSubpatterns { false };
    46404638    ParenContextSizes m_parenContextSizes;
    46414639#endif
Note: See TracChangeset for help on using the changeset viewer.