Changeset 92071 in webkit for trunk/Source/JavaScriptCore/dfg/DFGJITCompiler.cpp
- Timestamp:
- Jul 30, 2011, 11:14:10 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGJITCompiler.cpp
r92024 r92071 567 567 for (unsigned index = 0; index < GPRInfo::numberOfRegisters; ++index) { 568 568 NodeIndex nodeIndex = check.m_gprInfo[index].nodeIndex; 569 if (nodeIndex == NoNode || check.m_gprInfo[index].isSpilled) { 569 570 // Bail out if this register isn't assigned to anything. 571 if (nodeIndex == NoNode) { 570 572 scratchGPR = GPRInfo::toRegister(index); 571 573 continue; 572 574 } 573 575 576 // If the non-speculative path also has a register for the nodeIndex that this 577 // register stores, link them together. 574 578 NodeToRegisterMap::iterator mapIterator = entryNodeToRegisterMap.find(nodeIndex); 575 579 if (mapIterator != entryNodeToRegisterMap.end()) { … … 580 584 next->hasTo = true; 581 585 586 // If the non-speculative path has not spilled this register, then skip the spillin 587 // part below regardless of whether or not the speculative path has spilled it. 582 588 if (!mapIterator->second.findInEntryLocation(entry).isSpilled) 583 589 continue; 584 590 } 585 591 592 // If the speculative path has already spilled the register then there is no need to 593 // spill it. 594 if (check.m_gprInfo[index].isSpilled) 595 continue; 596 586 597 DataFormat dataFormat = check.m_gprInfo[index].format; 587 598 VirtualRegister virtualRegister = graph()[nodeIndex].virtualRegister(); 588 599 589 600 ASSERT(dataFormat == DataFormatInteger || DataFormatCell || dataFormat & DataFormatJS); 590 601 if (dataFormat == DataFormatInteger) … … 602 613 for (unsigned index = 0; index < FPRInfo::numberOfRegisters; ++index) { 603 614 NodeIndex nodeIndex = check.m_fprInfo[index].nodeIndex; 604 if (nodeIndex == NoNode || check.m_fprInfo[index].isSpilled)615 if (nodeIndex == NoNode) 605 616 continue; 606 617 … … 616 627 continue; 617 628 } 629 630 if (check.m_fprInfo[index].isSpilled) 631 continue; 618 632 619 633 VirtualRegister virtualRegister = graph()[nodeIndex].virtualRegister();
Note:
See TracChangeset
for help on using the changeset viewer.