Changeset 247724 in webkit for trunk/Source/JavaScriptCore/dfg/DFGIntegerRangeOptimizationPhase.cpp
- Timestamp:
- Jul 23, 2019, 10:24:13 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGIntegerRangeOptimizationPhase.cpp
r241228 r247724 1011 1011 1012 1012 // Before we do anything, make sure that we have a zero constant at the top. 1013 m_zero = m_insertionSet.insertConstant(0, m_graph.block(0)->at(0)->origin, jsNumber(0)); 1014 m_insertionSet.execute(m_graph.block(0)); 1013 for (Node* node : *m_graph.block(0)) { 1014 if (node->isInt32Constant() && !node->asInt32()) { 1015 m_zero = node; 1016 break; 1017 } 1018 } 1019 if (!m_zero) { 1020 m_zero = m_insertionSet.insertConstant(0, m_graph.block(0)->at(0)->origin, jsNumber(0)); 1021 m_insertionSet.execute(m_graph.block(0)); 1022 } 1015 1023 1016 1024 if (DFGIntegerRangeOptimizationPhaseInternal::verbose) { … … 1322 1330 if (nonNegative && lessThanLength) { 1323 1331 executeNode(block->at(nodeIndex)); 1324 node->convertToIdentityOn(m_zero); 1332 // We just need to make sure we are a value-producing node. 1333 node->convertToIdentityOn(node->child1().node()); 1325 1334 changed = true; 1326 1335 }
Note:
See TracChangeset
for help on using the changeset viewer.