v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <objects.h>
|
inlinestatic |
Referenced by Context::AddOptimizedFunction(), Heap::AllocateArgumentsObject(), Heap::AllocateFunction(), TypeFeedbackOracle::CanRetainOtherContext(), JSReceiver::class_name(), Context::closure(), Map::constructor_name(), Map::CopyWithPreallocatedFieldDescriptors(), JavaScriptFrame::function(), BASE_EMBEDDED< Visitor >::GetConstantFunction(), BASE_EMBEDDED< Visitor >::GetConstantFunctionFromMap(), V8HeapExplorer::GetConstructorName(), JSObject::GetIndexedInterceptor(), v8::internal::GetKeysInFixedArrayFor(), MessageHandler::GetMessage(), JSObject::GetNamedInterceptor(), Script::GetUnboundScript(), JSObject::IsDirty(), FunctionTemplateInfo::IsTemplateFor(), JSObject::JSObjectShortPrint(), StaticMarkingVisitor< StaticVisitor >::MarkInlinedFunctionsCode(), Isolate::MayIndexedAccess(), Isolate::MayNamedAccess(), Context::native_context(), Factory::NewError(), StringStream::PrintFunction(), StringStream::PrintSecurityTokenIfChanged(), JSObject::ReferencesObject(), Heap::ReinitializeJSReceiver(), Context::RemoveOptimizedFunction(), Isolate::ReportFailedAccessCheck(), Script::Run(), v8::internal::RUNTIME_FUNCTION(), JSFunction::SetInstancePrototype(), TEST(), and BinaryOpIC::Transition().
|
inline |
Definition at line 5521 of file objects-inl.h.
References Code::cast(), FIELD_ADDR, Code::GetObjectFromEntryAddress(), and JSFunction::kCodeEntryOffset.
Referenced by OptimizedFrame::GetDeoptimizationData(), JSFunction::is_compiled(), JSFunction::IsInOptimizationQueue(), JSFunction::IsMarkedForConcurrentOptimization(), JSFunction::IsMarkedForOptimization(), JSFunction::IsOptimizable(), JSFunction::IsOptimized(), JSFunction::MarkForConcurrentOptimization(), JSFunction::MarkForOptimization(), StaticMarkingVisitor< StaticVisitor >::MarkInlinedFunctionsCode(), JSFunction::MarkInOptimizationQueue(), StringStream::PrintFunction(), and JSFunction::ReplaceCode().
|
inline |
Definition at line 5568 of file objects-inl.h.
References Context::cast(), JSFunction::kContextOffset, and READ_FIELD.
Referenced by JSFunction::IsBuiltin(), Context::native_context(), StringStream::PrintSecurityTokenIfChanged(), JSFunction::RemovePrototype(), and JSFunction::ReplaceCode().
|
static |
Definition at line 9792 of file objects.cc.
References ASSERT, Isolate::factory(), v8::internal::handle(), v8::internal::JS_GENERATOR_OBJECT_TYPE, v8::internal::JS_OBJECT_TYPE, JSGeneratorObject::kSize, Factory::NewFunctionPrototype(), Factory::NewMap(), and JSFunction::prototype().
Referenced by Factory::NewJSGeneratorObject(), Factory::NewJSObject(), and Factory::NewJSObjectWithMemento().
|
inline |
Definition at line 5649 of file objects-inl.h.
References ASSERT.
Referenced by v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 5593 of file objects-inl.h.
Referenced by Heap::AllocateJSObject(), JSFunction::has_instance_prototype(), JSFunction::instance_prototype(), and Heap::ReinitializeJSGlobalProxy().
|
inline |
Definition at line 5598 of file objects-inl.h.
References JSFunction::has_initial_map().
Referenced by JSFunction::has_prototype(), and JSFunction::instance_prototype().
|
inline |
Definition at line 5603 of file objects-inl.h.
References JSFunction::has_instance_prototype(), Map::has_non_instance_prototype(), and HeapObject::map().
Referenced by JSFunction::prototype().
|
inline |
|
inline |
Definition at line 5608 of file objects-inl.h.
References ASSERT, JSFunction::has_initial_map(), JSFunction::has_instance_prototype(), and JSFunction::initial_map().
Referenced by IC::GetCodeCacheHolder(), and JSFunction::prototype().
|
inline |
Definition at line 5631 of file objects-inl.h.
References Builtins::builtin(), Isolate::builtins(), JSFunction::code(), and HeapObject::GetIsolate().
Referenced by JSFunction::MarkForConcurrentOptimization(), JSFunction::MarkForOptimization(), and v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 5482 of file objects-inl.h.
References JSFunction::context(), and Context::global_object().
Referenced by v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 5515 of file objects-inl.h.
References Builtins::builtin(), Isolate::builtins(), JSFunction::code(), and HeapObject::GetIsolate().
|
inline |
Definition at line 5509 of file objects-inl.h.
References Builtins::builtin(), Isolate::builtins(), JSFunction::code(), and HeapObject::GetIsolate().
Referenced by JSFunction::MarkInOptimizationQueue().
|
inline |
Definition at line 5503 of file objects-inl.h.
References Builtins::builtin(), Isolate::builtins(), JSFunction::code(), and HeapObject::GetIsolate().
|
inline |
Definition at line 5498 of file objects-inl.h.
References JSFunction::code(), Code::kind(), and Code::optimizable().
|
inline |
Definition at line 5493 of file objects-inl.h.
References JSFunction::code(), and Code::kind().
Referenced by JSFunction::MarkForConcurrentOptimization(), JSFunction::MarkForOptimization(), JSFunction::MarkInOptimizationQueue(), and JSFunction::ReplaceCode().
void JSFunctionIterateBody | ( | int | object_size, |
ObjectVisitor * | v | ||
) |
Definition at line 9434 of file objects.cc.
References HeapObject::address(), HeapObject::IteratePointers(), JSFunction::kCodeEntryOffset, and JSObject::kPropertiesOffset.
|
inline |
Definition at line 5637 of file objects-inl.h.
References ASSERT.
Referenced by JSFunction::NumberOfLiterals().
void MarkForConcurrentOptimization | ( | ) |
Definition at line 9455 of file objects.cc.
References v8::internal::allows_lazy_compilation, ASSERT, JSFunction::code(), HeapObject::GetIsolate(), JSFunction::is_compiled(), JSFunction::IsOptimized(), v8::internal::PrintF(), JSFunction::PrintName(), and JSFunction::set_code_no_write_barrier().
void MarkForOptimization | ( | ) |
Definition at line 9443 of file objects.cc.
References v8::internal::allows_lazy_compilation, ASSERT, JSFunction::code(), HeapObject::GetIsolate(), JSFunction::is_compiled(), JSFunction::IsOptimized(), and JSFunction::set_code_no_write_barrier().
void MarkInOptimizationQueue | ( | ) |
Definition at line 9472 of file objects.cc.
References v8::internal::allows_lazy_compilation, ASSERT, JSFunction::code(), HeapObject::GetIsolate(), JSFunction::IsMarkedForConcurrentOptimization(), JSFunction::IsOptimized(), v8::internal::PrintF(), JSFunction::PrintName(), and JSFunction::set_code_no_write_barrier().
|
static |
Definition at line 9845 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 5487 of file objects-inl.h.
References SharedFunctionInfo::kDontAdaptArgumentsSentinel.
|
inline |
Definition at line 5665 of file objects-inl.h.
References ASSERT, FixedArrayBase::length(), and JSFunction::literals().
bool PassesFilter | ( | const char * | raw_filter | ) |
Definition at line 9857 of file objects.cc.
References v8::internal::CStrVector(), String::IsUtf8EqualTo(), Vector< T >::length(), String::length(), and Vector< T >::SubVector().
void PrintName | ( | FILE * | out = stdout | ) |
Definition at line 9839 of file objects.cc.
References SmartPointerBase< Deallocator, T >::get(), and v8::internal::PrintF().
Referenced by JSFunction::MarkForConcurrentOptimization(), JSFunction::MarkInOptimizationQueue(), and JavaScriptFrame::PrintTop().
|
inline |
Definition at line 5617 of file objects-inl.h.
References ASSERT, JSFunction::has_prototype(), JSFunction::instance_prototype(), and HeapObject::map().
Referenced by JSFunction::EnsureHasInitialMap().
void RemovePrototype | ( | ) |
Definition at line 9775 of file objects.cc.
References ASSERT, JSFunction::context(), HeapObject::GetHeap(), HeapObject::map(), Context::native_context(), HeapObject::set_map(), and v8::internal::SLOPPY.
|
inline |
Definition at line 5545 of file objects-inl.h.
References Context::AddOptimizedFunction(), JSFunction::code(), JSFunction::context(), JSFunction::IsOptimized(), Code::kind(), Context::native_context(), Context::RemoveOptimizedFunction(), and JSFunction::set_code().
|
inline |
Definition at line 5527 of file objects-inl.h.
References ASSERT, Code::entry(), HeapObject::GetHeap(), Heap::incremental_marking(), JSFunction::kCodeEntryOffset, HeapObject::RawField(), and WRITE_INTPTR_FIELD.
Referenced by JSFunction::ReplaceCode().
|
inline |
Definition at line 5538 of file objects-inl.h.
References ASSERT, Code::entry(), HeapObject::GetHeap(), JSFunction::kCodeEntryOffset, and WRITE_INTPTR_FIELD.
Referenced by JSFunction::MarkForConcurrentOptimization(), JSFunction::MarkForOptimization(), and JSFunction::MarkInOptimizationQueue().
|
inline |
Definition at line 5573 of file objects-inl.h.
References ASSERT, HeapObject::GetHeap(), JSFunction::kContextOffset, WRITE_BARRIER, and WRITE_FIELD.
Referenced by Heap::ReinitializeJSReceiver().
|
inline |
Definition at line 5655 of file objects-inl.h.
References ASSERT, HeapObject::GetHeap(), and HeapObject::map().
|
inline |
Definition at line 5588 of file objects-inl.h.
|
inline |
Definition at line 5643 of file objects-inl.h.
References ASSERT.
void SetInstanceClassName | ( | String * | name | ) |
Definition at line 9834 of file objects.cc.
|
static |
Definition at line 9702 of file objects.cc.
References Context::ARRAY_FUNCTION_INDEX, ASSERT, JSFunction::cast(), Map::Copy(), FixedArray::get(), v8::internal::handle(), Context::native_context(), and JSObject::OptimizeAsPrototype().
Referenced by JSFunction::SetPrototype().
|
static |
Definition at line 9745 of file objects.cc.
References ASSERT, Isolate::context(), Map::Copy(), v8::internal::handle(), JSObject::MigrateToMap(), Context::native_context(), and JSFunction::SetInstancePrototype().
Referenced by Factory::NewFunctionWithPrototype().
|
inline |
Definition at line 5626 of file objects-inl.h.
References Map::function_with_prototype(), and HeapObject::map().
|
static |
Definition at line 7536 of file objects.h.
Referenced by v8::internal::RUNTIME_FUNCTION().
|
static |
Definition at line 7534 of file objects.h.
Referenced by Function::GetBoundFunction(), and v8::internal::RUNTIME_FUNCTION().
|
static |
Definition at line 7535 of file objects.h.
Referenced by v8::internal::RUNTIME_FUNCTION().
|
static |
Definition at line 7518 of file objects.h.
Referenced by JSFunction::code(), V8_FINAL< kOperandKind, kNumCachedOperands >::ForCodeEntryPointer(), JSFunction::JSFunctionIterateBody(), MarkCompactCollector::MigrateObject(), JSFunction::set_code(), JSFunction::set_code_no_write_barrier(), StaticMarkingVisitor< StaticVisitor >::VisitJSFunctionStrongCode(), and StaticMarkingVisitor< StaticVisitor >::VisitJSFunctionWeakCode().
|
static |
Definition at line 7523 of file objects.h.
Referenced by JSFunction::context(), V8_FINAL< kOperandKind, kNumCachedOperands >::ForFunctionContextPointer(), and JSFunction::set_context().
|
static |
Definition at line 7531 of file objects.h.
Referenced by JSFunction::NativeContextFromLiterals(), Factory::NewFunctionFromSharedFunctionInfo(), and v8::internal::RUNTIME_FUNCTION().
|
static |
Definition at line 7524 of file objects.h.
Referenced by V8_FINAL< kOperandKind, kNumCachedOperands >::ForLiteralsPointer().
|
static |
Definition at line 7530 of file objects.h.
Referenced by ParserBase< Traits >::BASE_EMBEDDED::materialized_literal_count(), and Factory::NewSharedFunctionInfo().
|
static |
Definition at line 7526 of file objects.h.
Referenced by V8_FINAL< kOperandKind, kNumCachedOperands >::ForNextFunctionLinkPointer(), and WeakListVisitor< JSFunction >::WeakNextOffset().
|
static |
Definition at line 7525 of file objects.h.
Referenced by StaticMarkingVisitor< StaticVisitor >::VisitJSFunctionStrongCode(), and StaticMarkingVisitor< StaticVisitor >::VisitJSFunctionWeakCode().
|
static |
Definition at line 7519 of file objects.h.
Referenced by V8_FINAL< kOperandKind, kNumCachedOperands >::ForPrototypeOrInitialMap(), StaticMarkingVisitor< StaticVisitor >::VisitJSFunctionStrongCode(), and StaticMarkingVisitor< StaticVisitor >::VisitJSFunctionWeakCode().
|
static |
Definition at line 7521 of file objects.h.
Referenced by V8_FINAL< kOperandKind, kNumCachedOperands >::ForSharedFunctionInfoPointer().
|
static |
Definition at line 7527 of file objects.h.
Referenced by Factory::BecomeJSFunction(), CodeStubGraphBuilder< Stub >::BuildCodeStub(), and JSObject::GetHeaderSize().