| Index: src/globals.h
|
| diff --git a/src/globals.h b/src/globals.h
|
| index 4a81c57073c6a074fadfe0e072a97172f8aa347d..73b23f0e0b7962383f9c56550eabaa9b891d2970 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_
|
|
|