DFG should not speculate array even when predictions say that the base is not an...
[WebKit-https.git] / Source / JavaScriptCore / dfg / DFGNode.h
index 0e834d2388bab7620cb3dcf1ebb0f23254e4e8a2..30232140c5c84984aae23950ea1316708ef4b07a 100644 (file)
@@ -931,38 +931,38 @@ struct Node {
     
     bool shouldSpeculateInt8Array()
     {
-        return prediction() == PredictInt8Array;
+        return isInt8ArrayPrediction(prediction());
     }
     
     bool shouldSpeculateInt16Array()
     {
-        return prediction() == PredictInt16Array;
+        return isInt16ArrayPrediction(prediction());
     }
     
     bool shouldSpeculateInt32Array()
     {
-        return prediction() == PredictInt32Array;
+        return isInt32ArrayPrediction(prediction());
     }
     
     bool shouldSpeculateUint8Array()
     {
-        return prediction() == PredictUint8Array;
+        return isUint8ArrayPrediction(prediction());
     }
     
     bool shouldSpeculateUint16Array()
     {
-        return prediction() == PredictUint16Array;
+        return isUint16ArrayPrediction(prediction());
     }
     
     bool shouldSpeculateUint32Array()
     {
-        return prediction() == PredictUint32Array;
+        return isUint32ArrayPrediction(prediction());
     }
     
     bool shouldSpeculateFloat32Array()
     {
 #if CPU(X86) || CPU(X86_64)
-        return !!(prediction() & PredictFloat32Array);
+        return isFloat32ArrayPrediction(prediction());
 #else
         return false;
 #endif
@@ -970,7 +970,7 @@ struct Node {
     
     bool shouldSpeculateFloat64Array()
     {
-        return prediction() == PredictFloat64Array;
+        return isFloat64ArrayPrediction(prediction());
     }
     
     bool shouldSpeculateArrayOrOther()