Changeset 153278 in webkit for trunk/Source/JavaScriptCore/dfg/DFGCSEPhase.cpp
- Timestamp:
- Jul 24, 2013, 9:04:53 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGCSEPhase.cpp
r153269 r153278 53 53 m_changed = false; 54 54 55 m_graph.clearReplacements(); 56 55 57 for (unsigned blockIndex = 0; blockIndex < m_graph.numBlocks(); ++blockIndex) 56 58 performBlockCSE(m_graph.block(blockIndex)); … … 1006 1008 1007 1009 // At this point we will eliminate all references to this node. 1008 m_currentNode-> replacement = replacement;1010 m_currentNode->misc.replacement = replacement; 1009 1011 1010 1012 m_changed = true; … … 1397 1399 m_lastSeen[i] = UINT_MAX; 1398 1400 1399 // All Phis need to already be marked as relevant to OSR, and have their 1400 // replacements cleared, so we don't get confused while doing substitutions on 1401 // GetLocal's. 1402 for (unsigned i = 0; i < block->phis.size(); ++i) { 1403 ASSERT(block->phis[i]->flags() & NodeRelevantToOSR); 1404 block->phis[i]->replacement = 0; 1401 // All Phis need to already be marked as relevant to OSR. 1402 if (!ASSERT_DISABLED) { 1403 for (unsigned i = 0; i < block->phis.size(); ++i) 1404 ASSERT(block->phis[i]->flags() & NodeRelevantToOSR); 1405 1405 } 1406 1406 … … 1410 1410 Node* node = block->at(i); 1411 1411 1412 node->replacement = 0;1413 1414 1412 switch (node->op()) { 1415 1413 case SetLocal: … … 1431 1429 // Nobody should have replacements set. 1432 1430 for (unsigned i = 0; i < block->size(); ++i) 1433 ASSERT(!block->at(i)-> replacement);1431 ASSERT(!block->at(i)->misc.replacement); 1434 1432 } 1435 1433 }
Note:
See TracChangeset
for help on using the changeset viewer.