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

Unified Diff: src/objects.h

Issue 2372373002: Remove getters that duplicate FunctionKind in SharedFunctionInfo and ParseInfo (Closed)
Patch Set: Remove SharedFunctionInfo::is_resumable and FunctionState stuff 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/heap/objects-visiting-inl.h ('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 4357dc18eea65f4b593b11780a591f64d3c11d20..d8c04247577f6a44f9b2db560dd88e4da31057ff 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -7415,31 +7415,6 @@ class SharedFunctionInfo: public HeapObject {
// Indicates that code for this function cannot be flushed.
DECL_BOOLEAN_ACCESSORS(dont_flush)
- // Indicates that this function is a generator.
- DECL_BOOLEAN_ACCESSORS(is_generator)
-
- // Indicates that this function is an async function.
- DECL_BOOLEAN_ACCESSORS(is_async)
-
- // Indicates that this function can be suspended, either via YieldExpressions
- // or AwaitExpressions.
- inline bool is_resumable() const;
-
- // Indicates that this function is an arrow function.
- DECL_BOOLEAN_ACCESSORS(is_arrow)
-
- // Indicates that this function is a concise method.
- DECL_BOOLEAN_ACCESSORS(is_concise_method)
-
- // Indicates that this function is a getter.
- DECL_BOOLEAN_ACCESSORS(is_getter_function)
-
- // Indicates that this function is a setter.
- DECL_BOOLEAN_ACCESSORS(is_setter_function)
-
- // 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
@@ -7461,7 +7436,7 @@ class SharedFunctionInfo: public HeapObject {
// Indicates that asm->wasm conversion failed and should not be re-attempted.
DECL_BOOLEAN_ACCESSORS(is_asm_wasm_broken)
- inline FunctionKind kind();
+ inline FunctionKind kind() const;
inline void set_kind(FunctionKind kind);
// Indicates whether or not the code in the shared function support
« no previous file with comments | « src/heap/objects-visiting-inl.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698