v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <objects.h>
Additional Inherited Members | |
Public Types inherited from JSObject | |
enum | LocalElementType { UNDEFINED_ELEMENT, INTERCEPTED_ELEMENT, STRING_CHARACTER_ELEMENT, FAST_ELEMENT, DICTIONARY_ELEMENT } |
enum | SetFastElementsCapacitySmiMode { kAllowSmiElements, kForceSmiElements, kDontAllowSmiElements } |
Public Types inherited from JSReceiver | |
enum | DeleteMode { NORMAL_DELETION, STRICT_DELETION, FORCE_DELETION } |
enum | StoreFromKeyed { MAY_BE_STORE_FROM_KEYED, CERTAINLY_NOT_STORE_FROM_KEYED } |
enum | ExtensibilityCheck { PERFORM_EXTENSIBILITY_CHECK, OMIT_EXTENSIBILITY_CHECK } |
Protected Member Functions inherited from JSReceiver | |
Smi * | GenerateIdentityHash () |
Protected Member Functions inherited from HeapObject | |
void | IteratePointers (ObjectVisitor *v, int start, int end) |
void | IteratePointer (ObjectVisitor *v, int offset) |
|
inlinestatic |
Referenced by Context::AddOptimizedFunction(), JSObject::AddProperty(), Heap::AllocateArgumentsObject(), Heap::AllocateFunction(), TypeFeedbackOracle::CanRetainOtherContext(), JSReceiver::class_name(), Context::closure(), Call::ComputeGlobalTarget(), Isolate::ComputeLocation(), CallICBase::ComputeMonomorphicStub(), JSReceiver::constructor_name(), Map::CopyWithPreallocatedFieldDescriptors(), Date::DateTimeConfigurationChangeNotification(), BASE_EMBEDDED< Visitor >::GetConstantFunction(), DescriptorArray::GetConstantFunction(), BASE_EMBEDDED< Visitor >::GetConstantFunctionFromMap(), V8HeapExplorer::GetConstructorName(), OptimizedFrame::GetDeoptimizationData(), JavaScriptFrame::GetFunctions(), JSObject::GetIndexedInterceptor(), v8::internal::GetKeysInFixedArrayFor(), MessageHandler::GetMessage(), JSObject::GetNamedInterceptor(), JavaScriptFrame::GetNumberOfIncomingArguments(), Execution::InstantiateFunction(), JSObject::IsDirty(), Object::IsInstanceOf(), JSObject::JSObjectShortPrint(), StaticMarkingVisitor< StaticVisitor >::MarkInlinedFunctionsCode(), Deoptimizer::MaterializeHeapObjects(), Isolate::MayIndexedAccess(), Isolate::MayNamedAccess(), Context::native_context(), Factory::NewError(), RuntimeProfiler::OptimizeNow(), JavaScriptFrame::Print(), ArgumentsAdaptorFrame::Print(), Isolate::PrintCurrentStackTrace(), StringStream::PrintFunction(), StringStream::PrintSecurityTokenIfChanged(), JavaScriptFrame::PrintTop(), JSObject::ReferencesObject(), Heap::ReinitializeJSReceiver(), Context::RemoveOptimizedFunction(), Deoptimizer::ReplaceCodeForRelatedFunctions(), Isolate::ReportFailedAccessCheck(), Script::Run(), v8::internal::RUNTIME_FUNCTION(), JSFunction::set_initial_map_and_cache_transitions(), JavaScriptFrame::Summarize(), TEST(), StringDictionary::TransformPropertiesToFastFor(), JavaScriptFrame::unchecked_code(), Deoptimizer::VisitAllOptimizedFunctionsForContext(), and StaticMarkingVisitor< StaticVisitor >::VisitJSFunction().
|
inline |
Definition at line 4340 of file objects-inl.h.
References Code::cast().
Referenced by OptimizedFrame::GetDeoptimizationData(), JSFunction::MarkForLazyRecompilation(), JSFunction::MarkForParallelRecompilation(), StaticMarkingVisitor< StaticVisitor >::MarkInlinedFunctionsCode(), StringStream::PrintFunction(), v8::internal::RUNTIME_FUNCTION(), and TEST().
|
static |
Definition at line 7643 of file objects.cc.
References ASSERT.
Referenced by JSFunction::EnsureCompiled(), and v8::internal::RUNTIME_FUNCTION().
|
static |
Definition at line 7659 of file objects.cc.
References CompilationInfo::SetOptimizing().
Referenced by v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 4379 of file objects-inl.h.
References Context::cast(), and READ_FIELD.
Referenced by Heap::AllocateFunctionPrototype(), Context::native_context(), StringStream::PrintSecurityTokenIfChanged(), and JSFunction::RemovePrototype().
|
static |
Definition at line 7668 of file objects.cc.
References JSFunction::CompileLazy().
Referenced by v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 4506 of file objects-inl.h.
References ASSERT.
Referenced by v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 4451 of file objects-inl.h.
Referenced by Heap::AllocateFunctionPrototype(), Heap::AllocateGlobalObject(), Heap::AllocateInitialMap(), Heap::AllocateJSObject(), Heap::ReinitializeJSGlobalProxy(), and JSFunction::SetInstancePrototype().
|
inline |
Definition at line 4456 of file objects-inl.h.
Referenced by Heap::AllocateInitialMap().
|
inline |
Definition at line 4461 of file objects-inl.h.
References Map::has_non_instance_prototype(), and HeapObject::map().
|
inline |
|
inline |
Definition at line 4466 of file objects-inl.h.
References ASSERT.
Referenced by Heap::AllocateInitialMap().
|
inline |
Definition at line 4489 of file objects-inl.h.
References Builtins::builtin(), Isolate::builtins(), v8::internal::code(), and HeapObject::GetIsolate().
Referenced by JSFunction::MarkForLazyRecompilation(), JSFunction::MarkForParallelRecompilation(), and v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 4302 of file objects-inl.h.
Referenced by JSFunction::IsInlineable(), and v8::internal::RUNTIME_FUNCTION().
bool IsInlineable | ( | ) |
Definition at line 7674 of file objects.cc.
References JSFunction::IsBuiltin(), Code::kind(), and Code::optimizable().
|
inline |
Definition at line 4334 of file objects-inl.h.
References Builtins::builtin(), Isolate::builtins(), v8::internal::code(), and HeapObject::GetIsolate().
|
inline |
Definition at line 4323 of file objects-inl.h.
References Builtins::builtin(), Isolate::builtins(), v8::internal::code(), and HeapObject::GetIsolate().
|
inline |
Definition at line 4328 of file objects-inl.h.
References Builtins::builtin(), Isolate::builtins(), v8::internal::code(), and HeapObject::GetIsolate().
|
inline |
Definition at line 4318 of file objects-inl.h.
References v8::internal::code().
|
inline |
Definition at line 4313 of file objects-inl.h.
References v8::internal::code().
Referenced by JSFunction::MarkForLazyRecompilation(), and JSFunction::MarkForParallelRecompilation().
void JSFunctionIterateBody | ( | int | object_size, |
ObjectVisitor * | v | ||
) |
Definition at line 7526 of file objects.cc.
References HeapObject::address(), HeapObject::IteratePointers(), JSFunction::kCodeEntryOffset, and JSObject::kPropertiesOffset.
|
inline |
Definition at line 4494 of file objects-inl.h.
References ASSERT.
void MarkForLazyRecompilation | ( | ) |
Definition at line 7535 of file objects.cc.
References v8::internal::allows_lazy_compilation, ASSERT, Builtins::builtin(), Isolate::builtins(), JSFunction::code(), HeapObject::GetIsolate(), JSFunction::is_compiled(), JSFunction::IsOptimized(), and JSFunction::ReplaceCode().
void MarkForParallelRecompilation | ( | ) |
Definition at line 7543 of file objects.cc.
References v8::internal::allows_lazy_compilation, ASSERT, Builtins::builtin(), Isolate::builtins(), JSFunction::code(), HeapObject::GetIsolate(), JSFunction::is_compiled(), JSFunction::IsOptimized(), and JSFunction::ReplaceCode().
|
static |
Definition at line 7794 of file objects.cc.
References Context::cast(), FixedArray::get(), and JSFunction::kLiteralNativeContextIndex.
Referenced by Runtime::CreateArrayLiteralBoilerplate(), and v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 4307 of file objects-inl.h.
References SharedFunctionInfo::kDontAdaptArgumentsSentinel.
|
inline |
Definition at line 4522 of file objects-inl.h.
References ASSERT.
|
inline |
Definition at line 6153 of file objects.h.
Referenced by JavaScriptFrame::PrintTop().
void PrintName | ( | FILE * | out | ) |
Definition at line 7788 of file objects.cc.
References v8::internal::PrintF().
|
inline |
Definition at line 4475 of file objects-inl.h.
References ASSERT, and HeapObject::map().
void RemovePrototype | ( | ) |
Definition at line 7766 of file objects.cc.
References ASSERT, JSFunction::context(), HeapObject::GetHeap(), HeapObject::map(), Context::native_context(), and HeapObject::set_map().
|
inline |
Definition at line 4362 of file objects-inl.h.
References Code::kind().
Referenced by JSFunction::MarkForLazyRecompilation(), JSFunction::MarkForParallelRecompilation(), and v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 4351 of file objects-inl.h.
References ASSERT, Code::entry(), HeapObject::GetHeap(), HEAP, Heap::incremental_marking(), HeapObject::RawField(), and WRITE_INTPTR_FIELD.
Referenced by Deoptimizer::ReplaceCodeForRelatedFunctions().
|
inline |
Definition at line 4395 of file objects-inl.h.
References ASSERT, HeapObject::GetHeap(), WRITE_BARRIER, and WRITE_FIELD.
Referenced by Heap::ReinitializeJSReceiver().
|
inline |
Definition at line 4512 of file objects-inl.h.
References ASSERT, HeapObject::GetHeap(), and HeapObject::map().
|
inline |
Definition at line 4410 of file objects-inl.h.
Referenced by Heap::AllocateJSObject().
|
inline |
Definition at line 4415 of file objects-inl.h.
References Heap::AllocateFixedArrayWithHoles(), Context::ARRAY_FUNCTION_INDEX, ASSERT, JSFunction::cast(), Map::CopyAsElementsKind(), Map::elements_kind(), FixedArray::get(), v8::internal::GetFastElementsKindFromSequenceIndex(), HeapObject::GetHeap(), v8::internal::GetInitialFastElementsKind(), v8::internal::GetSequenceIndexFromFastElementsKind(), v8::internal::INSERT_TRANSITION, v8::internal::kElementsKindCount, v8::internal::kFastElementsKindCount, and FixedArray::set().
Referenced by JSFunction::SetInstancePrototype().
|
inline |
Definition at line 4500 of file objects-inl.h.
References ASSERT.
void SetInstanceClassName | ( | String * | name | ) |
Definition at line 7783 of file objects.cc.
MaybeObject * SetInstancePrototype | ( | Object * | value | ) |
Definition at line 7702 of file objects.cc.
References ASSERT, JSObject::cast(), Map::Copy(), HeapObject::GetHeap(), JSFunction::has_initial_map(), JSFunction::initial_map(), JSObject::OptimizeAsPrototype(), and JSFunction::set_initial_map_and_cache_transitions().
Referenced by JSFunction::SetPrototype().
MaybeObject * SetPrototype | ( | Object * | value | ) |
Definition at line 7735 of file objects.cc.
References ASSERT, Isolate::context(), Map::Copy(), HeapObject::GetHeap(), Heap::isolate(), HeapObject::map(), Context::native_context(), HeapObject::set_map(), Map::set_non_instance_prototype(), JSFunction::SetInstancePrototype(), and JSFunction::should_have_prototype().
|
inline |
Definition at line 4484 of file objects-inl.h.
References Map::function_with_prototype(), and HeapObject::map().
Referenced by JSFunction::SetPrototype().
|
inline |
Definition at line 4345 of file objects-inl.h.
References FIELD_ADDR, and Code::GetObjectFromEntryAddress().
|
inline |
Definition at line 4384 of file objects-inl.h.
References READ_FIELD.
Referenced by StringStream::PrintSecurityTokenIfChanged().
|
inline |
Definition at line 4389 of file objects-inl.h.
References READ_FIELD.
|
static |
Definition at line 6200 of file objects.h.
Referenced by v8::internal::RUNTIME_FUNCTION().
|
static |
Definition at line 6198 of file objects.h.
Referenced by v8::internal::RUNTIME_FUNCTION().
|
static |
Definition at line 6199 of file objects.h.
Referenced by v8::internal::RUNTIME_FUNCTION().
|
static |
Definition at line 6182 of file objects.h.
Referenced by JSFunction::JSFunctionIterateBody(), MarkCompactCollector::MigrateObject(), StaticMarkingVisitor< StaticVisitor >::VisitJSFunctionStrongCode(), and StaticMarkingVisitor< StaticVisitor >::VisitJSFunctionWeakCode().
|
static |
|
static |
Definition at line 6195 of file objects.h.
Referenced by JSFunction::NativeContextFromLiterals(), Factory::NewFunctionFromSharedFunctionInfo(), and v8::internal::RUNTIME_FUNCTION().
|
static |
|
static |
Definition at line 6194 of file objects.h.
Referenced by Factory::NewSharedFunctionInfo().
|
static |
|
static |
Definition at line 6189 of file objects.h.
Referenced by StaticMarkingVisitor< StaticVisitor >::VisitJSFunctionStrongCode(), and StaticMarkingVisitor< StaticVisitor >::VisitJSFunctionWeakCode().
|
static |
Definition at line 6183 of file objects.h.
Referenced by StaticMarkingVisitor< StaticVisitor >::VisitJSFunctionStrongCode(), and StaticMarkingVisitor< StaticVisitor >::VisitJSFunctionWeakCode().
|
static |
|
static |
Definition at line 6191 of file objects.h.
Referenced by Factory::BecomeJSFunction(), and JSObject::GetHeaderSize().