v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <objects.h>
Static Public Member Functions | |
static ScopeInfo * | cast (Object *object) |
static bool | CopyContextLocalsToScopeObject (Handle< ScopeInfo > scope_info, Handle< Context > context, Handle< JSObject > scope_object) |
static Handle< ScopeInfo > | Create (Scope *scope, Zone *zone) |
static ScopeInfo * | Empty (Isolate *isolate) |
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 void | UpdateMapCodeCache (Handle< HeapObject > object, Handle< Name > name, Handle< Code > code) |
static HeapObject * | cast (Object *obj) |
Static Public Member Functions inherited from Object | |
static MUST_USE_RESULT Handle < Object > | ToSmi (Isolate *isolate, Handle< Object > object) |
static Handle< Object > | GetPropertyWithReceiver (Handle< Object > object, Handle< Object > receiver, Handle< Name > name, PropertyAttributes *attributes) |
static Handle< Object > | GetProperty (Handle< Object > object, Handle< Name > key) |
static Handle< Object > | GetProperty (Handle< Object > object, Handle< Object > receiver, LookupResult *result, Handle< Name > key, PropertyAttributes *attributes) |
static MUST_USE_RESULT MaybeObject * | GetPropertyOrFail (Handle< Object > object, Handle< Object > receiver, LookupResult *result, Handle< Name > key, PropertyAttributes *attributes) |
static Handle< Object > | GetElement (Isolate *isolate, Handle< Object > object, uint32_t index) |
static Handle< Object > | GetElementNoExceptionThrown (Isolate *isolate, Handle< Object > object, uint32_t index) |
static Handle< Object > | GetElementWithReceiver (Isolate *isolate, Handle< Object > object, Handle< Object > receiver, uint32_t index) |
static Handle< Object > | GetOrCreateHash (Handle< Object > object, Isolate *isolate) |
static Object * | cast (Object *value) |
Additional Inherited Members | |
Public Types inherited from Object | |
enum | ValueType { OPTIMAL_REPRESENTATION, FORCE_TAGGED } |
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) |
void | IterateNextCodeLink (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 162 of file scopeinfo.cc.
References FixedArrayBase::length().
Referenced by ScopeInfo::ContextLength().
|
inline |
Definition at line 4373 of file objects.h.
References v8::internal::SLOPPY.
Referenced by Scope::DeserializeScopeChain(), Context::Lookup(), and v8::internal::RUNTIME_FUNCTION().
int ContextLength | ( | ) |
Definition at line 187 of file scopeinfo.cc.
References ScopeInfo::CallsEval(), v8::internal::FUNCTION_SCOPE, FixedArrayBase::length(), Context::MIN_CONTEXT_SLOTS, v8::internal::MODULE_SCOPE, ScopeInfo::scope_type(), and v8::internal::WITH_SCOPE.
Referenced by Heap::AllocateBlockContext(), Heap::AllocateGlobalContext(), Heap::AllocateModuleContext(), ScopeInfo::ContextSlotIndex(), and ScopeInfo::HasContext().
InitializationFlag ContextLocalInitFlag | ( | int | var | ) |
Definition at line 273 of file scopeinfo.cc.
References ASSERT, Smi::cast(), and Smi::value().
Referenced by ScopeInfo::ContextSlotIndex().
VariableMode ContextLocalMode | ( | int | var | ) |
Definition at line 265 of file scopeinfo.cc.
References ASSERT, Smi::cast(), and Smi::value().
Referenced by ScopeInfo::ContextSlotIndex().
String * ContextLocalName | ( | int | var | ) |
Definition at line 258 of file scopeinfo.cc.
References ASSERT, and String::cast().
int ContextSlotIndex | ( | String * | name, |
VariableMode * | mode, | ||
InitializationFlag * | init_flag | ||
) |
Definition at line 296 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().
|
static |
Definition at line 364 of file scopeinfo.cc.
References String::cast(), Context::MIN_CONTEXT_SLOTS, RETURN_IF_EMPTY_HANDLE_VALUE, Runtime::SetObjectProperty(), and v8::internal::SLOPPY.
Definition at line 39 of file scopeinfo.cc.
References ASSERT, Scope::calls_eval(), Scope::CollectStackAndContextLocals(), Variable::CompareIndex(), Scope::ContextLocalCount(), Isolate::factory(), v8::internal::flags, Smi::FromInt(), Scope::function(), Variable::initialization_flag(), Scope::is_function_scope(), Variable::is_used(), Variable::IsContextSlot(), Zone::isolate(), Variable::IsStackLocal(), FixedArrayBase::length(), Variable::mode(), Variable::name(), v8::internal::name, v8::internal::NULL, Scope::num_heap_slots(), Scope::num_parameters(), Scope::num_stack_slots(), Scope::parameter(), Scope::scope_type(), Scope::StackLocalCount(), Scope::strict_mode(), and v8::internal::VAR.
Referenced by Compiler::BuildFunctionInfo(), and Scope::GetScopeInfo().
Definition at line 151 of file scopeinfo.cc.
References Isolate::heap().
Referenced by Heap::AllocateSharedFunctionInfo(), Compiler::BuildFunctionInfo(), Compiler::GetOptimizedCode(), and JavaScriptFrame::Print().
int FunctionContextSlotIndex | ( | String * | name, |
VariableMode * | mode | ||
) |
Definition at line 350 of file scopeinfo.cc.
References ASSERT, Smi::cast(), ScopeInfo::FunctionName(), FixedArrayBase::length(), v8::internal::NULL, and Smi::value().
String * FunctionName | ( | ) |
Definition at line 229 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().
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().
int LocalCount | ( | ) |
Definition at line 172 of file scopeinfo.cc.
Referenced by ScopeInfo::LocalName().
String * LocalName | ( | int | var | ) |
Definition at line 242 of file scopeinfo.cc.
References ASSERT, String::cast(), and ScopeInfo::LocalCount().
int ParameterIndex | ( | String * | name | ) |
Definition at line 330 of file scopeinfo.cc.
References ASSERT, and FixedArrayBase::length().
String * ParameterName | ( | int | var | ) |
Definition at line 235 of file scopeinfo.cc.
References ASSERT, and String::cast().
ScopeType scope_type | ( | ) |
Definition at line 156 of file scopeinfo.cc.
References ASSERT, and FixedArrayBase::length().
Referenced by ScopeInfo::ContextLength().
String * StackLocalName | ( | int | var | ) |
Definition at line 251 of file scopeinfo.cc.
References ASSERT, and String::cast().
int StackSlotCount | ( | ) |
Definition at line 177 of file scopeinfo.cc.
References FixedArrayBase::length().
int StackSlotIndex | ( | String * | name | ) |
Definition at line 281 of file scopeinfo.cc.
References ASSERT, and FixedArrayBase::length().
StrictMode strict_mode | ( | ) |
Definition at line 167 of file scopeinfo.cc.
References FixedArrayBase::length(), and v8::internal::SLOPPY.