Changeset 144939 in webkit for trunk/Source/JavaScriptCore/dfg/DFGCSEPhase.cpp
- Timestamp:
- Mar 6, 2013, 9:41:40 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGCSEPhase.cpp
r144862 r144939 95 95 break; 96 96 97 if (!otherNode->shouldGenerate())98 continue;99 100 97 if (node->op() != otherNode->op()) 101 98 continue; … … 133 130 if (otherNode == node->child1()) 134 131 return 0; 135 if (!otherNode->shouldGenerate())136 continue;137 132 switch (otherNode->op()) { 138 133 case Int32ToDouble: … … 155 150 continue; 156 151 157 if (!otherNode->shouldGenerate())158 continue;159 160 152 if (otherNode->constantNumber() != node->constantNumber()) 161 153 continue; … … 173 165 continue; 174 166 175 if (!otherNode->shouldGenerate())176 continue;177 178 167 if (otherNode->weakConstant() != node->weakConstant()) 179 168 continue; … … 188 177 for (unsigned i = m_indexInBlock; i--;) { 189 178 Node* node = m_currentBlock->at(i); 190 if (!node->shouldGenerate())191 continue;192 179 if (node->codeOrigin.inlineCallFrame != inlineCallFrame) 193 180 continue; … … 208 195 for (unsigned i = m_indexInBlock; i--;) { 209 196 Node* node = m_currentBlock->at(i); 210 if (!node->shouldGenerate())211 continue;212 197 switch (node->op()) { 213 198 case GetArrayLength: … … 235 220 for (unsigned i = m_indexInBlock; i--;) { 236 221 Node* node = m_currentBlock->at(i); 237 if (!node->shouldGenerate())238 continue;239 222 switch (node->op()) { 240 223 case GetGlobalVar: … … 259 242 for (unsigned i = m_indexInBlock; i--;) { 260 243 Node* node = m_currentBlock->at(i); 261 if (!node->shouldGenerate())262 continue;263 244 switch (node->op()) { 264 245 case GetScopedVar: { … … 292 273 for (unsigned i = m_indexInBlock; i--;) { 293 274 Node* node = m_currentBlock->at(i); 294 if (!node->shouldGenerate())295 continue;296 275 switch (node->op()) { 297 276 case GlobalVarWatchpoint: … … 316 295 for (unsigned i = m_indexInBlock; i--;) { 317 296 Node* node = m_currentBlock->at(i); 318 if (!node->shouldGenerate())319 continue;320 297 switch (node->op()) { 321 298 case PutGlobalVar: … … 343 320 for (unsigned i = m_indexInBlock; i--;) { 344 321 Node* node = m_currentBlock->at(i); 345 if (!node->shouldGenerate())346 continue;347 322 switch (node->op()) { 348 323 case PutScopedVar: { … … 383 358 break; 384 359 385 if (!node->shouldGenerate())386 continue;387 360 switch (node->op()) { 388 361 case GetByVal: … … 452 425 break; 453 426 454 if (!node->shouldGenerate())455 continue;456 427 switch (node->op()) { 457 428 case CheckStructure: … … 513 484 break; 514 485 515 if (!node->shouldGenerate())516 continue;517 486 switch (node->op()) { 518 487 case CheckStructure: … … 568 537 if (node == child1) 569 538 break; 570 if (!node->shouldGenerate())571 continue;572 539 switch (node->op()) { 573 540 case CheckStructure: … … 627 594 break; 628 595 629 if (!node->shouldGenerate())630 continue;631 596 switch (node->op()) { 632 597 case GetByOffset: … … 674 639 break; 675 640 676 if (!node->shouldGenerate())677 continue;678 641 switch (node->op()) { 679 642 case GetByOffset: … … 719 682 break; 720 683 721 if (!node->shouldGenerate())722 continue;723 684 switch (node->op()) { 724 685 case GetButterfly: … … 776 737 break; 777 738 778 if (!node->shouldGenerate())779 continue;780 739 switch (node->op()) { 781 740 case PutByOffset: … … 812 771 break; 813 772 814 if (!node->shouldGenerate())815 continue;816 773 switch (node->op()) { 817 774 case GetIndexedPropertyStorage: { … … 840 797 for (unsigned i = m_indexInBlock; i--;) { 841 798 Node* node = m_currentBlock->at(i); 842 if (!node->shouldGenerate())843 continue;844 799 if (node->codeOrigin.inlineCallFrame != inlineCallFrame) 845 800 continue; … … 865 820 for (unsigned i = m_indexInBlock; i--;) { 866 821 Node* node = m_currentBlock->at(i); 867 if (!node->shouldGenerate())868 continue;869 822 switch (node->op()) { 870 823 case GetLocal: … … 921 874 for (unsigned i = m_indexInBlock; i--;) { 922 875 Node* node = m_currentBlock->at(i); 923 if (!node->shouldGenerate())924 continue;925 876 switch (node->op()) { 926 877 case GetLocal: … … 1065 1016 if (node->op() == SetLocal) 1066 1017 node->child1()->mergeFlags(NodeRelevantToOSR); 1067 1068 if (!node->shouldGenerate())1069 return;1070 1018 1071 1019 #if DFG_ENABLE(DEBUG_PROPAGATION_VERBOSE) … … 1200 1148 break; 1201 1149 ASSERT(replacement->op() == SetLocal); 1202 ASSERT(replacement->shouldGenerate());1203 1150 // FIXME: Investigate using mayExit as a further optimization. 1204 1151 node->convertToPhantom();
Note:
See TracChangeset
for help on using the changeset viewer.