diff options
Diffstat (limited to 'deps/v8/src/torque/declarations.h')
-rw-r--r-- | deps/v8/src/torque/declarations.h | 43 |
1 files changed, 19 insertions, 24 deletions
diff --git a/deps/v8/src/torque/declarations.h b/deps/v8/src/torque/declarations.h index 75dd4b0459..0dd9be9974 100644 --- a/deps/v8/src/torque/declarations.h +++ b/deps/v8/src/torque/declarations.h @@ -56,9 +56,8 @@ class Declarations { static const TypeAlias* LookupTypeAlias(const QualifiedName& name); static const Type* LookupType(const QualifiedName& name); - static const Type* LookupType(std::string name); + static const Type* LookupType(const Identifier* identifier); static const Type* LookupGlobalType(const std::string& name); - static const Type* GetType(TypeExpression* type_expression); static Builtin* FindSomeInternalBuiltinWithType( const BuiltinPointerType* type); @@ -73,31 +72,27 @@ class Declarations { static Generic* LookupUniqueGeneric(const QualifiedName& name); static Namespace* DeclareNamespace(const std::string& name); - - static const AbstractType* DeclareAbstractType( - const Identifier* name, bool transient, std::string generated, - base::Optional<const AbstractType*> non_constexpr_version, - const base::Optional<Identifier*>& parent = {}); - - static void DeclareType(const Identifier* name, const Type* type, - bool redeclaration); - - static StructType* DeclareStruct(const Identifier* name); - - static ClassType* DeclareClass(const Type* super, const Identifier* name, - bool is_extern, bool generate_print, - bool transient, const std::string& generates); - - static Macro* CreateMacro(std::string external_name, - std::string readable_name, - base::Optional<std::string> external_assembler_name, - Signature signature, bool transitioning, - base::Optional<Statement*> body); + static TypeAlias* DeclareType(const Identifier* name, const Type* type); + + static const TypeAlias* PredeclareTypeAlias(const Identifier* name, + TypeDeclaration* type, + bool redeclaration); + static TorqueMacro* CreateTorqueMacro(std::string external_name, + std::string readable_name, + bool exported_to_csa, + Signature signature, bool transitioning, + base::Optional<Statement*> body, + bool is_user_defined); + static ExternMacro* CreateExternMacro(std::string name, + std::string external_assembler_name, + Signature signature, + bool transitioning); static Macro* DeclareMacro( - const std::string& name, + const std::string& name, bool accessible_from_csa, base::Optional<std::string> external_assembler_name, const Signature& signature, bool transitioning, - base::Optional<Statement*> body, base::Optional<std::string> op = {}); + base::Optional<Statement*> body, base::Optional<std::string> op = {}, + bool is_user_defined = true); static Method* CreateMethod(AggregateType* class_type, const std::string& name, Signature signature, |