Changeset 153671 in webkit for trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp
- Timestamp:
- Aug 2, 2013, 2:50:56 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp
r153460 r153671 84 84 } 85 85 86 bool CodeBlock::hasHash() const 87 { 88 return !!m_hash; 89 } 90 91 bool CodeBlock::isSafeToComputeHash() const 92 { 93 return !isCompilationThread(); 94 } 95 86 96 CodeBlockHash CodeBlock::hash() const 87 97 { 88 98 if (!m_hash) { 89 RELEASE_ASSERT( !isCompilationThread());99 RELEASE_ASSERT(isSafeToComputeHash()); 90 100 m_hash = CodeBlockHash(ownerExecutable()->source(), specializationKind()); 91 101 } … … 118 128 void CodeBlock::dumpAssumingJITType(PrintStream& out, JITCode::JITType jitType) const 119 129 { 120 out.print(inferredName(), "#", hash(), ":[", RawPointer(this), "->", RawPointer(ownerExecutable()), ", ", jitType, codeType()); 130 if (hasHash() || isSafeToComputeHash()) 131 out.print(inferredName(), "#", hash(), ":[", RawPointer(this), "->", RawPointer(ownerExecutable()), ", ", jitType, codeType()); 132 else 133 out.print(inferredName(), "#<no-hash>:[", RawPointer(this), "->", RawPointer(ownerExecutable()), ", ", jitType, codeType()); 134 121 135 if (codeType() == FunctionCode) 122 136 out.print(specializationKind());
Note:
See TracChangeset
for help on using the changeset viewer.