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

Unified Diff: src/globals.h

Issue 974213002: Extract ParseInfo from CompilationInfo. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 months 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
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 {
rossberg 2015/03/04 10:25:12 I don't think this belongs into global.h - it enco
titzer 2015/03/05 20:18:30 Michi argued strongly to keep the enum. I initial
Michael Starzinger 2015/03/05 20:56:55 I argued strongly for "not turning it into a boole
+ 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

Powered by Google App Engine
This is Rietveld 408576698