Index: src/elements-kind.h |
diff --git a/src/elements-kind.h b/src/elements-kind.h |
index 51a690272f7f122848c3c30538bf9dadbceab7b5..bfb5aceb59f336affc5d231f3bff5309f8bbee01 100644 |
--- a/src/elements-kind.h |
+++ b/src/elements-kind.h |
@@ -60,6 +60,8 @@ enum ElementsKind { |
EXTERNAL_INT_ELEMENTS, |
EXTERNAL_UNSIGNED_INT_ELEMENTS, |
EXTERNAL_FLOAT_ELEMENTS, |
+ EXTERNAL_FLOAT32x4_ELEMENTS, |
+ EXTERNAL_INT32x4_ELEMENTS, |
EXTERNAL_DOUBLE_ELEMENTS, |
EXTERNAL_PIXEL_ELEMENTS, |
@@ -121,6 +123,16 @@ inline bool IsExternalFloatOrDoubleElementsKind(ElementsKind kind) { |
} |
+inline bool IsExternalFloat32x4ElementsKind(ElementsKind kind) { |
+ return kind == EXTERNAL_FLOAT32x4_ELEMENTS; |
+} |
+ |
+ |
+inline bool IsExternalInt32x4ElementsKind(ElementsKind kind) { |
+ return kind == EXTERNAL_INT32x4_ELEMENTS; |
+} |
+ |
+ |
inline bool IsDoubleOrFloatElementsKind(ElementsKind kind) { |
return IsFastDoubleElementsKind(kind) || |
IsExternalFloatOrDoubleElementsKind(kind); |