[JSC] Use WTFMove to prune liveness in DFGAvailabilityMap
authorutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Jul 2017 08:21:52 +0000 (08:21 +0000)
committerutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Jul 2017 08:21:52 +0000 (08:21 +0000)
https://bugs.webkit.org/show_bug.cgi?id=174423

Reviewed by Saam Barati.

* dfg/DFGAvailabilityMap.cpp:
(JSC::DFG::AvailabilityMap::pruneHeap):
(JSC::DFG::AvailabilityMap::pruneByLiveness):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@219502 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/dfg/DFGAvailabilityMap.cpp

index 691e49f..aeef558 100644 (file)
@@ -1,3 +1,14 @@
+2017-07-14  Yusuke Suzuki  <utatane.tea@gmail.com>
+
+        [JSC] Use WTFMove to prune liveness in DFGAvailabilityMap
+        https://bugs.webkit.org/show_bug.cgi?id=174423
+
+        Reviewed by Saam Barati.
+
+        * dfg/DFGAvailabilityMap.cpp:
+        (JSC::DFG::AvailabilityMap::pruneHeap):
+        (JSC::DFG::AvailabilityMap::pruneByLiveness):
+
 2017-07-13  Michael Catanzaro  <mcatanzaro@igalia.com>
 
         Fix compiler warnings when building with GCC 7
index dabdba0..7855f89 100644 (file)
@@ -60,7 +60,7 @@ void AvailabilityMap::pruneHeap()
         if (possibleNodes.contains(pair.key.base()))
             newHeap.add(pair.key, pair.value);
     }
-    m_heap = newHeap;
+    m_heap = WTFMove(newHeap);
 }
 
 void AvailabilityMap::pruneByLiveness(Graph& graph, CodeOrigin where)
@@ -71,7 +71,7 @@ void AvailabilityMap::pruneByLiveness(Graph& graph, CodeOrigin where)
         [&] (VirtualRegister reg) {
             localsCopy.operand(reg) = m_locals.operand(reg);
         });
-    m_locals = localsCopy;
+    m_locals = WTFMove(localsCopy);
     pruneHeap();
 }