Changeset 155499 in webkit for trunk/Source/JavaScriptCore/dfg/DFGPredictionPropagationPhase.cpp
- Timestamp:
- Sep 10, 2013, 9:35:16 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGPredictionPropagationPhase.cpp
r155497 r155499 142 142 case JSConstant: 143 143 case WeakJSConstant: { 144 changed |= setPrediction(speculationFromValue(m_graph.valueOfJSConstant(node))); 144 SpeculatedType type = speculationFromValue(m_graph.valueOfJSConstant(node)); 145 if (type == SpecInt48AsDouble) 146 type = SpecInt48; 147 changed |= setPrediction(type); 145 148 break; 146 149 } … … 213 216 if (m_graph.addSpeculationMode(node) != DontSpeculateInt32) 214 217 changed |= mergePrediction(SpecInt32); 218 else if (m_graph.addShouldSpeculateMachineInt(node)) 219 changed |= mergePrediction(SpecInt48); 215 220 else 216 221 changed |= mergePrediction(speculatedDoubleTypeForPredictions(left, right)); … … 231 236 if (m_graph.addSpeculationMode(node) != DontSpeculateInt32) 232 237 changed |= mergePrediction(SpecInt32); 238 else if (m_graph.addShouldSpeculateMachineInt(node)) 239 changed |= mergePrediction(SpecInt48); 233 240 else 234 241 changed |= mergePrediction(speculatedDoubleTypeForPredictions(left, right)); … … 244 251 if (m_graph.addSpeculationMode(node) != DontSpeculateInt32) 245 252 changed |= mergePrediction(SpecInt32); 253 else if (m_graph.addShouldSpeculateMachineInt(node)) 254 changed |= mergePrediction(SpecInt48); 246 255 else 247 256 changed |= mergePrediction(speculatedDoubleTypeForPredictions(left, right)); … … 254 263 if (m_graph.negateShouldSpeculateInt32(node)) 255 264 changed |= mergePrediction(SpecInt32); 265 else if (m_graph.negateShouldSpeculateMachineInt(node)) 266 changed |= mergePrediction(SpecInt48); 256 267 else 257 268 changed |= mergePrediction(speculatedDoubleTypeForPrediction(node->child1()->prediction())); … … 281 292 if (m_graph.mulShouldSpeculateInt32(node)) 282 293 changed |= mergePrediction(SpecInt32); 294 else if (m_graph.mulShouldSpeculateMachineInt(node)) 295 changed |= mergePrediction(SpecInt48); 283 296 else 284 297 changed |= mergePrediction(speculatedDoubleTypeForPredictions(left, right));
Note:
See TracChangeset
for help on using the changeset viewer.