v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::torque::Scope Class Reference

#include <declarable.h>

Inheritance diagram for v8::internal::torque::Scope:
Collaboration diagram for v8::internal::torque::Scope:

Public Member Functions

 Scope (Declarable::Kind kind)
 
std::vector< Declarable * > LookupShallow (const QualifiedName &name)
 
std::vector< Declarable * > Lookup (const QualifiedName &name)
 
template<class T >
TAddDeclarable (const std::string &name, T *declarable)
 
const SpecializationRequesterGetSpecializationRequester () const
 
void SetSpecializationRequester (const SpecializationRequester &requester)
 
- Public Member Functions inherited from v8::internal::torque::Declarable
virtual ~Declarable ()=default
 
Kind kind () const
 
bool IsNamespace () const
 
bool IsMacro () const
 
bool IsTorqueMacro () const
 
bool IsMethod () const
 
bool IsExternMacro () const
 
bool IsIntrinsic () const
 
bool IsBuiltin () const
 
bool IsRuntimeFunction () const
 
bool IsGenericCallable () const
 
bool IsGenericType () const
 
bool IsTypeAlias () const
 
bool IsExternConstant () const
 
bool IsNamespaceConstant () const
 
bool IsValue () const
 
bool IsScope () const
 
bool IsCallable () const
 
virtual const char * type_name () const
 
ScopeParentScope () const
 
SourcePosition Position () const
 
void SetPosition (const SourcePosition &position)
 
SourcePosition IdentifierPosition () const
 
void SetIdentifierPosition (const SourcePosition &position)
 
bool IsUserDefined () const
 
void SetIsUserDefined (bool is_user_defined)
 

Private Attributes

std::unordered_map< std::string, std::vector< Declarable * > > declarations_
 
SpecializationRequester requester_ = SpecializationRequester::None()
 

Additional Inherited Members

- Public Types inherited from v8::internal::torque::Declarable
enum  Kind {
  kNamespace , kTorqueMacro , kExternMacro , kMethod ,
  kBuiltin , kRuntimeFunction , kIntrinsic , kGenericCallable ,
  kGenericType , kTypeAlias , kExternConstant , kNamespaceConstant
}
 
- Protected Member Functions inherited from v8::internal::torque::Declarable
 Declarable (Kind kind)
 

Detailed Description

Definition at line 172 of file declarable.h.

Constructor & Destructor Documentation

◆ Scope()

v8::internal::torque::Scope::Scope ( Declarable::Kind kind)
inlineexplicit

Definition at line 175 of file declarable.h.

Member Function Documentation

◆ AddDeclarable()

template<class T >
T * v8::internal::torque::Scope::AddDeclarable ( const std::string & name,
T * declarable )
inline

Definition at line 196 of file declarable.h.

Here is the caller graph for this function:

◆ GetSpecializationRequester()

const SpecializationRequester & v8::internal::torque::Scope::GetSpecializationRequester ( ) const
inline

Definition at line 201 of file declarable.h.

Here is the caller graph for this function:

◆ Lookup()

std::vector< Declarable * > v8::internal::torque::Scope::Lookup ( const QualifiedName & name)

Definition at line 90 of file declarable.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LookupShallow()

std::vector< Declarable * > v8::internal::torque::Scope::LookupShallow ( const QualifiedName & name)
inline

Definition at line 177 of file declarable.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetSpecializationRequester()

void v8::internal::torque::Scope::SetSpecializationRequester ( const SpecializationRequester & requester)
inline

Definition at line 204 of file declarable.h.

Here is the caller graph for this function:

Member Data Documentation

◆ declarations_

std::unordered_map<std::string, std::vector<Declarable*> > v8::internal::torque::Scope::declarations_
private

Definition at line 209 of file declarable.h.

◆ requester_

SpecializationRequester v8::internal::torque::Scope::requester_ = SpecializationRequester::None()
private

Definition at line 214 of file declarable.h.


The documentation for this class was generated from the following files: