Changeset 153143 in webkit for trunk/Source/JavaScriptCore/profiler/ProfilerDatabase.cpp
- Timestamp:
- Jul 24, 2013, 8:59:31 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/profiler/ProfilerDatabase.cpp
r148696 r153143 61 61 Bytecodes* Database::ensureBytecodesFor(CodeBlock* codeBlock) 62 62 { 63 Locker locker(m_lock); 64 63 65 codeBlock = codeBlock->baselineVersion(); 64 66 … … 77 79 void Database::notifyDestruction(CodeBlock* codeBlock) 78 80 { 81 Locker locker(m_lock); 82 79 83 m_bytecodesMap.remove(codeBlock); 80 84 } 81 85 82 PassRefPtr<Compilation> Database::newCompilation(Bytecodes* bytecodes, CompilationKind kind)86 void Database::addCompilation(PassRefPtr<Compilation> compilation) 83 87 { 84 RefPtr<Compilation> compilation = adoptRef(new Compilation(bytecodes, kind)); 88 ASSERT(!isCompilationThread()); 89 85 90 m_compilations.append(compilation); 86 return compilation.release();87 }88 89 PassRefPtr<Compilation> Database::newCompilation(CodeBlock* codeBlock, CompilationKind kind)90 {91 return newCompilation(ensureBytecodesFor(codeBlock), kind);92 91 } 93 92
Note:
See TracChangeset
for help on using the changeset viewer.