|
V8 Project
|
#include <objects.h>
Inheritance diagram for v8::internal::ScopeInfo:
Collaboration diagram for v8::internal::ScopeInfo:Classes | |
| class | AsmFunctionField |
| class | AsmModuleField |
| class | CallsEvalField |
| class | ContextLocalInitFlag |
| class | ContextLocalMaybeAssignedFlag |
| class | ContextLocalMode |
| class | FunctionVariableField |
| class | FunctionVariableMode |
| class | ScopeTypeField |
| class | StrictModeField |
Private Types | |
| enum | { kVariablePartIndex } |
| enum | FunctionVariableInfo { NONE , STACK , CONTEXT , UNUSED } |
Private Member Functions | |
| int | ParameterEntriesIndex () |
| int | StackLocalEntriesIndex () |
| int | ContextLocalNameEntriesIndex () |
| int | ContextLocalInfoEntriesIndex () |
| int | FunctionNameEntryIndex () |
|
private |
| bool v8::internal::ScopeInfo::CallsEval | ( | ) |
Definition at line 143 of file scopeinfo.cc.
References v8::internal::BitFieldBase< T, shift, size, U >::decode(), and v8::internal::FixedArrayBase::length().
Referenced by ContextLength().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
| int v8::internal::ScopeInfo::ContextLength | ( | ) |
Definition at line 168 of file scopeinfo.cc.
References CallsEval(), CONTEXT, v8::internal::BitFieldBase< T, shift, size, U >::decode(), v8::internal::FUNCTION_SCOPE, v8::internal::FixedArrayBase::length(), v8::internal::Context::MIN_CONTEXT_SLOTS, v8::internal::MODULE_SCOPE, scope_type(), and v8::internal::WITH_SCOPE.
Referenced by ContextSlotIndex(), and HasContext().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 412 of file scopeinfo.cc.
References ContextLocalNameEntriesIndex().
Referenced by ContextLocalInitFlag(), ContextLocalMaybeAssignedFlag(), ContextLocalMode(), and FunctionNameEntryIndex().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 254 of file scopeinfo.cc.
References ContextLocalInfoEntriesIndex(), DCHECK, v8::internal::BitFieldBase< T, shift, size, U >::decode(), and v8::internal::FixedArray::get().
Here is the call graph for this function:Definition at line 262 of file scopeinfo.cc.
References ContextLocalInfoEntriesIndex(), DCHECK, v8::internal::BitFieldBase< T, shift, size, U >::decode(), and v8::internal::FixedArray::get().
Here is the call graph for this function:Definition at line 246 of file scopeinfo.cc.
References ContextLocalInfoEntriesIndex(), DCHECK, v8::internal::BitFieldBase< T, shift, size, U >::decode(), and v8::internal::FixedArray::get().
Here is the call graph for this function:Definition at line 239 of file scopeinfo.cc.
References ContextLocalNameEntriesIndex(), DCHECK, and v8::internal::FixedArray::get().
Referenced by v8::internal::V8HeapExplorer::ExtractContextReferences(), and v8::internal::JavaScriptFrame::Print().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 407 of file scopeinfo.cc.
References StackLocalEntriesIndex().
Referenced by ContextLocalInfoEntriesIndex(), ContextLocalName(), and LocalName().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 296 of file scopeinfo.cc.
References ContextLength(), DCHECK, v8::internal::INTERNAL, v8::internal::kNeedsInitialization, v8::internal::kNotAssigned, v8::internal::ContextSlotCache::kNotFound, v8::internal::ContextSlotCache::Lookup(), v8::internal::Context::MIN_CONTEXT_SLOTS, mode(), name, NULL, and v8::internal::ContextSlotCache::Update().
Referenced by v8::internal::Context::Lookup(), v8::internal::Scope::LookupLocal(), v8::internal::ParameterIsShadowedByContextLocal(), v8::internal::RUNTIME_FUNCTION(), and v8::internal::SetContextLocalValue().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 371 of file scopeinfo.cc.
References v8::internal::Runtime::DefineObjectProperty(), v8::internal::Context::MIN_CONTEXT_SLOTS, NONE, and RETURN_ON_EXCEPTION_VALUE.
Referenced by v8::internal::MaterializeBlockScope(), v8::internal::MaterializeClosure(), v8::internal::MaterializeLocalContext(), and v8::internal::MaterializeModuleScope().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 16 of file scopeinfo.cc.
References v8::internal::Scope::asm_function(), v8::internal::Scope::asm_module(), v8::internal::Scope::calls_eval(), v8::internal::Scope::CollectStackAndContextLocals(), v8::internal::Variable::CompareIndex(), CONTEXT, v8::internal::Scope::ContextLocalCount(), DCHECK, v8::internal::BitFieldBase< T, shift, size, U >::encode(), v8::internal::Isolate::factory(), v8::internal::anonymous_namespace{flags.cc}::flags, v8::internal::Smi::FromInt(), v8::internal::Scope::function(), v8::internal::Variable::initialization_flag(), v8::internal::Scope::is_function_scope(), v8::internal::Variable::is_used(), v8::internal::Variable::IsContextSlot(), v8::internal::Zone::isolate(), v8::internal::Variable::IsStackLocal(), kVariablePartIndex, v8::internal::FixedArrayBase::length(), v8::internal::Variable::maybe_assigned(), v8::internal::Variable::mode(), name, v8::internal::Variable::name(), NONE, NULL, v8::internal::Scope::num_heap_slots(), v8::internal::Scope::num_parameters(), v8::internal::Scope::num_stack_slots(), v8::internal::Scope::parameter(), v8::internal::Scope::scope_type(), v8::internal::List< T, AllocationPolicy >::Sort(), STACK, v8::internal::Scope::StackLocalCount(), v8::internal::Scope::strict_mode(), UNUSED, and v8::internal::VAR.
Referenced by v8::internal::Compiler::BuildFunctionInfo(), v8::internal::Compiler::CompileForLiveEdit(), v8::internal::CompileToplevel(), v8::internal::Compiler::EnsureDeoptimizationSupport(), v8::internal::Scope::GetScopeInfo(), and v8::internal::GetUnoptimizedCodeCommon().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 132 of file scopeinfo.cc.
References v8::internal::Isolate::heap().
Referenced by v8::internal::Compiler::BuildFunctionInfo(), v8::internal::Compiler::EnsureDeoptimizationSupport(), v8::internal::Compiler::GetOptimizedCode(), and v8::internal::RUNTIME_FUNCTION().
Here is the call graph for this function:
Here is the caller graph for this function:| int v8::internal::ScopeInfo::FunctionContextSlotIndex | ( | String * | name, |
| VariableMode * | mode | ||
| ) |
Definition at line 357 of file scopeinfo.cc.
References CONTEXT, DCHECK, v8::internal::BitFieldBase< T, shift, size, U >::decode(), FunctionName(), FunctionNameEntryIndex(), v8::internal::FixedArray::get(), v8::internal::FixedArrayBase::length(), mode(), name, and NULL.
Referenced by v8::internal::V8HeapExplorer::ExtractContextReferences().
Here is the call graph for this function:
Here is the caller graph for this function:| String * v8::internal::ScopeInfo::FunctionName | ( | ) |
Definition at line 210 of file scopeinfo.cc.
References DCHECK, FunctionNameEntryIndex(), v8::internal::FixedArray::get(), and HasFunctionName().
Referenced by v8::internal::V8HeapExplorer::ExtractContextReferences(), and FunctionContextSlotIndex().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 417 of file scopeinfo.cc.
References ContextLocalInfoEntriesIndex().
Referenced by FunctionContextSlotIndex(), and FunctionName().
Here is the call graph for this function:
Here is the caller graph for this function:| bool v8::internal::ScopeInfo::HasContext | ( | ) |
Definition at line 205 of file scopeinfo.cc.
References ContextLength().
Here is the call graph for this function:| bool v8::internal::ScopeInfo::HasFunctionName | ( | ) |
Definition at line 187 of file scopeinfo.cc.
References v8::internal::BitFieldBase< T, shift, size, U >::decode(), v8::internal::FixedArrayBase::length(), and NONE.
Referenced by v8::internal::V8HeapExplorer::ExtractContextReferences(), and FunctionName().
Here is the call graph for this function:
Here is the caller graph for this function:| bool v8::internal::ScopeInfo::HasHeapAllocatedLocals | ( | ) |
Definition at line 196 of file scopeinfo.cc.
References v8::internal::FixedArrayBase::length().
Here is the call graph for this function:
|
inline |
Definition at line 4150 of file objects.h.
Referenced by v8::internal::Scope::DeserializeScopeChain().
Here is the caller graph for this function:
|
inline |
Definition at line 4147 of file objects.h.
Referenced by v8::internal::Scope::DeserializeScopeChain().
Here is the caller graph for this function:| int v8::internal::ScopeInfo::LocalCount | ( | ) |
Definition at line 153 of file scopeinfo.cc.
Referenced by LocalIsSynthetic(), and LocalName().
Here is the caller graph for this function:Definition at line 270 of file scopeinfo.cc.
References DCHECK, LocalCount(), LocalName(), and name.
Here is the call graph for this function:Definition at line 223 of file scopeinfo.cc.
References ContextLocalNameEntriesIndex(), DCHECK, v8::internal::FixedArray::get(), LocalCount(), and StackLocalEntriesIndex().
Referenced by LocalIsSynthetic().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 396 of file scopeinfo.cc.
References DCHECK, kVariablePartIndex, and v8::internal::FixedArrayBase::length().
Referenced by ParameterIndex(), ParameterName(), and StackLocalEntriesIndex().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 337 of file scopeinfo.cc.
References DCHECK, v8::internal::FixedArray::get(), v8::internal::FixedArrayBase::length(), name, and ParameterEntriesIndex().
Here is the call graph for this function:Definition at line 216 of file scopeinfo.cc.
References DCHECK, v8::internal::FixedArray::get(), and ParameterEntriesIndex().
Referenced by v8::internal::JavaScriptFrame::Print().
Here is the call graph for this function:
Here is the caller graph for this function:| ScopeType v8::internal::ScopeInfo::scope_type | ( | ) |
Definition at line 137 of file scopeinfo.cc.
References DCHECK, v8::internal::BitFieldBase< T, shift, size, U >::decode(), and v8::internal::FixedArrayBase::length().
Referenced by ContextLength().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 402 of file scopeinfo.cc.
References ParameterEntriesIndex().
Referenced by ContextLocalNameEntriesIndex(), LocalName(), StackLocalName(), and StackSlotIndex().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 232 of file scopeinfo.cc.
References DCHECK, v8::internal::FixedArray::get(), and StackLocalEntriesIndex().
Referenced by v8::internal::JavaScriptFrame::Print().
Here is the call graph for this function:
Here is the caller graph for this function:| int v8::internal::ScopeInfo::StackSlotCount | ( | ) |
Definition at line 158 of file scopeinfo.cc.
References v8::internal::BitFieldBase< T, shift, size, U >::decode(), v8::internal::FixedArrayBase::length(), and STACK.
Here is the call graph for this function:Definition at line 281 of file scopeinfo.cc.
References DCHECK, v8::internal::FixedArray::get(), v8::internal::FixedArrayBase::length(), name, and StackLocalEntriesIndex().
Here is the call graph for this function:| StrictMode v8::internal::ScopeInfo::strict_mode | ( | ) |
Definition at line 148 of file scopeinfo.cc.
References v8::internal::BitFieldBase< T, shift, size, U >::decode(), v8::internal::FixedArrayBase::length(), and v8::internal::SLOPPY.
Here is the call graph for this function: