Title: [285793] trunk/Source/_javascript_Core
Revision
285793
Author
ysuz...@apple.com
Date
2021-11-14 11:52:27 -0800 (Sun, 14 Nov 2021)

Log 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:

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (285792 => 285793)


--- trunk/Source/_javascript_Core/ChangeLog	2021-11-14 19:38:16 UTC (rev 285792)
+++ trunk/Source/_javascript_Core/ChangeLog	2021-11-14 19:52:27 UTC (rev 285793)
@@ -1,3 +1,14 @@
+2021-11-14  Yusuke Suzuki  <ysuz...@apple.com>
+
+        [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:
+
 2021-11-14  Mikhail R. Gadelha  <mikh...@igalia.com>
 
         Prevent fused multiply add during ParseInt

Modified: trunk/Source/_javascript_Core/yarr/YarrJIT.cpp (285792 => 285793)


--- trunk/Source/_javascript_Core/yarr/YarrJIT.cpp	2021-11-14 19:38:16 UTC (rev 285792)
+++ trunk/Source/_javascript_Core/yarr/YarrJIT.cpp	2021-11-14 19:52:27 UTC (rev 285793)
@@ -4093,7 +4093,6 @@
         , m_unicodeIgnoreCase(m_pattern.unicode() && m_pattern.ignoreCase())
         , m_canonicalMode(m_pattern.unicode() ? CanonicalMode::Unicode : CanonicalMode::UCS2)
 #if ENABLE(YARR_JIT_ALL_PARENS_EXPRESSIONS)
-        , m_containsNestedSubpatterns(false)
         , m_parenContextSizes(compileMode == JITCompileMode::IncludeSubpatterns ? m_pattern.m_numSubpatterns : 0, m_pattern.m_body->m_callFrameSize)
 #endif
     {
@@ -4114,7 +4113,6 @@
         , m_unicodeIgnoreCase(m_pattern.unicode() && m_pattern.ignoreCase())
         , m_canonicalMode(m_pattern.unicode() ? CanonicalMode::Unicode : CanonicalMode::UCS2)
 #if ENABLE(YARR_JIT_ALL_PARENS_EXPRESSIONS)
-        , m_containsNestedSubpatterns(false)
         , m_parenContextSizes(compileMode == JITCompileMode::IncludeSubpatterns ? m_pattern.m_numSubpatterns : 0, m_pattern.m_body->m_callFrameSize)
 #endif
     {
@@ -4633,10 +4631,10 @@
 
     bool m_decodeSurrogatePairs;
     bool m_unicodeIgnoreCase;
-    bool m_usesT2;
+    bool m_usesT2 { false };
     CanonicalMode m_canonicalMode;
 #if ENABLE(YARR_JIT_ALL_PARENS_EXPRESSIONS)
-    bool m_containsNestedSubpatterns;
+    bool m_containsNestedSubpatterns { false };
     ParenContextSizes m_parenContextSizes;
 #endif
     MacroAssembler::JumpList m_abortExecution;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to