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

Unified Diff: src/parsing/parse-info.cc

Issue 2315733003: Class fields, part 1 (parsing and infrastructure) (Closed)
Patch Set: whitespace Created 4 years, 3 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
« no previous file with comments | « src/parsing/parse-info.h ('k') | src/parsing/parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/parse-info.cc
diff --git a/src/parsing/parse-info.cc b/src/parsing/parse-info.cc
index dfec0610e1dc7d3300fcabd671d2b8a76fab94cc..131d8e15bda49a134b50fa25224f9e734ab3b1a1 100644
--- a/src/parsing/parse-info.cc
+++ b/src/parsing/parse-info.cc
@@ -99,6 +99,15 @@ bool ParseInfo::is_default_constructor() const {
0;
}
+bool ParseInfo::requires_class_field_init() const {
+ return (compiler_hints_ &
+ (1 << SharedFunctionInfo::kRequiresClassFieldInit)) != 0;
+}
+bool ParseInfo::is_class_field_initializer() const {
+ return (compiler_hints_ &
+ (1 << SharedFunctionInfo::kIsClassFieldInitializer)) != 0;
+}
+
FunctionKind ParseInfo::function_kind() const {
return SharedFunctionInfo::FunctionKindBits::decode(compiler_hints_);
}
« no previous file with comments | « src/parsing/parse-info.h ('k') | src/parsing/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698