Title: [215601] trunk/Source
Revision
215601
Author
annu...@yandex.ru
Date
2017-04-20 20:38:16 -0700 (Thu, 20 Apr 2017)

Log Message

Remove unused lamda captures
https://bugs.webkit.org/show_bug.cgi?id=171098

Reviewed by Yusuke Suzuki.

Source/_javascript_Core:

* bytecompiler/NodesCodegen.cpp:
(JSC::ArrayNode::emitBytecode):
* ftl/FTLState.cpp:
(JSC::FTL::State::State):
* wasm/WasmB3IRGenerator.cpp:

Source/WebCore:

* Modules/indexeddb/server/SQLiteIDBBackingStore.cpp:
(WebCore::IDBServer::SQLiteIDBBackingStore::getOrEstablishDatabaseInfo):
* Modules/indexeddb/server/UniqueIDBDatabase.cpp:
(WebCore::IDBServer::UniqueIDBDatabase::activateTransactionInBackingStore):
* loader/ResourceLoadStatisticsStore.cpp:
(WebCore::ResourceLoadStatisticsStore::createEncoderFromData):
(WebCore::ResourceLoadStatisticsStore::readDataFromDecoder):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (215600 => 215601)


--- trunk/Source/_javascript_Core/ChangeLog	2017-04-21 02:08:28 UTC (rev 215600)
+++ trunk/Source/_javascript_Core/ChangeLog	2017-04-21 03:38:16 UTC (rev 215601)
@@ -1,3 +1,16 @@
+2017-04-20  Konstantin Tokarev  <annu...@yandex.ru>
+
+        Remove unused lamda captures
+        https://bugs.webkit.org/show_bug.cgi?id=171098
+
+        Reviewed by Yusuke Suzuki.
+
+        * bytecompiler/NodesCodegen.cpp:
+        (JSC::ArrayNode::emitBytecode):
+        * ftl/FTLState.cpp:
+        (JSC::FTL::State::State):
+        * wasm/WasmB3IRGenerator.cpp:
+
 2017-04-20  Yusuke Suzuki  <utatane....@gmail.com>
 
         [JSC][FTL] FTL should support Arrayify

Modified: trunk/Source/_javascript_Core/bytecompiler/NodesCodegen.cpp (215600 => 215601)


--- trunk/Source/_javascript_Core/bytecompiler/NodesCodegen.cpp	2017-04-21 02:08:28 UTC (rev 215600)
+++ trunk/Source/_javascript_Core/bytecompiler/NodesCodegen.cpp	2017-04-21 03:38:16 UTC (rev 215601)
@@ -415,7 +415,7 @@
     
 handleSpread:
     RefPtr<RegisterID> index = generator.emitLoad(generator.newTemporary(), jsNumber(length));
