⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 215601 in webkit


Ignore:
Timestamp:
Apr 20, 2017, 8:38:16 PM (9 years ago)
Author:
Konstantin Tokarev
Message:

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

Reviewed by Yusuke Suzuki.

Source/JavaScriptCore:

  • 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):

Location:
trunk/Source
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r215600 r215601  
     12017-04-20  Konstantin Tokarev  <annulen@yandex.ru>
     2
     3        Remove unused lamda captures
     4        https://bugs.webkit.org/show_bug.cgi?id=171098
     5
     6        Reviewed by Yusuke Suzuki.
     7
     8        * bytecompiler/NodesCodegen.cpp:
     9        (JSC::ArrayNode::emitBytecode):
     10        * ftl/FTLState.cpp:
     11        (JSC::FTL::State::State):
     12        * wasm/WasmB3IRGenerator.cpp:
     13
    1142017-04-20  Yusuke Suzuki  <utatane.tea@gmail.com>
    215
  • trunk/Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp

    r215474 r215601  
    416416handleSpread:
    417417    RefPtr<RegisterID> index = generator.emitLoad(generator.newTemporary(), jsNumber(length));
    418     auto spreader = [this, array, index](BytecodeGenerator& generator, RegisterID* value)
     418    auto spreader = [array, index](BytecodeGenerator& generator, RegisterID* value)
    419419    {
    420420        generator.emitDirectPutByVal(array.get(), index.get(), value);
  • trunk/Source/JavaScriptCore/ftl/FTLState.cpp

    r196729 r215601  
    6868
    6969    proc->setOriginPrinter(
    70         [this] (PrintStream& out, B3::Origin origin) {
     70        [] (PrintStream& out, B3::Origin origin) {
    7171            out.print("DFG:", bitwise_cast<Node*>(origin.data()));
    7272        });
  • trunk/Source/JavaScriptCore/wasm/WasmB3IRGenerator.cpp

    r215533 r215601  
    999999                // We need to clobber all potential pinned registers since we might be leaving the instance.
    10001000                patchpoint->clobberLate(PinnedRegisterInfo::get().toSave());
    1001                 patchpoint->setGenerator([functionIndex, returnType] (CCallHelpers& jit, const B3::StackmapGenerationParams& params) {
     1001                patchpoint->setGenerator([returnType] (CCallHelpers& jit, const B3::StackmapGenerationParams& params) {
    10021002                    AllowMacroScratchRegisterUsage allowScratch(jit);
    10031003                    jit.call(params[returnType == Void ? 0 : 1].gpr());
  • trunk/Source/WebCore/ChangeLog

    r215597 r215601  
     12017-04-20  Konstantin Tokarev  <annulen@yandex.ru>
     2
     3        Remove unused lamda captures
     4        https://bugs.webkit.org/show_bug.cgi?id=171098
     5
     6        Reviewed by Yusuke Suzuki.
     7
     8        * Modules/indexeddb/server/SQLiteIDBBackingStore.cpp:
     9        (WebCore::IDBServer::SQLiteIDBBackingStore::getOrEstablishDatabaseInfo):
     10        * Modules/indexeddb/server/UniqueIDBDatabase.cpp:
     11        (WebCore::IDBServer::UniqueIDBDatabase::activateTransactionInBackingStore):
     12        * loader/ResourceLoadStatisticsStore.cpp:
     13        (WebCore::ResourceLoadStatisticsStore::createEncoderFromData):
     14        (WebCore::ResourceLoadStatisticsStore::readDataFromDecoder):
     15
    1162017-04-20  Timothy Horton  <timothy_horton@apple.com>
    217
  • trunk/Source/WebCore/Modules/indexeddb/server/SQLiteIDBBackingStore.cpp

    r215262 r215601  
    797797        return { IDBDatabaseException::UnknownError, ASCIILiteral("Unable to open database file on disk") };
    798798
    799     m_sqliteDB->setCollationFunction("IDBKEY", [this](int aLength, const void* a, int bLength, const void* b) {
     799    m_sqliteDB->setCollationFunction("IDBKEY", [](int aLength, const void* a, int bLength, const void* b) {
    800800        return idbKeyCollate(aLength, a, bLength, b);
    801801    });
  • trunk/Source/WebCore/Modules/indexeddb/server/UniqueIDBDatabase.cpp

    r215160 r215601  
    15711571    RefPtr<UniqueIDBDatabaseTransaction> refTransaction(&transaction);
    15721572
    1573     auto callback = [this, protectedThis, refTransaction](const IDBError& error) {
     1573    auto callback = [protectedThis, refTransaction](const IDBError& error) {
    15741574        refTransaction->didActivateInBackingStore(error);
    15751575    };
  • trunk/Source/WebCore/loader/ResourceLoadStatisticsStore.cpp

    r213871 r215601  
    7878
    7979    encoder->encodeUInt32("version", statisticsModelVersion);
    80     encoder->encodeObjects("browsingStatistics", m_resourceStatisticsMap.begin(), m_resourceStatisticsMap.end(), [this](KeyedEncoder& encoderInner, const StatisticsValue& origin) {
     80    encoder->encodeObjects("browsingStatistics", m_resourceStatisticsMap.begin(), m_resourceStatisticsMap.end(), [](KeyedEncoder& encoderInner, const StatisticsValue& origin) {
    8181        origin.value.encode(encoderInner);
    8282    });
     
    9494        version = 1;
    9595    Vector<ResourceLoadStatistics> loadedStatistics;
    96     bool succeeded = decoder.decodeObjects("browsingStatistics", loadedStatistics, [this, version](KeyedDecoder& decoderInner, ResourceLoadStatistics& statistics) {
     96    bool succeeded = decoder.decodeObjects("browsingStatistics", loadedStatistics, [version](KeyedDecoder& decoderInner, ResourceLoadStatistics& statistics) {
    9797        return statistics.decode(decoderInner, version);
    9898    });
Note: See TracChangeset for help on using the changeset viewer.