v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <contexts.h>
Static Public Member Functions | |
static Context * | cast (Object *context) |
static int | SlotOffset (int index) |
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) |
Static Public Attributes | |
static const int | kSize = kHeaderSize + NATIVE_CONTEXT_SLOTS * kPointerSize |
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 |
Additional Inherited Members | |
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) |
Definition at line 209 of file contexts.h.
typedef FixedBodyDescriptor< kHeaderSize, kHeaderSize + FIRST_WEAK_SLOT * kPointerSize, kSize> MarkCompactBodyDescriptor |
Definition at line 438 of file contexts.h.
typedef FixedBodyDescriptor< kHeaderSize, kSize, kSize> ScavengeBodyDescriptor |
Definition at line 433 of file contexts.h.
anonymous enum |
Definition at line 218 of file contexts.h.
void AddOptimizedFunction | ( | JSFunction * | function | ) |
Definition at line 243 of file contexts.cc.
References ASSERT, Context::cast(), JSFunction::cast(), CHECK, FLAG_enable_slow_asserts, FixedArray::get(), HeapObject::GetHeap(), Heap::native_contexts_list(), Context::NEXT_CONTEXT_LINK, Context::OPTIMIZED_FUNCTIONS_LIST, and FixedArray::set().
JSBuiltinsObject * builtins | ( | ) |
Definition at line 47 of file contexts.cc.
References ASSERT, JSGlobalObject::cast(), JSBuiltinsObject::cast(), and Context::global_object().
Referenced by TypeFeedbackOracle::CanRetainOtherContext().
Definition at line 212 of file contexts.h.
References ASSERT.
Referenced by Context::AddOptimizedFunction(), Heap::ClearJSFunctionResultCaches(), Heap::ClearNormalizedMapCaches(), JSFunction::context(), CountNativeContexts(), Isolate::GetCallingNativeContext(), NonStrictArgumentsElementsAccessor::GetImpl(), IncrementalMarking::Hurry(), Context::native_context(), JSFunction::NativeContextFromLiterals(), Snapshot::NewContextFromSnapshot(), JavaScriptFrame::Print(), v8::internal::RUNTIME_FUNCTION(), JSObject::SetDictionaryElement(), IncrementalMarking::Step(), Deoptimizer::VisitAllOptimizedFunctions(), and GlobalObjectsEnumerator::VisitPointers().
void ClearOptimizedFunctions | ( | ) |
Definition at line 303 of file contexts.cc.
References HeapObject::GetHeap(), Context::OPTIMIZED_FUNCTIONS_LIST, and FixedArray::set().
Referenced by DeoptimizingVisitor::LeaveContext().
|
inline |
Definition at line 307 of file contexts.h.
References JSFunction::cast(), and Context::CLOSURE_INDEX.
Referenced by Context::declaration_context(), Scope::DeserializeScopeChain(), CompilationCacheTable::Lookup(), CompilationCacheTable::LookupEval(), Context::native_context(), CompilationCacheTable::Put(), and CompilationCacheTable::PutEval().
Context * declaration_context | ( | ) |
Definition at line 37 of file contexts.cc.
References ASSERT, Context::closure(), Context::IsFunctionContext(), and Context::previous().
Definition at line 308 of file contexts.cc.
References v8::internal::CStrVector(), Isolate::factory(), and Factory::NewStringFromAscii().
|
inline |
Definition at line 318 of file contexts.h.
References Context::EXTENSION_INDEX.
Referenced by Scope::DeserializeScopeChain(), Context::has_extension(), JSObject::ReferencesObject(), and v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 328 of file contexts.h.
References ASSERT, and Context::GLOBAL_OBJECT_INDEX.
Referenced by Heap::AllocateBlockContext(), Heap::AllocateCatchContext(), Heap::AllocateWithContext(), Context::builtins(), TypeFeedbackOracle::CanRetainOtherContext(), Isolate::global_object(), Context::native_context(), and v8::internal::RUNTIME_FUNCTION().
JSObject * global_proxy | ( | ) |
Definition at line 78 of file contexts.cc.
References Context::native_context().
Referenced by Isolate::global_proxy(), Script::Run(), and GlobalObjectsEnumerator::VisitPointers().
|
inline |
Definition at line 317 of file contexts.h.
References Context::extension(), and v8::internal::NULL.
Referenced by JSObject::ReferencesObject(), and v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 1440 of file isolate.h.
References Context::native_context().
|
inline |
Definition at line 362 of file contexts.h.
References HeapObject::GetHeap(), and HeapObject::map().
Referenced by Scope::DeserializeScopeChain().
|
inline |
Definition at line 354 of file contexts.h.
References HeapObject::GetHeap(), and HeapObject::map().
Referenced by Scope::DeserializeScopeChain(), and JSObject::ReferencesObject().
|
inline |
Definition at line 350 of file contexts.h.
References HeapObject::GetHeap(), and HeapObject::map().
Referenced by Context::declaration_context(), Scope::DeserializeScopeChain(), and v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 370 of file contexts.h.
References HeapObject::GetHeap(), and HeapObject::map().
Referenced by Heap::AllocateGlobalContext(), and Scope::DeserializeScopeChain().
|
inline |
Definition at line 366 of file contexts.h.
References HeapObject::GetHeap(), and HeapObject::map().
Referenced by Scope::DeserializeScopeChain(), and v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 358 of file contexts.h.
References HeapObject::GetHeap(), and HeapObject::map().
Referenced by Scope::DeserializeScopeChain().
Handle< Object > Lookup | ( | Handle< String > | name, |
ContextLookupFlags | flags, | ||
int * | index, | ||
PropertyAttributes * | attributes, | ||
BindingFlags * | binding_flags | ||
) |
Definition at line 87 of file contexts.cc.
References ABSENT, ASSERT, JSObject::cast(), ScopeInfo::cast(), String::cast(), v8::internal::CONST, v8::internal::CONST_HARMONY, v8::internal::DYNAMIC, v8::internal::DYNAMIC_GLOBAL, v8::internal::DYNAMIC_LOCAL, v8::internal::FOLLOW_CONTEXT_CHAIN, v8::internal::FOLLOW_PROTOTYPE_CHAIN, HeapObject::GetIsolate(), v8::internal::IMMUTABLE_CHECK_INITIALIZED, v8::internal::IMMUTABLE_CHECK_INITIALIZED_HARMONY, v8::internal::IMMUTABLE_IS_INITIALIZED, v8::internal::IMMUTABLE_IS_INITIALIZED_HARMONY, v8::internal::INTERNAL, v8::internal::kNeedsInitialization, v8::internal::LET, Context::MIN_CONTEXT_SLOTS, v8::internal::MISSING_BINDING, v8::internal::MUTABLE_CHECK_INITIALIZED, v8::internal::MUTABLE_IS_INITIALIZED, NONE, Handle< T >::null(), v8::internal::PrintF(), READ_ONLY, v8::internal::TEMPORARY, Context::THROWN_OBJECT_INDEX, UNREACHABLE, and v8::internal::VAR.
Referenced by v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 1446 of file isolate.h.
References HEAP, and Context::native_context().
Referenced by Heap::AllocateConsString(), Heap::AllocateExternalStringFromAscii(), Heap::AllocateExternalStringFromTwoByte(), and Isolate::ReportPendingMessages().
|
inline |
Definition at line 321 of file contexts.h.
References JSModule::cast(), and Context::EXTENSION_INDEX.
Referenced by Scope::DeserializeScopeChain().
Context * native_context | ( | ) |
Definition at line 58 of file contexts.cc.
References ASSERT, Context::cast(), JSFunction::cast(), Context::closure(), JSFunction::context(), and Context::global_object().
Referenced by Heap::AllocateArgumentsObject(), Heap::AllocateFunctionPrototype(), v8::internal::BUILTIN(), Runtime::CreateArrayLiteralBoilerplate(), Isolate::empty_object_map(), Isolate::GetCallingNativeContext(), JSObject::GetElementsTransitionMap(), Object::GetElementWithReceiver(), v8::internal::GetKeysInFixedArrayFor(), Object::GetPrototype(), Context::global_proxy(), Context::has_out_of_memory(), Object::Lookup(), Context::mark_out_of_memory(), JSObject::NormalizeProperties(), StringStream::PrintSecurityTokenIfChanged(), JSObject::ReferencesObject(), JSFunction::RemovePrototype(), Deoptimizer::ReplaceCodeForRelatedFunctions(), Context::set_global_proxy(), JSFunction::SetPrototype(), and Object::ToObject().
Object * OptimizedFunctionsListHead | ( | ) |
Definition at line 297 of file contexts.cc.
References ASSERT, and Context::OPTIMIZED_FUNCTIONS_LIST.
Referenced by Deoptimizer::VisitAllOptimizedFunctionsForContext().
|
inline |
Definition at line 310 of file contexts.h.
References ASSERT.
Referenced by Context::declaration_context(), and Scope::DeserializeScopeChain().
void RemoveOptimizedFunction | ( | JSFunction * | function | ) |
Definition at line 273 of file contexts.cc.
References ASSERT, JSFunction::cast(), HeapObject::GetHeap(), v8::internal::NULL, Context::OPTIMIZED_FUNCTIONS_LIST, FixedArray::set(), and UNREACHABLE.
|
inline |
Definition at line 308 of file contexts.h.
References Context::CLOSURE_INDEX, and FixedArray::set().
Referenced by Heap::AllocateBlockContext(), Heap::AllocateCatchContext(), Heap::AllocateFunctionContext(), Heap::AllocateGlobalContext(), Heap::AllocateWithContext(), and v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 319 of file contexts.h.
References Context::EXTENSION_INDEX, and FixedArray::set().
Referenced by Heap::AllocateBlockContext(), Heap::AllocateCatchContext(), Heap::AllocateFunctionContext(), Heap::AllocateGlobalContext(), Heap::AllocateModuleContext(), Heap::AllocateWithContext(), and v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 333 of file contexts.h.
References Context::GLOBAL_OBJECT_INDEX, and FixedArray::set().
Referenced by Heap::AllocateBlockContext(), Heap::AllocateCatchContext(), Heap::AllocateFunctionContext(), Heap::AllocateGlobalContext(), Heap::AllocateWithContext(), and v8::internal::RUNTIME_FUNCTION().
void set_global_proxy | ( | JSObject * | global | ) |
Definition at line 82 of file contexts.cc.
References Context::native_context().
|
inline |
Definition at line 322 of file contexts.h.
References Context::EXTENSION_INDEX, and FixedArray::set().
|
inline |
Definition at line 315 of file contexts.h.
References Context::PREVIOUS_INDEX, and FixedArray::set().
Referenced by Heap::AllocateBlockContext(), Heap::AllocateCatchContext(), Heap::AllocateFunctionContext(), Heap::AllocateGlobalContext(), Heap::AllocateWithContext(), and v8::internal::RUNTIME_FUNCTION().
|
inlinestatic |
Definition at line 425 of file contexts.h.
References FixedArrayBase::kHeaderSize, v8::internal::kHeapObjectTag, and v8::internal::kPointerSize.
Referenced by v8::internal::ContextOperand().
|
static |
Definition at line 429 of file contexts.h.