Changeset 105217 in webkit for trunk/Source/JavaScriptCore/dfg/DFGAbstractState.cpp
- Timestamp:
- Jan 17, 2012, 5:11:16 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGAbstractState.cpp
r105107 r105217 122 122 else if (isUint8ArrayPrediction(prediction)) 123 123 root->valuesAtHead.argument(i).set(PredictUint8Array); 124 else if (isUint8ClampedArrayPrediction(prediction)) 125 root->valuesAtHead.argument(i).set(PredictUint8ClampedArray); 124 126 else if (isUint16ArrayPrediction(prediction)) 125 127 root->valuesAtHead.argument(i).set(PredictUint16Array); … … 449 451 break; 450 452 } 453 if (m_graph[node.child1()].shouldSpeculateUint8ClampedArray()) { 454 forNode(node.child1()).filter(PredictUint8ClampedArray); 455 forNode(node.child2()).filter(PredictInt32); 456 forNode(nodeIndex).set(PredictInt32); 457 break; 458 } 451 459 if (m_graph[node.child1()].shouldSpeculateUint16Array()) { 452 460 forNode(node.child1()).filter(PredictUint16Array); … … 519 527 if (m_graph[node.child1()].shouldSpeculateUint8Array()) { 520 528 forNode(node.child1()).filter(PredictUint8Array); 529 forNode(node.child2()).filter(PredictInt32); 530 forNode(node.child3()).filter(PredictNumber); 531 break; 532 } 533 if (m_graph[node.child1()].shouldSpeculateUint8ClampedArray()) { 534 forNode(node.child1()).filter(PredictUint8ClampedArray); 521 535 forNode(node.child2()).filter(PredictInt32); 522 536 forNode(node.child3()).filter(PredictNumber); … … 730 744 forNode(nodeIndex).set(PredictInt32); 731 745 break; 746 case GetUint8ClampedArrayLength: 747 forNode(node.child1()).filter(PredictUint8ClampedArray); 748 forNode(nodeIndex).set(PredictInt32); 749 break; 732 750 case GetUint16ArrayLength: 733 751 forNode(node.child1()).filter(PredictUint16Array); … … 796 814 if (m_graph[node.child1()].shouldSpeculateUint8Array()) { 797 815 forNode(node.child1()).filter(PredictUint8Array); 816 forNode(nodeIndex).clear(); 817 break; 818 } 819 if (m_graph[node.child1()].shouldSpeculateUint8ClampedArray()) { 820 forNode(node.child1()).filter(PredictUint8ClampedArray); 798 821 forNode(nodeIndex).clear(); 799 822 break;
Note:
See TracChangeset
for help on using the changeset viewer.