Use WTF::move() instead of std::move() to help ensure move semantics in JavaScriptCore
authorgyuyoung.kim@samsung.com <gyuyoung.kim@samsung.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 17 Oct 2014 09:54:14 +0000 (09:54 +0000)
committergyuyoung.kim@samsung.com <gyuyoung.kim@samsung.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 17 Oct 2014 09:54:14 +0000 (09:54 +0000)
https://bugs.webkit.org/show_bug.cgi?id=137809

Reviewed by Csaba Osztrogon√°c.

Substitution of WTF::move() for std::move(). Clean up std::move() in JavaScriptCore.

* bytecode/GetByIdStatus.cpp:
(JSC::GetByIdStatus::computeForStubInfo):
* bytecode/PutByIdStatus.cpp:
(JSC::PutByIdStatus::computeForStubInfo):
* bytecode/PutByIdVariant.cpp:
(JSC::PutByIdVariant::setter):

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

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/bytecode/GetByIdStatus.cpp
Source/JavaScriptCore/bytecode/PutByIdStatus.cpp
Source/JavaScriptCore/bytecode/PutByIdVariant.cpp

index c55f496..a23ec8a 100644 (file)
@@ -1,3 +1,19 @@
+2014-10-17  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
+
+        Use WTF::move() instead of std::move() to help ensure move semantics in JavaScriptCore
+        https://bugs.webkit.org/show_bug.cgi?id=137809
+
+        Reviewed by Csaba Osztrogon√°c.
+
+        Substitution of WTF::move() for std::move(). Clean up std::move() in JavaScriptCore.
+
+        * bytecode/GetByIdStatus.cpp:
+        (JSC::GetByIdStatus::computeForStubInfo):
+        * bytecode/PutByIdStatus.cpp:
+        (JSC::PutByIdStatus::computeForStubInfo):
+        * bytecode/PutByIdVariant.cpp:
+        (JSC::PutByIdVariant::setter):
+
 2014-10-15  Oliver Hunt  <oliver@apple.com>
 
         Use a single allocation for the Arguments object
index 356cfac..113347a 100644 (file)
@@ -201,7 +201,7 @@ GetByIdStatus GetByIdStatus::computeForStubInfo(
                  
                 GetByIdVariant variant(
                     StructureSet(structure), complexGetStatus.offset(), complexGetStatus.chain(),
-                    std::move(callLinkStatus));
+                    WTF::move(callLinkStatus));
                  
                 if (!result.appendVariant(variant))
                     return GetByIdStatus(slowPathState, true);
index 75cf2f1..f2ac18c 100644 (file)
@@ -249,7 +249,7 @@ PutByIdStatus PutByIdStatus::computeForStubInfo(
                     
                     variant = PutByIdVariant::setter(
                         structure, complexGetStatus.offset(), complexGetStatus.chain(),
-                        std::move(callLinkStatus));
+                        WTF::move(callLinkStatus));
                 } }
                 break;
             }
index caa82a1..e9d10df 100644 (file)
@@ -88,7 +88,7 @@ PutByIdVariant PutByIdVariant::setter(
         result.m_alternateBase = chain->terminalPrototype();
     }
     result.m_offset = offset;
-    result.m_callLinkStatus = std::move(callLinkStatus);
+    result.m_callLinkStatus = WTF::move(callLinkStatus);
     return result;
 }