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_); |
} |