v8
3.11.10(node0.8.26)
V8 is Google's open source JavaScript engine
|
#include <variables.h>
Public Types | |
enum | Kind { NORMAL, THIS, ARGUMENTS } |
enum | Location { UNALLOCATED, PARAMETER, LOCAL, CONTEXT, LOOKUP } |
Static Public Member Functions | |
static const char * | Mode2String (VariableMode mode) |
static int | CompareIndex (Variable *const *v, Variable *const *w) |
Definition at line 42 of file variables.h.
enum Kind |
Enumerator | |
---|---|
NORMAL | |
THIS | |
ARGUMENTS |
Definition at line 44 of file variables.h.
enum Location |
Enumerator | |
---|---|
UNALLOCATED | |
PARAMETER | |
LOCAL | |
CONTEXT | |
LOOKUP |
Definition at line 50 of file variables.h.
Variable | ( | Scope * | scope, |
Handle< String > | name, | ||
VariableMode | mode, | ||
bool | is_valid_lhs, | ||
Kind | kind, | ||
InitializationFlag | initialization_flag, | ||
Interface * | interface = Interface::NewValue() |
||
) |
Definition at line 57 of file variables.cc.
References ASSERT, v8::internal::kNeedsInitialization, and v8::internal::VAR.
|
inline |
Definition at line 160 of file variables.h.
References Variable::index(), and Variable::location().
Referenced by Scope::AllocateHeapSlot(), Scope::AllocateParameterLocals(), Scope::AllocateStackSlot(), Scope::Initialize(), Scope::LocalLookup(), Scope::LookupFunctionVar(), and Scope::NonLocal().
|
inline |
Definition at line 131 of file variables.h.
References v8::internal::kNeedsInitialization.
Definition at line 91 of file variables.cc.
Referenced by ScopeInfo::Create().
|
inline |
Definition at line 101 of file variables.h.
References ASSERT, and v8::internal::TEMPORARY.
Referenced by Scope::AllocateParameterLocals(), and Scope::LookupRecursive().
|
inline |
Definition at line 98 of file variables.h.
Referenced by Scope::MustAllocate(), and Scope::MustAllocateInContext().
|
inline |
Definition at line 154 of file variables.h.
Referenced by Variable::AllocateTo(), and ScopeInfo::Create().
|
inline |
Definition at line 155 of file variables.h.
Referenced by ScopeInfo::Create().
|
inline |
Definition at line 108 of file variables.h.
|
inline |
Definition at line 158 of file variables.h.
Referenced by Scope::ResolveVariable().
|
inline |
Definition at line 137 of file variables.h.
References Variable::ARGUMENTS.
|
inline |
Definition at line 127 of file variables.h.
References v8::internal::CONST, and v8::internal::CONST_HARMONY.
|
inline |
Definition at line 122 of file variables.h.
References v8::internal::DYNAMIC, v8::internal::DYNAMIC_GLOBAL, and v8::internal::DYNAMIC_LOCAL.
Referenced by Scope::ResolveVariable().
bool is_global | ( | ) | const |
Definition at line 84 of file variables.cc.
References Scope::is_global_scope(), v8::internal::NULL, and v8::internal::TEMPORARY.
Referenced by Scope::MustAllocate(), Scope::MustAllocateInContext(), and Scope::ResolveVariable().
|
inline |
Definition at line 140 of file variables.h.
References FACTORY, and Variable::IsVariable().
|
inline |
Definition at line 136 of file variables.h.
References Variable::THIS.
Referenced by VariableProxy::BindTo(), Variable::IsVariable(), and Scope::MustAllocate().
|
inline |
Definition at line 105 of file variables.h.
Referenced by Scope::CollectStackAndContextLocals(), ScopeInfo::Create(), and Scope::MustAllocate().
|
inline |
Definition at line 119 of file variables.h.
References Variable::CONTEXT.
Referenced by Scope::AllocateParameterLocals(), Scope::CollectStackAndContextLocals(), Scope::ContextLocalCount(), ScopeInfo::Create(), and HLoadContextSlot::HLoadContextSlot().
|
inline |
Definition at line 120 of file variables.h.
References Variable::LOOKUP.
|
inline |
Definition at line 116 of file variables.h.
References Variable::PARAMETER.
Referenced by Scope::AllocateParameterLocals(), and Variable::IsStackAllocated().
|
inline |
Definition at line 118 of file variables.h.
References Variable::IsParameter(), and Variable::IsStackLocal().
|
inline |
Definition at line 117 of file variables.h.
References Variable::LOCAL.
Referenced by Scope::AllocateNonParameterLocal(), Scope::CollectStackAndContextLocals(), ScopeInfo::Create(), Variable::IsStackAllocated(), and Scope::StackLocalCount().
|
inline |
Definition at line 115 of file variables.h.
References Variable::UNALLOCATED.
Referenced by Scope::AllocateNonParameterLocal(), and Scope::AllocateParameterLocals().
|
inline |
Definition at line 88 of file variables.h.
Definition at line 111 of file variables.h.
References Handle< T >::is_identical_to(), Variable::is_this(), and Variable::name().
Referenced by Scope::AllocateNonParameterLocal(), and Variable::is_possibly_eval().
|
inline |
Definition at line 144 of file variables.h.
References ASSERT, v8::internal::DYNAMIC_LOCAL, and v8::internal::NULL.
|
inline |
Definition at line 153 of file variables.h.
Referenced by Variable::AllocateTo().
|
inline |
Definition at line 97 of file variables.h.
Referenced by Scope::CheckConflictingVarDeclarations(), ScopeInfo::Create(), HLoadContextSlot::HLoadContextSlot(), and Scope::MustAllocateInContext().
|
static |
Definition at line 40 of file variables.cc.
References v8::internal::CONST, v8::internal::CONST_HARMONY, v8::internal::DYNAMIC, v8::internal::DYNAMIC_GLOBAL, v8::internal::DYNAMIC_LOCAL, v8::internal::INTERNAL, v8::internal::LET, v8::internal::NULL, v8::internal::TEMPORARY, UNREACHABLE, and v8::internal::VAR.
Definition at line 96 of file variables.h.
Referenced by VariableProxy::BindTo(), ScopeInfo::Create(), Variable::IsVariable(), Scope::MustAllocate(), Scope::ResolveVariable(), and Rewriter::Rewrite().
|
inline |
Definition at line 94 of file variables.h.
Referenced by Scope::AllocateNonParameterLocal(), and Scope::AllocateParameterLocals().
|
inline |
Definition at line 109 of file variables.h.
|
inline |
Definition at line 106 of file variables.h.
References v8::internal::flag.
Referenced by VariableProxy::BindTo(), and Scope::MustAllocate().
|
inline |
Definition at line 149 of file variables.h.
Referenced by Scope::ResolveVariable().