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

Changeset 243853 in webkit


Ignore:
Timestamp:
Apr 3, 2019, 8:44:18 PM (7 years ago)
Author:
Ryan Haddad
Message:

Unreviewed, rolling out r243843.

Broke CLoop and Windows builds.

Reverted changeset:

"[JSC] Add dump feature for RandomizingFuzzerAgent"
https://bugs.webkit.org/show_bug.cgi?id=196586
https://trac.webkit.org/changeset/243843

Location:
trunk/Source/JavaScriptCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r243851 r243853  
     12019-04-03  Ryan Haddad  <ryanhaddad@apple.com>
     2
     3        Unreviewed, rolling out r243843.
     4
     5        Broke CLoop and Windows builds.
     6
     7        Reverted changeset:
     8
     9        "[JSC] Add dump feature for RandomizingFuzzerAgent"
     10        https://bugs.webkit.org/show_bug.cgi?id=196586
     11        https://trac.webkit.org/changeset/243843
     12
    1132019-04-03  Robin Morisset  <rmorisset@apple.com>
    214
  • trunk/Source/JavaScriptCore/runtime/Options.cpp

    r243843 r243853  
    452452        || Options::verboseCFA()
    453453        || Options::verboseDFGFailure()
    454         || Options::verboseFTLFailure()
    455         || Options::dumpRandomizingFuzzerAgentPredictions())
     454        || Options::verboseFTLFailure())
    456455        Options::alwaysComputeHash() = true;
    457456   
  • trunk/Source/JavaScriptCore/runtime/Options.h

    r243843 r243853  
    437437    v(bool, useRandomizingFuzzerAgent, false, Normal, nullptr) \
    438438    v(unsigned, seedOfRandomizingFuzzerAgent, 1, Normal, nullptr) \
    439     v(bool, dumpRandomizingFuzzerAgentPredictions, false, Normal, nullptr) \
    440439    \
    441440    v(bool, logPhaseTimes, false, Normal, nullptr) \
  • trunk/Source/JavaScriptCore/runtime/RandomizingFuzzerAgent.cpp

    r243843 r243853  
    3434}
    3535
    36 SpeculatedType RandomizingFuzzerAgent::getPrediction(CodeBlock* codeBlock, int bytecodeIndex, SpeculatedType original)
     36SpeculatedType RandomizingFuzzerAgent::getPrediction(CodeBlock*, int, SpeculatedType)
    3737{
    3838    auto locker = holdLock(m_lock);
    3939    uint32_t high = m_random.getUint32();
    4040    uint32_t low = m_random.getUint32();
    41     SpeculatedType generated = static_cast<SpeculatedType>((static_cast<uint64_t>(high) << 32) | low) & SpecFullTop;
    42     if (Options::dumpRandomizingFuzzerAgentPredictions())
    43         dataLogLn("getPrediction name:(", codeBlock->inferredName(), "#", codeBlock->hashAsStringIfPossible(), "),bytecodeIndex:(", bytecodeIndex, "),original:(", SpeculationDump(original), "),generated:(", SpeculationDump(generated), ")");
    44     return generated;
     41    uint64_t result = (static_cast<uint64_t>(high) << 32) | low;
     42    return static_cast<SpeculatedType>(result) & SpecFullTop;
    4543}
    4644
Note: See TracChangeset for help on using the changeset viewer.