fourthTier: CFA should consider live-at-head for clobbering and dumping
authoroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 25 Jul 2013 04:04:57 +0000 (04:04 +0000)
committeroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 25 Jul 2013 04:04:57 +0000 (04:04 +0000)
commit8bb6002365157f8bd2fd0d4048df0e236a353a92
tree62e0524d2aa6acb63100c107485259bee4feeb19
parent0840d78410a44ffeafcbea87fe21ef239b736341
fourthTier: CFA should consider live-at-head for clobbering and dumping
https://bugs.webkit.org/show_bug.cgi?id=118857

Reviewed by Mark Hahnenberg.

- clobberStructures() was not considering nodes live-at-head when in SSA
  form. This means it would fail to clobber some structures.

- dump() was not considering nodes live-at-head when in SSA form. This
  means it wouldn't dump everything that you might be interested in.

- AbstractState::m_currentNode is a useless variable and we should get
  rid of it.

* dfg/DFGAbstractState.cpp:
(JSC::DFG::AbstractState::AbstractState):
(JSC::DFG::AbstractState::beginBasicBlock):
(JSC::DFG::AbstractState::reset):
(JSC::DFG::AbstractState::startExecuting):
(JSC::DFG::AbstractState::clobberStructures):
(JSC::DFG::AbstractState::dump):
* dfg/DFGAbstractState.h:
(AbstractState):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@153280 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/dfg/DFGAbstractState.cpp
Source/JavaScriptCore/dfg/DFGAbstractState.h