Changeset 292714 in webkit for trunk/Source/JavaScriptCore/assembler/AbstractMacroAssembler.cpp
- Timestamp:
- Apr 11, 2022, 1:10:44 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/assembler/AbstractMacroAssembler.cpp
r284330 r292714 31 31 #include <wtf/PrintStream.h> 32 32 33 namespace JSC { 34 35 void AbstractMacroAssemblerBase::initializeRandom() 36 { 37 // No strong cryptographic characteristics are necessary. 38 static std::once_flag onceKey; 39 static uint32_t globalCounter; 40 std::call_once(onceKey, [&] { 41 globalCounter = cryptographicallyRandomNumber(); 42 }); 43 ASSERT(!m_randomSource); 44 m_randomSource.emplace(globalCounter++); 45 } 46 47 } 48 33 49 namespace WTF { 34 50 35 using namespace JSC; 36 37 void printInternal(PrintStream& out, AbstractMacroAssemblerBase::StatusCondition condition) 51 void printInternal(PrintStream& out, JSC::AbstractMacroAssemblerBase::StatusCondition condition) 38 52 { 39 53 switch (condition) { 40 case AbstractMacroAssemblerBase::Success:54 case JSC::AbstractMacroAssemblerBase::Success: 41 55 out.print("Success"); 42 56 return; 43 case AbstractMacroAssemblerBase::Failure:57 case JSC::AbstractMacroAssemblerBase::Failure: 44 58 out.print("Failure"); 45 59 return;
Note:
See TracChangeset
for help on using the changeset viewer.