Index: src/elements-kind.cc |
diff --git a/src/elements-kind.cc b/src/elements-kind.cc |
index 655a23bf1e497aa29a51c12c4546aa6ab6acf7bc..7b1651a953fc8120f4c1a29fcb9bef77c330e62c 100644 |
--- a/src/elements-kind.cc |
+++ b/src/elements-kind.cc |
@@ -35,9 +35,14 @@ namespace v8 { |
namespace internal { |
-void PrintElementsKind(FILE* out, ElementsKind kind) { |
+const char* ElementsKindToString(ElementsKind kind) { |
ElementsAccessor* accessor = ElementsAccessor::ForKind(kind); |
- PrintF(out, "%s", accessor->name()); |
+ return accessor->name(); |
+} |
+ |
+ |
+void PrintElementsKind(FILE* out, ElementsKind kind) { |
+ PrintF(out, "%s", ElementsKindToString(kind)); |
} |