diff options
Diffstat (limited to 'deps/v8/src/torque/declarations.h')
-rw-r--r-- | deps/v8/src/torque/declarations.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/deps/v8/src/torque/declarations.h b/deps/v8/src/torque/declarations.h index 880b3e75a6..5a45e5dbda 100644 --- a/deps/v8/src/torque/declarations.h +++ b/deps/v8/src/torque/declarations.h @@ -15,7 +15,7 @@ namespace v8 { namespace internal { namespace torque { -static constexpr const char* const kFromConstexprMacroName = "from_constexpr"; +static constexpr const char* const kFromConstexprMacroName = "FromConstexpr"; static constexpr const char* kTrueLabelName = "_True"; static constexpr const char* kFalseLabelName = "_False"; @@ -79,7 +79,8 @@ class Declarations { void DeclareStruct(Module* module, const std::string& name, const std::vector<NameAndType>& fields); - Label* DeclareLabel(const std::string& name); + Label* DeclareLabel(const std::string& name, + base::Optional<Statement*> statement = {}); Macro* DeclareMacro(const std::string& name, const Signature& signature, base::Optional<std::string> op = {}); @@ -90,17 +91,16 @@ class Declarations { RuntimeFunction* DeclareRuntimeFunction(const std::string& name, const Signature& signature); + Variable* CreateVariable(const std::string& var, const Type* type, + bool is_const); Variable* DeclareVariable(const std::string& var, const Type* type, bool is_const); Parameter* DeclareParameter(const std::string& name, - const std::string& mangled_name, - const Type* type); - - Label* DeclarePrivateLabel(const std::string& name); + std::string external_name, const Type* type); void DeclareExternConstant(const std::string& name, const Type* type, - const std::string& value); + std::string value); ModuleConstant* DeclareModuleConstant(const std::string& name, const Type* type); @@ -219,7 +219,7 @@ class Declarations::ScopedGenericScopeChainSnapshot { ScopedGenericScopeChainSnapshot(Declarations* declarations, const SpecializationKey& key) : restorer_(declarations->generic_declaration_scopes_[key.first]) {} - ~ScopedGenericScopeChainSnapshot() {} + ~ScopedGenericScopeChainSnapshot() = default; private: ScopeChain::ScopedSnapshotRestorer restorer_; |