Changeset 243853 in webkit
- Timestamp:
- Apr 3, 2019, 8:44:18 PM (7 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
runtime/Options.cpp (modified) (1 diff)
-
runtime/Options.h (modified) (1 diff)
-
runtime/RandomizingFuzzerAgent.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r243851 r243853 1 2019-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 1 13 2019-04-03 Robin Morisset <rmorisset@apple.com> 2 14 -
trunk/Source/JavaScriptCore/runtime/Options.cpp
r243843 r243853 452 452 || Options::verboseCFA() 453 453 || Options::verboseDFGFailure() 454 || Options::verboseFTLFailure() 455 || Options::dumpRandomizingFuzzerAgentPredictions()) 454 || Options::verboseFTLFailure()) 456 455 Options::alwaysComputeHash() = true; 457 456 -
trunk/Source/JavaScriptCore/runtime/Options.h
r243843 r243853 437 437 v(bool, useRandomizingFuzzerAgent, false, Normal, nullptr) \ 438 438 v(unsigned, seedOfRandomizingFuzzerAgent, 1, Normal, nullptr) \ 439 v(bool, dumpRandomizingFuzzerAgentPredictions, false, Normal, nullptr) \440 439 \ 441 440 v(bool, logPhaseTimes, false, Normal, nullptr) \ -
trunk/Source/JavaScriptCore/runtime/RandomizingFuzzerAgent.cpp
r243843 r243853 34 34 } 35 35 36 SpeculatedType RandomizingFuzzerAgent::getPrediction(CodeBlock* codeBlock, int bytecodeIndex, SpeculatedType original)36 SpeculatedType RandomizingFuzzerAgent::getPrediction(CodeBlock*, int, SpeculatedType) 37 37 { 38 38 auto locker = holdLock(m_lock); 39 39 uint32_t high = m_random.getUint32(); 40 40 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; 45 43 } 46 44
Note:
See TracChangeset
for help on using the changeset viewer.