Changeset 146268 in webkit for trunk/Source/JavaScriptCore/dfg/DFGDCEPhase.cpp
- Timestamp:
- Mar 19, 2013, 3:22:06 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGDCEPhase.cpp
r145145 r146268 31 31 #include "DFGBasicBlockInlines.h" 32 32 #include "DFGGraph.h" 33 #include "DFGInsertionSet.h" 33 34 #include "DFGPhase.h" 34 35 #include "Operations.h" … … 85 86 if (!block) 86 87 continue; 88 89 InsertionSet insertionSet(m_graph); 90 87 91 for (unsigned indexInBlock = block->size(); indexInBlock--;) { 88 92 Node* node = block->at(indexInBlock); … … 117 121 break; 118 122 } 119 123 120 124 default: { 125 if (node->flags() & NodeHasVarArgs) { 126 for (unsigned childIdx = node->firstChild(); childIdx < node->firstChild() + node->numChildren(); childIdx++) { 127 Edge edge = m_graph.m_varArgChildren[childIdx]; 128 129 if (!edge || edge.isProved() || edge.useKind() == UntypedUse) 130 continue; 131 132 insertionSet.insertNode(indexInBlock, SpecNone, Phantom, node->codeOrigin, edge); 133 } 134 135 node->convertToPhantomUnchecked(); 136 node->children.reset(); 137 node->setRefCount(1); 138 break; 139 } 140 121 141 node->convertToPhantom(); 122 142 eliminateIrrelevantPhantomChildren(node); … … 125 145 } } 126 146 } 147 148 insertionSet.execute(block); 127 149 } 128 150
Note:
See TracChangeset
for help on using the changeset viewer.