Title: [232002] trunk/Source/_javascript_Core
Revision
232002
Author
[email protected]
Date
2018-05-20 03:49:20 -0700 (Sun, 20 May 2018)

Log Message

[DFG] CheckTypeInfoFlags should say `eliminated` if it is removed in constant folding phase
https://bugs.webkit.org/show_bug.cgi?id=185802

Reviewed by Saam Barati.

* dfg/DFGConstantFoldingPhase.cpp:
(JSC::DFG::ConstantFoldingPhase::foldConstants):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (232001 => 232002)


--- trunk/Source/_javascript_Core/ChangeLog	2018-05-19 23:07:38 UTC (rev 232001)
+++ trunk/Source/_javascript_Core/ChangeLog	2018-05-20 10:49:20 UTC (rev 232002)
@@ -1,3 +1,13 @@
+2018-05-20  Yusuke Suzuki  <[email protected]>
+
+        [DFG] CheckTypeInfoFlags should say `eliminated` if it is removed in constant folding phase
+        https://bugs.webkit.org/show_bug.cgi?id=185802
+
+        Reviewed by Saam Barati.
+
+        * dfg/DFGConstantFoldingPhase.cpp:
+        (JSC::DFG::ConstantFoldingPhase::foldConstants):
+
 2018-05-18  Filip Pizlo  <[email protected]>
 
         DFG should inline InstanceOf ICs

Modified: trunk/Source/_javascript_Core/dfg/DFGConstantFoldingPhase.cpp (232001 => 232002)


--- trunk/Source/_javascript_Core/dfg/DFGConstantFoldingPhase.cpp	2018-05-19 23:07:38 UTC (rev 232001)
+++ trunk/Source/_javascript_Core/dfg/DFGConstantFoldingPhase.cpp	2018-05-20 10:49:20 UTC (rev 232002)
@@ -865,7 +865,7 @@
                 ASSERT(bits);
                 if (bits == ImplementsDefaultHasInstance) {
                     if (abstractValue.m_type == SpecFunctionWithDefaultHasInstance) {
-                        changed = true;
+                        eliminated = true;
                         node->remove(m_graph);
                         break;
                     }
@@ -877,7 +877,7 @@
                         // and we can read its inline type info flags. These flags don't change over the
                         // object's lifetime.
                         if ((value.asCell()->inlineTypeFlags() & bits) == bits) {
-                            changed = true;
+                            eliminated = true;
                             node->remove(m_graph);
                             break;
                         }
@@ -890,7 +890,7 @@
                         ok &= (structure->typeInfo().inlineTypeFlags() & bits) == bits;
                     });
                     if (ok) {
-                        changed = true;
+                        eliminated = true;
                         node->remove(m_graph);
                         break;
                     }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to