Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Unified Diff: src/globals.h

Issue 2586463002: Add CreateDataPropertyInLiteralFlags. (Closed)
Patch Set: Rebaseline bytecode expectations. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/js-operator.cc ('k') | src/interpreter/bytecode-array-builder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/globals.h
diff --git a/src/globals.h b/src/globals.h
index b76f7f5deb4218b4171ee8743b25cba29a2c076b..d88cc05fa008f10e277c38e9bd76ca87efce1544 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,14 @@ inline std::ostream& operator<<(std::ostream& os, IterationKind kind) {
return os;
}
+enum class DataPropertyInLiteralFlag {
Benedikt Meurer 2016/12/19 15:47:35 Nit: Add a description for this.
+ kNone = 0,
Benedikt Meurer 2016/12/19 15:47:35 Nit: kNoFlags
+ kDontEnum = 1,
Benedikt Meurer 2016/12/19 15:47:35 Nit: 1 << 0 for consistency.
+ kSetFunctionName = 1 << 1
+};
+typedef base::Flags<DataPropertyInLiteralFlag> DataPropertyInLiteralFlags;
+DEFINE_OPERATORS_FOR_FLAGS(DataPropertyInLiteralFlags)
+
} // namespace internal
} // namespace v8
« no previous file with comments | « src/compiler/js-operator.cc ('k') | src/interpreter/bytecode-array-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698