Changeset 106502 in webkit for trunk/Source/JavaScriptCore/dfg/DFGAbstractState.cpp
- Timestamp:
- Feb 1, 2012, 3:08:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGAbstractState.cpp
r105217 r106502 281 281 case ValueAdd: 282 282 case ArithAdd: { 283 if ( Node::shouldSpeculateInteger(m_graph[node.child1()], m_graph[node.child2()]) && node.canSpeculateInteger()) {283 if (m_graph.addShouldSpeculateInteger(node, m_codeBlock)) { 284 284 forNode(node.child1()).filter(PredictInt32); 285 285 forNode(node.child2()).filter(PredictInt32); … … 299 299 } 300 300 301 case ArithSub: 301 case ArithSub: { 302 if (m_graph.addShouldSpeculateInteger(node, m_codeBlock)) { 303 forNode(node.child1()).filter(PredictInt32); 304 forNode(node.child2()).filter(PredictInt32); 305 forNode(nodeIndex).set(PredictInt32); 306 break; 307 } 308 forNode(node.child1()).filter(PredictNumber); 309 forNode(node.child2()).filter(PredictNumber); 310 forNode(nodeIndex).set(PredictDouble); 311 break; 312 } 313 302 314 case ArithMul: 303 315 case ArithDiv:
Note:
See TracChangeset
for help on using the changeset viewer.