v8
3.11.10(node0.8.26)
V8 is Google's open source JavaScript engine
|
#include <objects.h>
Static Public Member Functions | |
static ScopeInfo * | cast (Object *object) |
static Handle< ScopeInfo > | Create (Scope *scope, Zone *zone) |
static ScopeInfo * | Empty () |
Static Public Member Functions inherited from FixedArray | |
static int | SizeFor (int length) |
static int | OffsetOfElementAt (int index) |
static FixedArray * | cast (Object *obj) |
Static Public Member Functions inherited from FixedArrayBase | |
static FixedArrayBase * | cast (Object *object) |
Static Public Member Functions inherited from HeapObject | |
static HeapObject * | FromAddress (Address address) |
static Object ** | RawField (HeapObject *obj, int offset) |
static HeapObject * | cast (Object *obj) |
Static Public Member Functions inherited from Object | |
static Handle< Object > | GetProperty (Handle< Object > object, Handle< Object > receiver, LookupResult *result, Handle< String > key, PropertyAttributes *attributes) |
static Handle< Object > | GetElement (Handle< Object > object, uint32_t index) |
static Object * | cast (Object *value) |
Additional Inherited Members | |
Static Public Attributes inherited from FixedArray | |
static const int | kMaxSize = 128 * MB * kPointerSize |
static const int | kMaxLength = (kMaxSize - kHeaderSize) / kPointerSize |
Static Public Attributes inherited from FixedArrayBase | |
static const int | kLengthOffset = HeapObject::kHeaderSize |
static const int | kHeaderSize = kLengthOffset + kPointerSize |
Static Public Attributes inherited from HeapObject | |
static const int | kMapOffset = Object::kHeaderSize |
static const int | kHeaderSize = kMapOffset + kPointerSize |
Static Public Attributes inherited from Object | |
static const int | kHeaderSize = 0 |
Protected Member Functions inherited from HeapObject | |
void | IteratePointers (ObjectVisitor *v, int start, int end) |
void | IteratePointer (ObjectVisitor *v, int offset) |
Static Protected Member Functions inherited from FixedArray | |
static void | NoWriteBarrierSet (FixedArray *array, int index, Object *value) |
static void | NoIncrementalWriteBarrierSet (FixedArray *array, int index, Object *value) |
bool CallsEval | ( | ) |
Definition at line 163 of file scopeinfo.cc.
References FixedArrayBase::length().
Referenced by ScopeInfo::CallsNonStrictEval(), and ScopeInfo::ContextLength().
|
inline |
Definition at line 3396 of file objects.h.
References ScopeInfo::CallsEval(), v8::internal::CLASSIC_MODE, and ScopeInfo::language_mode().
Referenced by Scope::DeserializeScopeChain(), Context::Lookup(), and v8::internal::RUNTIME_FUNCTION().
int ContextLength | ( | ) |
Definition at line 188 of file scopeinfo.cc.
References ScopeInfo::CallsEval(), v8::internal::FUNCTION_SCOPE, FixedArrayBase::length(), Context::MIN_CONTEXT_SLOTS, ScopeInfo::Type(), and v8::internal::WITH_SCOPE.
Referenced by Heap::AllocateBlockContext(), Heap::AllocateModuleContext(), ScopeInfo::ContextSlotIndex(), and ScopeInfo::HasContext().
InitializationFlag ContextLocalInitFlag | ( | int | var | ) |
Definition at line 277 of file scopeinfo.cc.
References ASSERT, Smi::cast(), and Smi::value().
Referenced by ScopeInfo::ContextSlotIndex().
VariableMode ContextLocalMode | ( | int | var | ) |
Definition at line 269 of file scopeinfo.cc.
References ASSERT, Smi::cast(), and Smi::value().
Referenced by ScopeInfo::ContextSlotIndex().
String * ContextLocalName | ( | int | var | ) |
Definition at line 262 of file scopeinfo.cc.
References ASSERT, and String::cast().
int ContextSlotIndex | ( | String * | name, |
VariableMode * | mode, | ||
InitializationFlag * | init_flag | ||
) |
Definition at line 300 of file scopeinfo.cc.
References ASSERT, Isolate::context_slot_cache(), ScopeInfo::ContextLength(), ScopeInfo::ContextLocalInitFlag(), ScopeInfo::ContextLocalMode(), HeapObject::GetIsolate(), v8::internal::INTERNAL, v8::internal::kNeedsInitialization, ContextSlotCache::kNotFound, FixedArrayBase::length(), ContextSlotCache::Lookup(), Context::MIN_CONTEXT_SLOTS, v8::internal::NULL, and ContextSlotCache::Update().
Definition at line 41 of file scopeinfo.cc.
References ASSERT, Scope::calls_eval(), Scope::CollectStackAndContextLocals(), Variable::CompareIndex(), Scope::ContextLocalCount(), FACTORY, v8::internal::flags, Smi::FromInt(), Scope::function(), Variable::index(), Variable::initialization_flag(), Scope::is_function_scope(), Variable::is_used(), Variable::IsContextSlot(), Variable::IsStackLocal(), Scope::language_mode(), FixedArrayBase::length(), Variable::mode(), Variable::name(), VariableProxy::name(), v8::internal::NULL, Scope::num_heap_slots(), Scope::num_parameters(), Scope::num_stack_slots(), Scope::parameter(), Declaration::proxy(), Scope::StackLocalCount(), Scope::type(), v8::internal::VAR, and VariableProxy::var().
Referenced by Compiler::BuildFunctionInfo(), Compiler::CompileLazy(), and Scope::GetScopeInfo().
|
static |
Definition at line 152 of file scopeinfo.cc.
References HEAP.
Referenced by Heap::AllocateSharedFunctionInfo(), Compiler::BuildFunctionInfo(), Compiler::CompileLazy(), and JavaScriptFrame::Print().
int FunctionContextSlotIndex | ( | String * | name, |
VariableMode * | mode | ||
) |
Definition at line 353 of file scopeinfo.cc.
References ASSERT, Smi::cast(), ScopeInfo::FunctionName(), FixedArrayBase::length(), v8::internal::NULL, and Smi::value().
String * FunctionName | ( | ) |
Definition at line 233 of file scopeinfo.cc.
References ASSERT, String::cast(), and ScopeInfo::HasFunctionName().
Referenced by ScopeInfo::FunctionContextSlotIndex().
bool HasContext | ( | ) |
Definition at line 224 of file scopeinfo.cc.
References ScopeInfo::ContextLength(), and FixedArrayBase::length().
bool HasFunctionName | ( | ) |
Definition at line 206 of file scopeinfo.cc.
References FixedArrayBase::length().
Referenced by ScopeInfo::FunctionName().
bool HasHeapAllocatedLocals | ( | ) |
Definition at line 215 of file scopeinfo.cc.
References FixedArrayBase::length().
LanguageMode language_mode | ( | ) |
Definition at line 168 of file scopeinfo.cc.
References v8::internal::CLASSIC_MODE, and FixedArrayBase::length().
Referenced by ScopeInfo::CallsNonStrictEval().
int LocalCount | ( | ) |
Definition at line 173 of file scopeinfo.cc.
Referenced by ScopeInfo::LocalName().
String * LocalName | ( | int | var | ) |
Definition at line 246 of file scopeinfo.cc.
References ASSERT, String::cast(), and ScopeInfo::LocalCount().
int ParameterIndex | ( | String * | name | ) |
Definition at line 333 of file scopeinfo.cc.
References ASSERT, and FixedArrayBase::length().
String * ParameterName | ( | int | var | ) |
Definition at line 239 of file scopeinfo.cc.
References ASSERT, and String::cast().
String * StackLocalName | ( | int | var | ) |
Definition at line 255 of file scopeinfo.cc.
References ASSERT, and String::cast().
int StackSlotCount | ( | ) |
Definition at line 178 of file scopeinfo.cc.
References FixedArrayBase::length().
int StackSlotIndex | ( | String * | name | ) |
Definition at line 285 of file scopeinfo.cc.
References ASSERT, and FixedArrayBase::length().
ScopeType Type | ( | ) |
Definition at line 157 of file scopeinfo.cc.
References ASSERT, and FixedArrayBase::length().
Referenced by ScopeInfo::ContextLength().