Changeset 203921 in webkit for trunk/Source/JavaScriptCore/dfg/DFGInPlaceAbstractState.cpp
- Timestamp:
- Jul 29, 2016, 1:58:35 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGInPlaceAbstractState.cpp
r200034 r203921 75 75 } 76 76 77 static void setLiveValues(HashMap<Node*, AbstractValue>& values, HashSet<Node*>& live)77 static void setLiveValues(HashMap<Node*, AbstractValue>& values, const Vector<Node*>& liveNodes) 78 78 { 79 79 values.clear(); 80 81 HashSet<Node*>::iterator iter = live.begin(); 82 HashSet<Node*>::iterator end = live.end(); 83 for (; iter != end; ++iter) 84 values.add(*iter, AbstractValue()); 85 } 86 87 static void setLiveValues(Vector<BasicBlock::SSAData::NodeAbstractValuePair>& values, HashSet<Node*>& live) 80 for (Node* node : liveNodes) 81 values.add(node, AbstractValue()); 82 } 83 84 static void setLiveValues(Vector<BasicBlock::SSAData::NodeAbstractValuePair>& values, const Vector<Node*>& live) 88 85 { 89 86 values.resize(0); … … 204 201 changed |= block->valuesAtTail[i].merge(m_variables[i]); 205 202 206 HashSet<Node*>::iterator iter = block->ssa->liveAtTail.begin(); 207 HashSet<Node*>::iterator end = block->ssa->liveAtTail.end(); 208 for (; iter != end; ++iter) { 209 Node* node = *iter; 203 for (Node* node : block->ssa->liveAtTail) { 210 204 changed |= block->ssa->valuesAtTail.find(node)->value.merge(forNode(node)); 211 205 }
Note:
See TracChangeset
for help on using the changeset viewer.