Index: src/elements-kind.h |
diff --git a/src/elements-kind.h b/src/elements-kind.h |
index 3be7711a35cadd29c4b57a596185146e8f0c5f19..cb3bb9c9e9fd354efc5f03c90528c17b2ea1ccfe 100644 |
--- a/src/elements-kind.h |
+++ b/src/elements-kind.h |
@@ -77,6 +77,7 @@ const int kElementsKindCount = LAST_ELEMENTS_KIND - FIRST_ELEMENTS_KIND + 1; |
const int kFastElementsKindCount = LAST_FAST_ELEMENTS_KIND - |
FIRST_FAST_ELEMENTS_KIND + 1; |
+const char* ElementsKindToString(ElementsKind kind); |
void PrintElementsKind(FILE* out, ElementsKind kind); |
ElementsKind GetInitialFastElementsKind(); |
@@ -109,6 +110,13 @@ inline bool IsFastDoubleElementsKind(ElementsKind kind) { |
} |
+inline bool IsDoubleOrFloatElementsKind(ElementsKind kind) { |
+ return IsFastDoubleElementsKind(kind) || |
+ kind == EXTERNAL_DOUBLE_ELEMENTS || |
+ kind == EXTERNAL_FLOAT_ELEMENTS; |
+} |
+ |
+ |
inline bool IsFastSmiOrObjectElementsKind(ElementsKind kind) { |
return kind == FAST_SMI_ELEMENTS || |
kind == FAST_HOLEY_SMI_ELEMENTS || |