Index: src/globals.h |
diff --git a/src/globals.h b/src/globals.h |
index b76f7f5deb4218b4171ee8743b25cba29a2c076b..24750cc30ac2f5a1630cc825976f527f27778bdf 100644 |
--- a/src/globals.h |
+++ b/src/globals.h |
@@ -11,6 +11,7 @@ |
#include <ostream> |
#include "src/base/build_config.h" |
+#include "src/base/flags.h" |
#include "src/base/logging.h" |
#include "src/base/macros.h" |
@@ -1310,6 +1311,17 @@ inline std::ostream& operator<<(std::ostream& os, IterationKind kind) { |
return os; |
} |
+// Flags for the runtime function kDefineDataPropertyInLiteral. A property can |
+// be enumerable or not, and, in case of functions, the function name |
+// can be set or not. |
+enum class DataPropertyInLiteralFlag { |
+ kNoFlags = 0, |
+ kDontEnum = 1 << 0, |
+ kSetFunctionName = 1 << 1 |
+}; |
+typedef base::Flags<DataPropertyInLiteralFlag> DataPropertyInLiteralFlags; |
+DEFINE_OPERATORS_FOR_FLAGS(DataPropertyInLiteralFlags) |
+ |
} // namespace internal |
} // namespace v8 |