Changeset 175411 in webkit
- Timestamp:
- Oct 31, 2014, 10:37:25 AM (11 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r175397 r175411 1 2014-10-31 Chris Dumez <cdumez@apple.com> 2 3 Fix a couple of warnings in JSC reported by clang static analyzer 4 https://bugs.webkit.org/show_bug.cgi?id=138240 5 6 Reviewed by Geoffrey Garen. 7 8 Fix a couple of warnings in JSC reported by clang static analyzer about 9 value stored in variables never being read. This is addressed by 10 reducing the scope of the variable or removing the variable entirely. 11 12 * dfg/DFGConstantFoldingPhase.cpp: 13 (JSC::DFG::ConstantFoldingPhase::emitGetByOffset): 14 * runtime/VM.cpp: 15 (JSC::VM::throwException): 16 1 17 2014-10-30 Dana Burkart <dburkart@apple.com> 2 18 -
trunk/Source/JavaScriptCore/dfg/DFGConstantFoldingPhase.cpp
r173993 r175411 493 493 NodeOrigin origin = node->origin; 494 494 Edge childEdge = node->child1(); 495 Node* child = childEdge.node();496 495 497 496 addBaseCheck(indexInBlock, node, baseValue, variant.structureSet()); … … 508 507 509 508 if (variant.alternateBase()) { 510 child = m_insertionSet.insertConstant(indexInBlock, origin, variant.alternateBase());509 Node* child = m_insertionSet.insertConstant(indexInBlock, origin, variant.alternateBase()); 511 510 childEdge = Edge(child, KnownCellUse); 512 511 } else -
trunk/Source/JavaScriptCore/runtime/VM.cpp
r174789 r175411 661 661 break; 662 662 } 663 unsigned bytecodeOffset = stackFrame.bytecodeOffset;664 663 if (!hasErrorInfo(exec, exception)) { 665 664 // FIXME: We should only really be adding these properties to VM generated exceptions, … … 681 680 if (callFrame && callFrame->codeBlock()) { 682 681 stackFrame = stackTrace.at(stackIndex); 683 bytecodeOffset = stackFrame.bytecodeOffset; 684 appendSourceToError(callFrame, static_cast<ErrorInstance*>(exception), bytecodeOffset); 682 appendSourceToError(callFrame, static_cast<ErrorInstance*>(exception), stackFrame.bytecodeOffset); 685 683 } 686 684 }
Note:
See TracChangeset
for help on using the changeset viewer.