Index: src/globals.h |
diff --git a/src/globals.h b/src/globals.h |
index b0239b367cfd63ec6dd9c04bc03a9c5b6e462aff..8cccefe50b073fac85f98dc3c85478088231edca 100644 |
--- a/src/globals.h |
+++ b/src/globals.h |
@@ -452,6 +452,13 @@ enum VisitMode { |
enum NativesFlag { NOT_NATIVES_CODE, NATIVES_CODE }; |
+// ParseRestriction is used to restrict the set of valid statements in a |
+// unit of compilation. Restriction violations cause a syntax error. |
+enum ParseRestriction { |
+ NO_PARSE_RESTRICTION, // All expressions are allowed. |
+ ONLY_SINGLE_FUNCTION_LITERAL // Only a single FunctionLiteral expression. |
+}; |
+ |
// A CodeDesc describes a buffer holding instructions and relocation |
// information. The instructions start at the beginning of the buffer |
// and grow forward, the relocation information starts at the end of |