Title: [198979] trunk/Source/_javascript_Core
Revision
198979
Author
[email protected]
Date
2016-04-02 18:55:26 -0700 (Sat, 02 Apr 2016)

Log Message

Unreviewed, rolling out r198976.
https://bugs.webkit.org/show_bug.cgi?id=156140

"Causes js/regress/array-nonarray-polymorhpic-access.html to
crash." (Requested by ddkilzer on #webkit).

Reverted changeset:

"[JSC] Initialize SSA's live values at tail lazily"
https://bugs.webkit.org/show_bug.cgi?id=156126
http://trac.webkit.org/changeset/198976

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (198978 => 198979)


--- trunk/Source/_javascript_Core/ChangeLog	2016-04-03 01:22:25 UTC (rev 198978)
+++ trunk/Source/_javascript_Core/ChangeLog	2016-04-03 01:55:26 UTC (rev 198979)
@@ -1,3 +1,17 @@
+2016-04-02  Commit Queue  <[email protected]>
+
+        Unreviewed, rolling out r198976.
+        https://bugs.webkit.org/show_bug.cgi?id=156140
+
+        "Causes js/regress/array-nonarray-polymorhpic-access.html to
+        crash." (Requested by ddkilzer on #webkit).
+
+        Reverted changeset:
+
+        "[JSC] Initialize SSA's live values at tail lazily"
+        https://bugs.webkit.org/show_bug.cgi?id=156126
+        http://trac.webkit.org/changeset/198976
+
 2016-04-02  Benjamin Poulain  <[email protected]>
 
         [JSC] Initialize SSA's live values at tail lazily

Modified: trunk/Source/_javascript_Core/dfg/DFGInPlaceAbstractState.cpp (198978 => 198979)


--- trunk/Source/_javascript_Core/dfg/DFGInPlaceAbstractState.cpp	2016-04-03 01:22:25 UTC (rev 198978)
+++ trunk/Source/_javascript_Core/dfg/DFGInPlaceAbstractState.cpp	2016-04-03 01:55:26 UTC (rev 198979)
@@ -74,6 +74,16 @@
     m_structureClobberState = basicBlock->cfaStructureClobberStateAtHead;
 }
 
+static void setLiveValues(HashMap<Node*, AbstractValue>& values, HashSet<Node*>& live)
+{
+    values.clear();
+    
+    HashSet<Node*>::iterator iter = live.begin();
+    HashSet<Node*>::iterator end = live.end();
+    for (; iter != end; ++iter)
+        values.add(*iter, AbstractValue());
+}
+
 static void setLiveValues(Vector<BasicBlock::SSAData::NodeAbstractValuePair>& values, HashSet<Node*>& live)
 {
     values.resize(0);
@@ -153,6 +163,7 @@
             if (!block)
                 continue;
             setLiveValues(block->ssa->valuesAtHead, block->ssa->liveAtHead);
+            setLiveValues(block->ssa->valuesAtTail, block->ssa->liveAtTail);
         }
     }
 }
@@ -192,9 +203,11 @@
         for (size_t i = 0; i < block->valuesAtTail.size(); ++i)
             changed |= block->valuesAtTail[i].merge(m_variables[i]);
 
-        for (Node* node : block->ssa->liveAtTail) {
-            auto iterator = block->ssa->valuesAtTail.add(node, AbstractValue()).iterator;
-            changed |= iterator->value.merge(forNode(node));
+        HashSet<Node*>::iterator iter = block->ssa->liveAtTail.begin();
+        HashSet<Node*>::iterator end = block->ssa->liveAtTail.end();
+        for (; iter != end; ++iter) {
+            Node* node = *iter;
+            changed |= block->ssa->valuesAtTail.find(node)->value.merge(forNode(node));
         }
         break;
     }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to