Changeset 197686 in webkit
- Timestamp:
- Mar 7, 2016, 10:24:26 AM (11 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
bytecode/CodeBlock.cpp (modified) (1 diff)
-
bytecode/UnlinkedCodeBlock.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r197685 r197686 1 2016-03-07 Andreas Kling <akling@apple.com> 2 3 REGRESSION (r197303): Web Inspector crashes web process when inspecting an element on TOT 4 <https://webkit.org/b/154812> 5 6 Reviewed by Geoffrey Garen. 7 8 Guard against null pointer dereference for UnlinkedCodeBlocks that don't have any control flow 9 profiling data. 10 11 * bytecode/CodeBlock.cpp: 12 (JSC::CodeBlock::insertBasicBlockBoundariesForControlFlowProfiler): 13 * bytecode/UnlinkedCodeBlock.h: 14 (JSC::UnlinkedCodeBlock::hasOpProfileControlFlowBytecodeOffsets): 15 1 16 2016-03-07 Benjamin Poulain <benjamin@webkit.org> 2 17 -
trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp
r197563 r197686 4211 4211 void CodeBlock::insertBasicBlockBoundariesForControlFlowProfiler(RefCountedArray<Instruction>& instructions) 4212 4212 { 4213 if (!unlinkedCodeBlock()->hasOpProfileControlFlowBytecodeOffsets()) 4214 return; 4213 4215 const Vector<size_t>& bytecodeOffsets = unlinkedCodeBlock()->opProfileControlFlowBytecodeOffsets(); 4214 4216 for (size_t i = 0, offsetsLength = bytecodeOffsets.size(); i < offsetsLength; i++) { -
trunk/Source/JavaScriptCore/bytecode/UnlinkedCodeBlock.h
r197379 r197686 355 355 ASSERT(m_rareData); 356 356 return m_rareData->m_opProfileControlFlowBytecodeOffsets; 357 } 358 bool hasOpProfileControlFlowBytecodeOffsets() const 359 { 360 return m_rareData && !m_rareData->m_opProfileControlFlowBytecodeOffsets.isEmpty(); 357 361 } 358 362
Note:
See TracChangeset
for help on using the changeset viewer.