Changeset 43105 in webkit for trunk/JavaScriptCore
- Timestamp:
- Apr 30, 2009, 4:55:11 PM (16 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r43104 r43105 1 2009-04-30 Gavin Barraclough <[email protected]> 2 3 Reviewed by Oliver Hunt. 4 5 OPCODE_SAMPLING without CODEBLOCK_SAMPLING is currently broken, 6 since SamplingTool::Sample::isNull() checks the m_codeBlock 7 member (which is always null without CODEBLOCK_SAMPLING). 8 9 Restructure the checks so make this work again. 10 11 * bytecode/SamplingTool.cpp: 12 (JSC::SamplingTool::doRun): 13 * bytecode/SamplingTool.h: 14 (JSC::SamplingTool::Sample::isNull): 15 1 16 2009-04-30 Maciej Stachowiak <[email protected]> 2 17 -
trunk/JavaScriptCore/bytecode/SamplingTool.cpp
r43087 r43105 196 196 197 197 #if ENABLE(CODEBLOCK_SAMPLING) 198 MutexLocker locker(m_scopeSampleMapMutex); 199 ScopeSampleRecord* record = m_scopeSampleMap->get(sample.codeBlock()->ownerNode()); 200 ASSERT(record); 201 record->sample(sample.codeBlock(), sample.vPC()); 198 if (CodeBlock* codeBlock = sample.codeBlock()) { 199 MutexLocker locker(m_scopeSampleMapMutex); 200 ScopeSampleRecord* record = m_scopeSampleMap->get(codeBlock->ownerNode()); 201 ASSERT(record); 202 record->sample(codeBlock, sample.vPC()); 203 } 202 204 #endif 203 205 } -
trunk/JavaScriptCore/bytecode/SamplingTool.h
r43087 r43105 235 235 } 236 236 237 bool isNull() { return !m_sample || !m_codeBlock; }237 bool isNull() { return !m_sample; } 238 238 CodeBlock* codeBlock() { return m_codeBlock; } 239 239 Instruction* vPC() { return reinterpret_cast<Instruction*>(m_sample & ~0x3); }
Note:
See TracChangeset
for help on using the changeset viewer.