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

Unified Diff: src/objects.h

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/interpreter/bytecode-generator.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 53471b47aaacf7de43e759fd3b7df1e2e06ddc3c..42a81dab1cbb284b99681713fb4ed66ce1619704 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -7320,6 +7320,12 @@ class SharedFunctionInfo: public HeapObject {
// Indicates that this function is a default constructor.
DECL_BOOLEAN_ACCESSORS(is_default_constructor)
+ // Indicates that this is a constructor for a base class with instance fields.
+ DECL_BOOLEAN_ACCESSORS(requires_class_field_init)
+ // Indicates that this is a synthesized function to set up class instance
+ // fields.
+ DECL_BOOLEAN_ACCESSORS(is_class_field_initializer)
+
// Indicates that this function is an asm function.
DECL_BOOLEAN_ACCESSORS(asm_function)
@@ -7608,6 +7614,8 @@ class SharedFunctionInfo: public HeapObject {
kDeserialized,
kIsDeclaration,
kIsAsmWasmBroken,
+ kRequiresClassFieldInit,
+ kIsClassFieldInitializer,
kCompilerHintsCount, // Pseudo entry
};
// kFunctionKind has to be byte-aligned
« no previous file with comments | « src/interpreter/bytecode-generator.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698