v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <objects.h>
Data Structures | |
class | DeoptCountBits |
class | ICAgeBits |
class | OptReenableTriesBits |
Static Public Member Functions | |
static void | AddToOptimizedCodeMap (Handle< SharedFunctionInfo > shared, Handle< Context > native_context, Handle< Code > code, Handle< FixedArray > literals) |
static bool | CompileLazy (Handle< SharedFunctionInfo > shared, ClearExceptionFlag flag) |
static SharedFunctionInfo * | cast (Object *obj) |
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 | |
Protected Member Functions inherited from HeapObject | |
void | IteratePointers (ObjectVisitor *v, int start, int end) |
void | IteratePointer (ObjectVisitor *v, int offset) |
enum CompilerHints |
|
static |
Definition at line 7583 of file objects.cc.
References ASSERT, ASSERT_EQ, Smi::cast(), FixedArray::cast(), Code::cast(), FACTORY, and SharedFunctionInfo::kEntryLength.
|
inline |
void AttachInitialMap | ( | Map * | map | ) |
Definition at line 8119 of file objects.cc.
References ASSERT_EQ, Map::bit_field2(), Builtins::builtin(), Isolate::builtins(), HeapObject::GetHeap(), Heap::isolate(), Map::kAttachedToSharedFunctionInfo, SharedFunctionInfo::kConstructStubOffset, HeapObject::RawField(), and Map::set_bit_field2().
|
inline |
Referenced by MarkCompactMarkingVisitor::INLINE().
|
inline |
Definition at line 4227 of file objects-inl.h.
References ASSERT, Smi::cast(), and Smi::value().
int CalculateInObjectProperties | ( | ) |
Definition at line 7850 of file objects.cc.
References SharedFunctionInfo::CalculateInstanceSize(), JSObject::kHeaderSize, and v8::internal::kPointerSize.
int CalculateInstanceSize | ( | ) |
Definition at line 7839 of file objects.cc.
References SharedFunctionInfo::expected_nof_properties(), JSObject::kHeaderSize, JSObject::kMaxInstanceSize, and v8::internal::kPointerSize.
Referenced by SharedFunctionInfo::CalculateInObjectProperties().
bool CanGenerateInlineConstructor | ( | Object * | prototype | ) |
Definition at line 7855 of file objects.cc.
References v8::internal::CALLBACKS, JSReceiver::cast(), v8::internal::CONSTANT_FUNCTION, v8::internal::FIELD, HeapObject::GetHeap(), Object::GetPrototype(), SharedFunctionInfo::GetThisPropertyAssignmentName(), v8::internal::HANDLER, SharedFunctionInfo::has_only_simple_this_property_assignments(), v8::internal::INTERCEPTOR, Heap::isolate(), JSReceiver::LocalLookup(), v8::internal::NONEXISTENT, v8::internal::NORMAL, SharedFunctionInfo::this_property_assignments_count(), v8::internal::TRANSITION, and UNREACHABLE.
|
inlinestatic |
Referenced by Script::Compile(), StringSharedKey::HashForObject(), MarkCompactMarkingVisitor::INLINE(), StringSharedKey::IsMatch(), BASE_EMBEDDED< Visitor >::Lookup(), CompilationCacheScript::Lookup(), CompilationCacheEval::Lookup(), Script::Run(), TEST(), MarkCompactMarkingVisitor::ObjectStatsTracker< MarkCompactMarkingVisitor::kVisitSharedFunctionInfo >::Visit(), EnumerateOptimizedFunctionsVisitor::VisitFunction(), and StaticMarkingVisitor< StaticVisitor >::VisitSharedFunctionInfo().
void ClearOptimizedCodeMap | ( | ) |
Definition at line 7578 of file objects.cc.
References Smi::FromInt().
Referenced by Heap::AllocateSharedFunctionInfo().
void ClearThisPropertyAssignmentsInfo | ( | ) |
|
inline |
Definition at line 4233 of file objects-inl.h.
References v8::internal::compiler_hints.
Referenced by StaticMarkingVisitor< StaticVisitor >::IsFlushable().
|
static |
Definition at line 7570 of file objects.cc.
References ASSERT.
|
inline |
void CompleteInobjectSlackTracking | ( | ) |
Definition at line 8170 of file objects.cc.
References ASSERT, ASSERT_EQ, Isolate::builtins(), Map::cast(), SharedFunctionInfo::expected_nof_properties(), HeapObject::GetHeap(), SharedFunctionInfo::IsInobjectSlackTrackingInProgress(), Heap::isolate(), SharedFunctionInfo::set_expected_nof_properties(), Map::TraverseTransitionTree(), and Map::unused_property_fields().
|
inline |
Definition at line 4035 of file objects-inl.h.
References READ_BYTE_FIELD.
Referenced by SharedFunctionInfo::StartInobjectSlackTracking().
|
inline |
String * DebugName | ( | ) |
Definition at line 7814 of file objects.cc.
References String::cast(), and String::length().
Referenced by CpuProfiler::CodeCreateEvent(), Logger::CodeCreateEvent(), SharedFunctionInfo::DisableOptimization(), and Deoptimizer::GetOutputInfo().
|
inline |
Definition at line 4254 of file objects-inl.h.
Referenced by RuntimeProfiler::OptimizeNow().
void DetachInitialMap | ( | ) |
Definition at line 8095 of file objects.cc.
References ASSERT_EQ, Map::bit_field2(), Isolate::builtins(), HeapObject::GetHeap(), Heap::isolate(), Map::kAttachedToSharedFunctionInfo, SharedFunctionInfo::kConstructStubOffset, HeapObject::RawField(), and Map::set_bit_field2().
void DisableOptimization | ( | const char * | reason | ) |
Definition at line 8034 of file objects.cc.
References ASSERT, BUILTIN, v8::internal::code(), SharedFunctionInfo::DebugName(), v8::internal::PrintF(), and ToCString().
|
inline |
Definition at line 4156 of file objects-inl.h.
References ASSERT, BUILTIN, and v8::internal::code().
void EnableDeoptimizationSupport | ( | Code * | recompiled | ) |
Definition at line 8015 of file objects.cc.
References ASSERT, v8::internal::code(), SharedFunctionInfo::has_deoptimization_support(), and Code::set_has_deoptimization_support().
|
inline |
|
inline |
void ForbidInlineConstructor | ( | ) |
Definition at line 7898 of file objects.cc.
References SharedFunctionInfo::compiler_hints(), SharedFunctionInfo::kHasOnlySimpleThisPropertyAssignments, BooleanBit::set(), and SharedFunctionInfo::set_compiler_hints().
|
inline |
|
inline |
|
inline |
Definition at line 4216 of file objects-inl.h.
References ASSERT, and FunctionTemplateInfo::cast().
Definition at line 7827 of file objects.cc.
References Script::cast(), String::cast(), SharedFunctionInfo::end_position(), Isolate::factory(), HeapObject::GetIsolate(), SharedFunctionInfo::HasSourceCode(), SharedFunctionInfo::start_position(), and v8::internal::SubString().
int GetThisPropertyAssignmentArgument | ( | int | index | ) |
Definition at line 7945 of file objects.cc.
References ASSERT, Smi::cast(), FixedArray::cast(), FixedArray::get(), SharedFunctionInfo::IsThisPropertyAssignmentArgument(), and Smi::value().
Object * GetThisPropertyAssignmentConstant | ( | int | index | ) |
Definition at line 7953 of file objects.cc.
References ASSERT, FixedArray::cast(), FixedArray::get(), and SharedFunctionInfo::IsThisPropertyAssignmentArgument().
String * GetThisPropertyAssignmentName | ( | int | index | ) |
Definition at line 7926 of file objects.cc.
References ASSERT, FixedArray::cast(), String::cast(), FixedArray::get(), and SharedFunctionInfo::this_property_assignments_count().
Referenced by SharedFunctionInfo::CanGenerateInlineConstructor().
|
inline |
Definition at line 4282 of file objects-inl.h.
References v8::internal::code(), Code::has_deoptimization_support(), and Code::kind().
Referenced by SharedFunctionInfo::EnableDeoptimizationSupport().
|
inline |
Referenced by SharedFunctionInfo::CanGenerateInlineConstructor().
|
inline |
Definition at line 4222 of file objects-inl.h.
bool HasSourceCode | ( | ) |
Definition at line 7821 of file objects.cc.
Referenced by SharedFunctionInfo::GetSourceCode(), SharedFunctionInfo::SourceCodePrint(), and StringSharedKey::StringSharedHashHelper().
|
inline |
Definition at line 4244 of file objects-inl.h.
Referenced by StaticMarkingVisitor< StaticVisitor >::VisitSharedFunctionInfo().
|
inline |
Definition at line 4264 of file objects-inl.h.
void InstallFromOptimizedCodeMap | ( | JSFunction * | function, |
int | index | ||
) |
Definition at line 7626 of file objects.cc.
References ASSERT, FixedArray::cast(), Code::cast(), FixedArray::get(), and v8::internal::NULL.
|
inline |
Definition at line 4108 of file objects-inl.h.
References v8::internal::compiler_hints, and BooleanBit::get().
Referenced by v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 4205 of file objects-inl.h.
References v8::internal::code().
Referenced by StaticMarkingVisitor< StaticVisitor >::IsFlushable().
|
inline |
|
inline |
Definition at line 4211 of file objects-inl.h.
|
inline |
bool IsThisPropertyAssignmentArgument | ( | int | index | ) |
Definition at line 7936 of file objects.cc.
References ASSERT, Smi::cast(), FixedArray::cast(), FixedArray::get(), SharedFunctionInfo::this_property_assignments_count(), and Smi::value().
Referenced by SharedFunctionInfo::GetThisPropertyAssignmentArgument(), and SharedFunctionInfo::GetThisPropertyAssignmentConstant().
|
inline |
Definition at line 4081 of file objects-inl.h.
References ASSERT, v8::internal::CLASSIC_MODE, v8::internal::compiler_hints, v8::internal::EXTENDED_MODE, BooleanBit::get(), and v8::internal::STRICT_MODE.
Referenced by CompilationCacheTable::PutEval().
|
inline |
Referenced by SharedFunctionInfo::SearchOptimizedCodeMap().
|
inline |
|
inline |
Referenced by SharedFunctionInfo::ResetForNewContext().
|
inline |
Definition at line 4272 of file objects-inl.h.
|
inline |
Definition at line 4075 of file objects-inl.h.
References v8::internal::code().
void ResetForNewContext | ( | int | new_ic_age | ) |
Definition at line 8134 of file objects.cc.
References v8::internal::code(), SharedFunctionInfo::opt_count(), SharedFunctionInfo::set_deopt_count(), SharedFunctionInfo::set_ic_age(), and SharedFunctionInfo::set_opt_count().
Referenced by StaticMarkingVisitor< StaticVisitor >::VisitSharedFunctionInfo().
int SearchOptimizedCodeMap | ( | Context * | native_context | ) |
Definition at line 8194 of file objects.cc.
References ASSERT, FixedArray::cast(), FixedArray::get(), FixedArrayBase::length(), and SharedFunctionInfo::length().
|
inline |
Referenced by Heap::AllocateSharedFunctionInfo().
|
inline |
Definition at line 4238 of file objects-inl.h.
References v8::internal::compiler_hints.
Referenced by StaticMarkingVisitor< StaticVisitor >::IsFlushable().
|
inline |
|
inline |
Definition at line 4040 of file objects-inl.h.
References ASSERT, and WRITE_BYTE_FIELD.
Referenced by SharedFunctionInfo::StartInobjectSlackTracking().
|
inline |
Referenced by Heap::AllocateSharedFunctionInfo().
|
inline |
Definition at line 4259 of file objects-inl.h.
Referenced by SharedFunctionInfo::ResetForNewContext().
|
inline |
Referenced by Heap::AllocateSharedFunctionInfo().
|
inline |
|
inline |
Referenced by Heap::AllocateSharedFunctionInfo().
|
inline |
Referenced by Heap::AllocateSharedFunctionInfo().
|
inline |
Definition at line 4249 of file objects-inl.h.
Referenced by SharedFunctionInfo::ResetForNewContext().
|
inline |
Definition at line 4092 of file objects-inl.h.
References ASSERT, v8::internal::CLASSIC_MODE, v8::internal::compiler_hints, v8::internal::EXTENDED_MODE, and BooleanBit::set().
|
inline |
Referenced by Heap::AllocateSharedFunctionInfo().
|
inline |
Referenced by Heap::AllocateSharedFunctionInfo().
|
inline |
Referenced by Heap::AllocateSharedFunctionInfo(), and SharedFunctionInfo::ResetForNewContext().
|
inline |
Definition at line 4277 of file objects-inl.h.
|
inline |
Definition at line 4167 of file objects-inl.h.
References v8::internal::start_position_and_type.
|
inline |
Referenced by Heap::AllocateSharedFunctionInfo().
|
inline |
Referenced by Heap::AllocateSharedFunctionInfo().
|
inline |
void SetThisPropertyAssignmentsInfo | ( | bool | has_only_simple_this_property_assignments, |
FixedArray * | this_property_assignments | ||
) |
Definition at line 7905 of file objects.cc.
References SharedFunctionInfo::compiler_hints(), SharedFunctionInfo::kHasOnlySimpleThisPropertyAssignments, FixedArrayBase::length(), BooleanBit::set(), SharedFunctionInfo::set_compiler_hints(), and SharedFunctionInfo::set_this_property_assignments_count().
void SourceCodePrint | ( | StringStream * | accumulator, |
int | max_length | ||
) |
Definition at line 7963 of file objects.cc.
References StringStream::Add(), Script::cast(), String::cast(), SharedFunctionInfo::end_position(), SharedFunctionInfo::HasSourceCode(), v8::internal::is_toplevel, String::length(), String::LooksValid(), StringStream::PrintName(), StringStream::Put(), and SharedFunctionInfo::start_position().
Referenced by Deoptimizer::GetOutputInfo(), and JavaScriptFrame::Print().
int SourceSize | ( | ) |
Definition at line 7834 of file objects.cc.
References SharedFunctionInfo::end_position(), and SharedFunctionInfo::start_position().
Referenced by RuntimeProfiler::OptimizeNow().
|
inline |
Definition at line 4162 of file objects-inl.h.
References v8::internal::start_position_and_type.
Referenced by SharedFunctionInfo::GetSourceCode(), SharedFunctionInfo::SourceCodePrint(), and SharedFunctionInfo::SourceSize().
|
inline |
void StartInobjectSlackTracking | ( | Map * | map | ) |
Definition at line 8067 of file objects.cc.
References ASSERT, ASSERT_EQ, Builtins::builtin(), Isolate::builtins(), SharedFunctionInfo::construction_count(), Serializer::enabled(), HeapObject::GetHeap(), SharedFunctionInfo::IsInobjectSlackTrackingInProgress(), Heap::isolate(), SharedFunctionInfo::kGenerousAllocationCount, SharedFunctionInfo::set_construction_count(), and Map::unused_property_fields().
|
inline |
|
inline |
|
inline |
Definition at line 4288 of file objects-inl.h.
References v8::internal::code().
Referenced by RuntimeProfiler::OptimizeNow().
|
inline |
Definition at line 4178 of file objects-inl.h.
References READ_FIELD.
bool VerifyBailoutId | ( | BailoutId | id | ) |
Definition at line 8056 of file objects.cc.
References ASSERT, DeoptimizationOutputData::cast(), v8::internal::code(), Deoptimizer::GetOutputInfo(), and v8::internal::USE().
|
static |
|
static |
|
static |
|
static |
Definition at line 5796 of file objects.h.
Referenced by StaticMarkingVisitor< StaticVisitor >::VisitSharedFunctionInfoWeakCode().
|
static |
|
static |
|
static |
Definition at line 5799 of file objects.h.
Referenced by SharedFunctionInfo::AttachInitialMap(), and SharedFunctionInfo::DetachInitialMap().
|
static |
|
static |
|
static |
Definition at line 5791 of file objects.h.
Referenced by JSFunction::NeedsArgumentsAdaption().
|
static |
|
static |
Definition at line 5403 of file objects.h.
Referenced by SharedFunctionInfo::AddToOptimizedCodeMap().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 5484 of file objects.h.
Referenced by SharedFunctionInfo::StartInobjectSlackTracking().
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 5795 of file objects.h.
Referenced by StaticMarkingVisitor< StaticVisitor >::VisitSharedFunctionInfoWeakCode().
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 5797 of file objects.h.
Referenced by StaticMarkingVisitor< StaticVisitor >::VisitSharedFunctionInfoWeakCode().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |