v8
3.14.5(node0.10.28)
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 153 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 125 of file variables.h.
References v8::internal::kNeedsInitialization.
Definition at line 92 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 147 of file variables.h.
Referenced by Variable::AllocateTo(), ScopeInfo::Create(), and Scope::LinkModules().
|
inline |
Definition at line 148 of file variables.h.
Referenced by ScopeInfo::Create().
|
inline |
Definition at line 108 of file variables.h.
|
inline |
Definition at line 151 of file variables.h.
Referenced by Scope::ResolveVariable().
|
inline |
Definition at line 130 of file variables.h.
References Variable::ARGUMENTS.
|
inline |
Definition at line 124 of file variables.h.
References v8::internal::IsImmutableVariableMode().
Referenced by Scope::LinkModules().
|
inline |
Definition at line 123 of file variables.h.
References v8::internal::IsDynamicVariableMode().
Referenced by Scope::ResolveVariable().
|
inline |
Definition at line 133 of file variables.h.
References FACTORY, and Variable::IsVariable().
|
inline |
Definition at line 129 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(), HLoadContextSlot::HLoadContextSlot(), and Scope::LinkModules().
bool IsGlobalObjectProperty | ( | ) | const |
Definition at line 84 of file variables.cc.
References Scope::is_global_scope(), v8::internal::IsLexicalVariableMode(), v8::internal::NULL, and v8::internal::TEMPORARY.
Referenced by Scope::MustAllocate(), and Scope::ResolveVariable().
|
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 137 of file variables.h.
References ASSERT, v8::internal::DYNAMIC_LOCAL, and v8::internal::NULL.
|
inline |
Definition at line 146 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 142 of file variables.h.
Referenced by Scope::ResolveVariable().