v8
3.25.30(node0.11.13)
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 58 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 94 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(), ModuleInfo::Create(), and V8_FINAL< kOperandKind, kNumCachedOperands >::IndexFor().
|
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(), and Rewriter::Rewrite().
|
inline |
Definition at line 130 of file variables.h.
References Variable::ARGUMENTS.
Referenced by HOptimizedGraphBuilder::IsEligibleForEnvironmentLivenessAnalysis().
|
inline |
Definition at line 124 of file variables.h.
References v8::internal::IsImmutableVariableMode().
Referenced by Scope::ResolveVariable().
|
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 Isolate::factory(), and Variable::IsVariable().
|
inline |
Definition at line 129 of file variables.h.
References Variable::THIS.
Referenced by HOptimizedGraphBuilder::IsEligibleForEnvironmentLivenessAnalysis(), Variable::IsVariable(), Scope::MustAllocate(), and HOptimizedGraphBuilder::VisitDelete().
|
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(), ScopeInfo::Create(), V8_FINAL< kOperandKind, kNumCachedOperands >::HLoadContextSlot(), and HOptimizedGraphBuilder::VisitDelete().
bool IsGlobalObjectProperty | ( | ) | const |
Definition at line 85 of file variables.cc.
References Scope::is_global_scope(), v8::internal::IsDeclaredVariableMode(), v8::internal::IsDynamicVariableMode(), v8::internal::IsLexicalVariableMode(), and v8::internal::NULL.
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(), V8_FINAL< kOperandKind, kNumCachedOperands >::IndexFor(), and Variable::IsStackAllocated().
|
inline |
Definition at line 118 of file variables.h.
References Variable::IsParameter(), and Variable::IsStackLocal().
Referenced by V8_FINAL< kOperandKind, kNumCachedOperands >::IndexFor(), HOptimizedGraphBuilder::SetUpScope(), and HOptimizedGraphBuilder::VisitDelete().
|
inline |
Definition at line 117 of file variables.h.
References Variable::LOCAL.
Referenced by Scope::AllocateNonParameterLocal(), Scope::CollectStackAndContextLocals(), ScopeInfo::Create(), and Variable::IsStackAllocated().
|
inline |
Definition at line 115 of file variables.h.
References Variable::UNALLOCATED.
Referenced by Scope::AllocateNonParameterLocal(), Scope::AllocateParameterLocals(), and HOptimizedGraphBuilder::VisitDelete().
|
inline |
Definition at line 88 of file variables.h.
Definition at line 111 of file variables.h.
References 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(), and Expression::IsUndefinedLiteral().
|
inline |
Definition at line 97 of file variables.h.
Referenced by Scope::CheckConflictingVarDeclarations(), ModuleInfo::Create(), ScopeInfo::Create(), V8_FINAL< kOperandKind, kNumCachedOperands >::HLoadContextSlot(), and Scope::MustAllocateInContext().
|
static |
Definition at line 40 of file variables.cc.
References v8::internal::CONST, v8::internal::CONST_LEGACY, v8::internal::DYNAMIC, v8::internal::DYNAMIC_GLOBAL, v8::internal::DYNAMIC_LOCAL, v8::internal::INTERNAL, v8::internal::LET, v8::internal::MODULE, v8::internal::NULL, v8::internal::TEMPORARY, UNREACHABLE, and v8::internal::VAR.
Definition at line 96 of file variables.h.
Referenced by 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 Scope::MustAllocate().
|
inline |
Definition at line 142 of file variables.h.
Referenced by Scope::ResolveVariable().