Index: src/globals.h |
diff --git a/src/globals.h b/src/globals.h |
index f0d2f27c1e372e25ffb75264da39a289458ef20b..f689c667b6cd3621d1a0b81d71c34aa9707a8853 100644 |
--- a/src/globals.h |
+++ b/src/globals.h |
@@ -1279,9 +1279,28 @@ inline std::ostream& operator<<(std::ostream& os, UnicodeEncoding encoding) { |
return os; |
} |
+enum class IterationKind { kKeys, kValues, kEntries }; |
+ |
+inline std::ostream& operator<<(std::ostream& os, IterationKind kind) { |
+ switch (kind) { |
+ case IterationKind::kKeys: |
+ return os << "IterationKind::kKeys"; |
+ case IterationKind::kValues: |
+ return os << "IterationKind::kValues"; |
+ case IterationKind::kEntries: |
+ return os << "IterationKind::kEntries"; |
+ } |
+ UNREACHABLE(); |
+ return os; |
+} |
+ |
} // namespace internal |
} // namespace v8 |
+// Used by js-builtin-reducer to identify whether ReduceArrayIterator() is |
+// reducing a JSArray method, or a JSTypedArray method. |
+enum class ArrayIteratorKind { kArray, kTypedArray }; |
+ |
namespace i = v8::internal; |
#endif // V8_GLOBALS_H_ |