v8
3.11.10(node0.8.26)
V8 is Google's open source JavaScript engine
|
#include <scopes.h>
Public Member Functions | |
VariableMap (Zone *zone) | |
virtual | ~VariableMap () |
Variable * | Declare (Scope *scope, Handle< String > name, VariableMode mode, bool is_valid_lhs, Variable::Kind kind, InitializationFlag initialization_flag, Interface *interface=Interface::NewValue()) |
Variable * | Lookup (Handle< String > name) |
Zone * | zone () const |
Public Member Functions inherited from TemplateHashMapImpl< ZoneAllocationPolicy > | |
TemplateHashMapImpl (MatchFun match, uint32_t capacity=kDefaultHashMapCapacity, ZoneAllocationPolicyallocator=ZoneAllocationPolicy()) | |
~TemplateHashMapImpl () | |
Entry * | Lookup (void *key, uint32_t hash, bool insert, ZoneAllocationPolicyallocator=ZoneAllocationPolicy()) |
void * | Remove (void *key, uint32_t hash) |
void | Clear () |
uint32_t | occupancy () const |
uint32_t | capacity () const |
Entry * | Start () const |
Entry * | Next (Entry *p) const |
Additional Inherited Members | |
Public Types inherited from TemplateHashMapImpl< ZoneAllocationPolicy > | |
typedef bool(* | MatchFun )(void *key1, void *key2) |
Static Public Attributes inherited from TemplateHashMapImpl< ZoneAllocationPolicy > | |
static const uint32_t | kDefaultHashMapCapacity |
|
explicit |
|
virtual |
Variable * Declare | ( | Scope * | scope, |
Handle< String > | name, | ||
VariableMode | mode, | ||
bool | is_valid_lhs, | ||
Variable::Kind | kind, | ||
InitializationFlag | initialization_flag, | ||
Interface * | interface = Interface::NewValue() |
||
) |
Definition at line 66 of file scopes.cc.
References ASSERT, Handle< T >::location(), TemplateHashMapImpl< ZoneAllocationPolicy >::Lookup(), v8::internal::NULL, and VariableMap::zone().
Referenced by Scope::DeclareGlobal(), Scope::DeclareLocal(), Scope::DeclareParameter(), Scope::Initialize(), Scope::LocalLookup(), and Scope::NonLocal().
Definition at line 91 of file scopes.cc.
References ASSERT, Handle< T >::location(), TemplateHashMapImpl< ZoneAllocationPolicy >::Lookup(), and v8::internal::NULL.
Referenced by Scope::CheckConflictingVarDeclarations(), Scope::IsDeclared(), Scope::LocalLookup(), and Scope::NonLocal().
|
inline |
Definition at line 57 of file scopes.h.
Referenced by VariableMap::Declare().