-    auto spreader = [this, array, index](BytecodeGenerator& generator, RegisterID* value)
+    auto spreader = [array, index](BytecodeGenerator& generator, RegisterID* value)
     {
         generator.emitDirectPutByVal(array.get(), index.get(), value);
         generator.emitInc(index.get());

Modified: trunk/Source/_javascript_Core/ftl/FTLState.cpp (215600 => 215601)


--- trunk/Source/_javascript_Core/ftl/FTLState.cpp	2017-04-21 02:08:28 UTC (rev 215600)
+++ trunk/Source/_javascript_Core/ftl/FTLState.cpp	2017-04-21 03:38:16 UTC (rev 215601)
@@ -67,7 +67,7 @@
     proc = std::make_unique<Procedure>();
 
     proc->setOriginPrinter(
-        [this] (PrintStream& out, B3::Origin origin) {
+        [] (PrintStream& out, B3::Origin origin) {
             out.print("DFG:", bitwise_cast<Node*>(origin.data()));
         });
 

Modified: trunk/Source/_javascript_Core/wasm/WasmB3IRGenerator.cpp (215600 => 215601)


--- trunk/Source/_javascript_Core/wasm/WasmB3IRGenerator.cpp	2017-04-21 02:08:28 UTC (rev 215600)
+++ trunk/Source/_javascript_Core/wasm/WasmB3IRGenerator.cpp	2017-04-21 03:38:16 UTC (rev 215601)
@@ -998,7 +998,7 @@
                 patchpoint->append(jumpDestination, ValueRep::SomeRegister);
                 // We need to clobber all potential pinned registers since we might be leaving the instance.
                 patchpoint->clobberLate(PinnedRegisterInfo::get().toSave());
-                patchpoint->setGenerator([functionIndex, returnType] (CCallHelpers& jit, const B3::StackmapGenerationParams& params) {
+                patchpoint->setGenerator([returnType] (CCallHelpers& jit, const B3::StackmapGenerationParams& params) {
                     AllowMacroScratchRegisterUsage allowScratch(jit);
                     jit.call(params[returnType == Void ? 0 : 1].gpr());
                 });

Modified: trunk/Source/WebCore/ChangeLog (215600 => 215601)


--- trunk/Source/WebCore/ChangeLog	2017-04-21 02:08:28 UTC (rev 215600)
+++ trunk/Source/WebCore/ChangeLog	2017-04-21 03:38:16 UTC (rev 215601)
@@ -1,3 +1,18 @@
+2017-04-20  Konstantin Tokarev  <annu...@yandex.ru>
+
+        Remove unused lamda captures
+        https://bugs.webkit.org/show_bug.cgi?id=171098
+
+        Reviewed by Yusuke Suzuki.
+
+        * Modules/indexeddb/server/SQLiteIDBBackingStore.cpp:
+        (WebCore::IDBServer::SQLiteIDBBackingStore::getOrEstablishDatabaseInfo):
+        * Modules/indexeddb/server/UniqueIDBDatabase.cpp:
+        (WebCore::IDBServer::UniqueIDBDatabase::activateTransactionInBackingStore):
+        * loader/ResourceLoadStatisticsStore.cpp:
+        (WebCore::ResourceLoadStatisticsStore::createEncoderFromData):
+        (WebCore::ResourceLoadStatisticsStore::readDataFromDecoder):
+
 2017-04-20  Timothy Horton  <timothy_hor...@apple.com>
 
         Expose obscured insets to web content (as "safe area insets")

Modified: trunk/Source/WebCore/Modules/indexeddb/server/SQLiteIDBBackingStore.cpp (215600 => 215601)


--- trunk/Source/WebCore/Modules/indexeddb/server/SQLiteIDBBackingStore.cpp	2017-04-21 02:08:28 UTC (rev 215600)
+++ trunk/Source/WebCore/Modules/indexeddb/server/SQLiteIDBBackingStore.cpp	2017-04-21 03:38:16 UTC (rev 215601)
@@ -796,7 +796,7 @@
     if (!m_sqliteDB)
         return { IDBDatabaseException::UnknownError, ASCIILiteral("Unable to open database file on disk") };
 
-    m_sqliteDB->setCollationFunction("IDBKEY", [this](int aLength, const void* a, int bLength, const void* b) {
+    m_sqliteDB->setCollationFunction("IDBKEY", [](int aLength, const void* a, int bLength, const void* b) {
         return idbKeyCollate(aLength, a, bLength, b);
     });
 

Modified: trunk/Source/WebCore/Modules/indexeddb/server/UniqueIDBDatabase.cpp (215600 => 215601)


--- trunk/Source/WebCore/Modules/indexeddb/server/UniqueIDBDatabase.cpp	2017-04-21 02:08:28 UTC (rev 215600)
+++ trunk/Source/WebCore/Modules/indexeddb/server/UniqueIDBDatabase.cpp	2017-04-21 03:38:16 UTC (rev 215601)
@@ -1570,7 +1570,7 @@
     RefPtr<UniqueIDBDatabase> protectedThis(this);
     RefPtr<UniqueIDBDatabaseTransaction> refTransaction(&transaction);
 
-    auto callback = [this, protectedThis, refTransaction](const IDBError& error) {
+    auto callback = [protectedThis, refTransaction](const IDBError& error) {
         refTransaction->didActivateInBackingStore(error);
     };
 

Modified: trunk/Source/WebCore/loader/ResourceLoadStatisticsStore.cpp (215600 => 215601)


--- trunk/Source/WebCore/loader/ResourceLoadStatisticsStore.cpp	2017-04-21 02:08:28 UTC (rev 215600)
+++ trunk/Source/WebCore/loader/ResourceLoadStatisticsStore.cpp	2017-04-21 03:38:16 UTC (rev 215601)
@@ -77,7 +77,7 @@
     auto encoder = KeyedEncoder::encoder();
 
     encoder->encodeUInt32("version", statisticsModelVersion);
-    encoder->encodeObjects("browsingStatistics", m_resourceStatisticsMap.begin(), m_resourceStatisticsMap.end(), [this](KeyedEncoder& encoderInner, const StatisticsValue& origin) {
+    encoder->encodeObjects("browsingStatistics", m_resourceStatisticsMap.begin(), m_resourceStatisticsMap.end(), [](KeyedEncoder& encoderInner, const StatisticsValue& origin) {
         origin.value.encode(encoderInner);
     });
 
@@ -93,7 +93,7 @@
     if (!decoder.decodeUInt32("version", version))
         version = 1;
     Vector<ResourceLoadStatistics> loadedStatistics;
-    bool succeeded = decoder.decodeObjects("browsingStatistics", loadedStatistics, [this, version](KeyedDecoder& decoderInner, ResourceLoadStatistics& statistics) {
+    bool succeeded = decoder.decodeObjects("browsingStatistics", loadedStatistics, [version](KeyedDecoder& decoderInner, ResourceLoadStatistics& statistics) {
         return statistics.decode(decoderInner, version);
     });
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to