Changeset 253350 in webkit for trunk/Source/JavaScriptCore/dfg
- Timestamp:
- Dec 10, 2019, 3:08:04 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGGraph.cpp
r252789 r253350 1634 1634 1635 1635 for (Node* node = operandNode; node;) { 1636 if (node->accessesStack(*this)) { 1637 if (m_form != SSA && node->local().isArgument()) { 1638 int argument = node->local().toArgument(); 1639 Node* argumentNode = m_rootToArguments.find(block(0))->value[argument]; 1640 // FIXME: We should match SetArgumentDefinitely nodes at other entrypoints as well: 1641 // https://bugs.webkit.org/show_bug.cgi?id=175841 1642 if (argumentNode && node->variableAccessData() == argumentNode->variableAccessData()) { 1643 CodeBlock* profiledBlock = baselineCodeBlockFor(node->origin.semantic); 1644 return &profiledBlock->valueProfileForArgument(argument); 1645 } 1646 } 1647 } 1648 1636 1649 // currentNode is null when we're doing speculation checks for checkArgumentTypes(). 1637 1650 if (!currentNode || node->origin.semantic != currentNode->origin.semantic || !currentNode->hasResult()) { … … 1639 1652 1640 1653 if (node->accessesStack(*this)) { 1641 if (m_form != SSA && node->local().isArgument()) {1642 int argument = node->local().toArgument();1643 Node* argumentNode = m_rootToArguments.find(block(0))->value[argument];1644 // FIXME: We should match SetArgumentDefinitely nodes at other entrypoints as well:1645 // https://bugs.webkit.org/show_bug.cgi?id=1758411646 if (argumentNode && node->variableAccessData() == argumentNode->variableAccessData())1647 return &profiledBlock->valueProfileForArgument(argument);1648 }1649 1650 1654 if (node->op() == GetLocal) { 1651 1655 return MethodOfGettingAValueProfile::fromLazyOperand(
Note:
See TracChangeset
for help on using the changeset viewer.