Changeset 119660 in webkit for trunk/Source/JavaScriptCore/dfg/DFGNode.h
- Timestamp:
- Jun 6, 2012, 6:35:59 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGNode.h
r119655 r119660 40 40 #include "JSValue.h" 41 41 #include "Operands.h" 42 #include " PredictedType.h"42 #include "SpeculatedType.h" 43 43 #include "ValueProfile.h" 44 44 … … 83 83 , m_virtualRegister(InvalidVirtualRegister) 84 84 , m_refCount(0) 85 , m_prediction( PredictNone)85 , m_prediction(SpecNone) 86 86 { 87 87 setOpAndDefaultFlags(op); … … 96 96 , m_refCount(0) 97 97 , m_opInfo(imm.m_value) 98 , m_prediction( PredictNone)98 , m_prediction(SpecNone) 99 99 { 100 100 setOpAndDefaultFlags(op); … … 110 110 , m_opInfo(imm1.m_value) 111 111 , m_opInfo2(safeCast<unsigned>(imm2.m_value)) 112 , m_prediction( PredictNone)112 , m_prediction(SpecNone) 113 113 { 114 114 setOpAndDefaultFlags(op); … … 124 124 , m_opInfo(imm1.m_value) 125 125 , m_opInfo2(safeCast<unsigned>(imm2.m_value)) 126 , m_prediction( PredictNone)126 , m_prediction(SpecNone) 127 127 { 128 128 setOpAndDefaultFlags(op); … … 595 595 } 596 596 597 PredictedType getHeapPrediction()597 SpeculatedType getHeapPrediction() 598 598 { 599 599 ASSERT(hasHeapPrediction()); 600 return static_cast< PredictedType>(m_opInfo2);601 } 602 603 bool predictHeap( PredictedType prediction)600 return static_cast<SpeculatedType>(m_opInfo2); 601 } 602 603 bool predictHeap(SpeculatedType prediction) 604 604 { 605 605 ASSERT(hasHeapPrediction()); 606 606 607 return merge Prediction(m_opInfo2, prediction);607 return mergeSpeculation(m_opInfo2, prediction); 608 608 } 609 609 … … 778 778 } 779 779 780 PredictedType prediction()780 SpeculatedType prediction() 781 781 { 782 782 return m_prediction; 783 783 } 784 784 785 bool predict( PredictedType prediction)786 { 787 return merge Prediction(m_prediction, prediction);785 bool predict(SpeculatedType prediction) 786 { 787 return mergeSpeculation(m_prediction, prediction); 788 788 } 789 789 790 790 bool shouldSpeculateInteger() 791 791 { 792 return isInt32 Prediction(prediction());792 return isInt32Speculation(prediction()); 793 793 } 794 794 795 795 bool shouldSpeculateDouble() 796 796 { 797 return isDouble Prediction(prediction());797 return isDoubleSpeculation(prediction()); 798 798 } 799 799 800 800 bool shouldSpeculateNumber() 801 801 { 802 return isNumber Prediction(prediction());802 return isNumberSpeculation(prediction()); 803 803 } 804 804 805 805 bool shouldSpeculateBoolean() 806 806 { 807 return isBoolean Prediction(prediction());807 return isBooleanSpeculation(prediction()); 808 808 } 809 809 810 810 bool shouldSpeculateFinalObject() 811 811 { 812 return isFinalObject Prediction(prediction());812 return isFinalObjectSpeculation(prediction()); 813 813 } 814 814 815 815 bool shouldSpeculateFinalObjectOrOther() 816 816 { 817 return isFinalObjectOrOther Prediction(prediction());817 return isFinalObjectOrOtherSpeculation(prediction()); 818 818 } 819 819 820 820 bool shouldSpeculateArray() 821 821 { 822 return isArray Prediction(prediction());822 return isArraySpeculation(prediction()); 823 823 } 824 824 825 825 bool shouldSpeculateArguments() 826 826 { 827 return isArguments Prediction(prediction());827 return isArgumentsSpeculation(prediction()); 828 828 } 829 829 830 830 bool shouldSpeculateInt8Array() 831 831 { 832 return isInt8Array Prediction(prediction());832 return isInt8ArraySpeculation(prediction()); 833 833 } 834 834 835 835 bool shouldSpeculateInt16Array() 836 836 { 837 return isInt16Array Prediction(prediction());837 return isInt16ArraySpeculation(prediction()); 838 838 } 839 839 840 840 bool shouldSpeculateInt32Array() 841 841 { 842 return isInt32Array Prediction(prediction());842 return isInt32ArraySpeculation(prediction()); 843 843 } 844 844 845 845 bool shouldSpeculateUint8Array() 846 846 { 847 return isUint8Array Prediction(prediction());847 return isUint8ArraySpeculation(prediction()); 848 848 } 849 849 850 850 bool shouldSpeculateUint8ClampedArray() 851 851 { 852 return isUint8ClampedArray Prediction(prediction());852 return isUint8ClampedArraySpeculation(prediction()); 853 853 } 854 854 855 855 bool shouldSpeculateUint16Array() 856 856 { 857 return isUint16Array Prediction(prediction());857 return isUint16ArraySpeculation(prediction()); 858 858 } 859 859 860 860 bool shouldSpeculateUint32Array() 861 861 { 862 return isUint32Array Prediction(prediction());862 return isUint32ArraySpeculation(prediction()); 863 863 } 864 864 865 865 bool shouldSpeculateFloat32Array() 866 866 { 867 return isFloat32Array Prediction(prediction());867 return isFloat32ArraySpeculation(prediction()); 868 868 } 869 869 870 870 bool shouldSpeculateFloat64Array() 871 871 { 872 return isFloat64Array Prediction(prediction());872 return isFloat64ArraySpeculation(prediction()); 873 873 } 874 874 875 875 bool shouldSpeculateArrayOrOther() 876 876 { 877 return isArrayOrOther Prediction(prediction());877 return isArrayOrOtherSpeculation(prediction()); 878 878 } 879 879 880 880 bool shouldSpeculateObject() 881 881 { 882 return isObject Prediction(prediction());882 return isObjectSpeculation(prediction()); 883 883 } 884 884 885 885 bool shouldSpeculateCell() 886 886 { 887 return isCell Prediction(prediction());887 return isCellSpeculation(prediction()); 888 888 } 889 889 … … 943 943 unsigned m_opInfo2; 944 944 // The prediction ascribed to this node after propagation. 945 PredictedType m_prediction;945 SpeculatedType m_prediction; 946 946 }; 947 947
Note:
See TracChangeset
for help on using the changeset viewer.