Changeset 172961 in webkit for trunk/Source/JavaScriptCore/dfg/DFGConstantFoldingPhase.cpp
- Timestamp:
- Aug 26, 2014, 9:46:10 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGConstantFoldingPhase.cpp
r172940 r172961 143 143 } 144 144 145 case Check Cell: {146 if (m_state.forNode(node->child1()).value() != node-> cellOperand()->value())145 case CheckFunction: { 146 if (m_state.forNode(node->child1()).value() != node->function()->value()) 147 147 break; 148 148 node->convertToPhantom(); … … 385 385 break; 386 386 } 387 388 case ProfiledCall:389 case ProfiledConstruct: {390 if (!m_state.forNode(m_graph.varArgChild(node, 0)).m_value)391 break;392 393 // If we were able to prove that the callee is a constant then the normal call394 // inline cache will record this callee. This means that there is no need to do any395 // additional profiling.396 node->setOp(node->op() == ProfiledCall ? Call : Construct);397 eliminated = true;398 break;399 }400 387 401 388 default:
Note:
See TracChangeset
for help on using the changeset viewer.