Changeset 252885 in webkit


Ignore:
Timestamp:
Nov 26, 2019 4:21:13 AM (4 years ago)
Author:
commit-queue@webkit.org
Message:

Attempting to enable more than one FuzzerAgent should result in an error
https://bugs.webkit.org/show_bug.cgi?id=204607

Patch by Tuomas Karkkainen <tuomas.webkit@apple.com> on 2019-11-26
Reviewed by Antti Koivisto.

  • runtime/VM.cpp:
  • runtime/VM.h:
Location:
trunk/Source/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r252877 r252885  
     12019-11-26  Tuomas Karkkainen  <tuomas.webkit@apple.com>
     2
     3        Attempting to enable more than one FuzzerAgent should result in an error
     4        https://bugs.webkit.org/show_bug.cgi?id=204607
     5
     6        Reviewed by Antti Koivisto.
     7
     8        * runtime/VM.cpp:
     9        * runtime/VM.h:
     10
    1112019-11-26  Carlos Garcia Campos  <cgarcia@igalia.com>
    212
  • trunk/Source/JavaScriptCore/runtime/VM.cpp

    r252875 r252885  
    462462    if (Options::useRandomizingFuzzerAgent())
    463463        setFuzzerAgent(makeUnique<RandomizingFuzzerAgent>(*this));
    464     else if (Options::useDoublePredictionFuzzerAgent())
     464    if (Options::useDoublePredictionFuzzerAgent())
    465465        setFuzzerAgent(makeUnique<DoublePredictionFuzzerAgent>(*this));
    466466
  • trunk/Source/JavaScriptCore/runtime/VM.h

    r252875 r252885  
    304304    void setFuzzerAgent(std::unique_ptr<FuzzerAgent>&& fuzzerAgent)
    305305    {
     306        RELEASE_ASSERT_WITH_MESSAGE(!m_fuzzerAgent, "Only one FuzzerAgent can be specified at a time.");
    306307        m_fuzzerAgent = WTFMove(fuzzerAgent);
    307308    }
Note: See TracChangeset for help on using the changeset viewer.