v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
heap-snapshot-generator.cc File Reference
#include "v8.h"
#include "heap-snapshot-generator-inl.h"
#include "allocation-tracker.h"
#include "code-stubs.h"
#include "heap-profiler.h"
#include "debug.h"
#include "types.h"
#include "v8conversions.h"
Include dependency graph for heap-snapshot-generator.cc:

Go to the source code of this file.

Data Structures

class  FindEntryById
 
class  SnapshotFiller
 
class  GcSubrootsEnumerator
 
class  IndexedReferencesExtractor
 
class  JSArrayBufferDataEntryAllocator
 
class  RootsReferencesExtractor
 
class  GlobalObjectsEnumerator
 
class  GlobalHandlesExtractor
 
class  BasicHeapEntriesAllocator
 
class  NativeGroupRetainedObjectInfo
 
struct  MaxDecimalDigitsIn< bytes >
 
struct  MaxDecimalDigitsIn< 4 >
 
struct  MaxDecimalDigitsIn< 8 >
 
class  OutputStreamWriter
 

Namespaces

 v8
 
 v8::internal
 

Macros

#define MAKE_STRING_MAP_CASE(instance_type, size, name, Name)   case instance_type: return "system / Map (" #Name ")";
 
#define MAKE_STRUCT_CASE(NAME, Name, name)   case NAME##_TYPE: return "system / "#Name;
 
#define EXTRACT_CONTEXT_FIELD(index, type, name)
 
#define NAME_ENTRY(name)   strong_gc_subroot_names_.SetTag(heap_->name(), #name);
 
#define ROOT_NAME(type, name, camel_name)   NAME_ENTRY(name)
 
#define STRUCT_MAP_NAME(NAME, Name, name)   NAME_ENTRY(name##_map)
 
#define STRING_NAME(name, str)   NAME_ENTRY(name)
 
#define JSON_A(s)   "[" s "]"
 
#define JSON_O(s)   "{" s "}"
 
#define JSON_S(s)   "\"" s "\""
 

Macro Definition Documentation

#define EXTRACT_CONTEXT_FIELD (   index,
  type,
  name 
)
Value:
if (Context::index < Context::FIRST_WEAK_SLOT || \
Context::index == Context::MAP_CACHE_INDEX) { \
SetInternalReference(context, entry, #name, context->get(Context::index), \
FixedArray::OffsetOfElementAt(Context::index)); \
} else { \
SetWeakReference(context, entry, #name, context->get(Context::index), \
FixedArray::OffsetOfElementAt(Context::index)); \
}
enable upcoming ES6 features enable harmony block scoping enable harmony enable harmony proxies enable harmony generators enable harmony numeric enable harmony string enable harmony math functions harmony_scoping harmony_symbols harmony_collections harmony_iteration harmony_strings harmony_scoping harmony_maths tracks arrays with only smi values Optimize object Array DOM strings and string pretenure call new trace pretenuring decisions of HAllocate instructions track fields with only smi values track fields with heap values track_fields track_fields Enables optimizations which favor memory size over execution speed use string slices optimization filter maximum number of GVN fix point iterations use function inlining use allocation folding eliminate write barriers targeting allocations in optimized code maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining crankshaft harvests type feedback from stub cache trace check elimination phase hydrogen tracing filter trace hydrogen to given file name trace inlining decisions trace store elimination trace all use positions trace global value numbering trace hydrogen escape analysis trace the tracking of allocation sites trace map generalization environment for every instruction deoptimize every n garbage collections put a break point before deoptimizing deoptimize uncommon cases use on stack replacement trace array bounds check elimination perform array index dehoisting use load elimination use store elimination use constant folding eliminate unreachable code number of stress runs when picking a function to watch for shared function not JSFunction itself flushes the cache of optimized code for closures on every GC functions with arguments object maximum number of escape analysis fix point iterations allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms concurrent on stack replacement do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes number of stack frames inspected by the profiler percentage of ICs that must have type info to allow optimization extra verbose compilation tracing generate extra emit comments in code disassembly enable use of SSE3 instructions if available enable use of CMOV instruction if available enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long expose natives in global object expose freeBuffer extension expose gc extension under the specified name expose externalize string extension number of stack frames to capture disable builtin natives files print name of functions for which code is generated use random jit cookie to mask large constants trace lazy optimization use adaptive optimizations always try to OSR functions trace optimize function deoptimization minimum length for automatic enable preparsing maximum number of optimization attempts before giving up cache prototype transitions trace debugging JSON request response trace out of bounds accesses to external arrays trace_js_array_abuse automatically set the debug break flag when debugger commands are in the queue abort by crashing maximum length of function source code printed in a stack trace max size of the new max size of the old max size of executable always perform global GCs print one trace line following each garbage collection do not print trace line after scavenger collection print statistics of the maximum memory committed for the heap in name
#define JSON_A (   s)    "[" s "]"
#define JSON_O (   s)    "{" s "}"
#define JSON_S (   s)    "\"" s "\""
#define MAKE_STRING_MAP_CASE (   instance_type,
  size,
  name,
  Name 
)    case instance_type: return "system / Map (" #Name ")";
#define MAKE_STRUCT_CASE (   NAME,
  Name,
  name 
)    case NAME##_TYPE: return "system / "#Name;
#define NAME_ENTRY (   name)    strong_gc_subroot_names_.SetTag(heap_->name(), #name);
#define ROOT_NAME (   type,
  name,
  camel_name 
)    NAME_ENTRY(name)
#define STRING_NAME (   name,
  str 
)    NAME_ENTRY(name)
#define STRUCT_MAP_NAME (   NAME,
  Name,
  name 
)    NAME_ENTRY(name##_map)

Variable Documentation

int expected_size

Definition at line 534 of file heap-snapshot-generator.cc.

HeapObject* obj

Definition at line 533 of file heap-snapshot-generator.cc.

Referenced by StringStream::Add(), Dictionary< Shape, Key >::Add(), V8::AddMessageListener(), HashTable< Shape, Key >::Allocate(), Dictionary< Shape, Key >::Allocate(), Heap::AllocateJSObjectFromMap(), Heap::AllocateUninitializedFixedArray(), v8::internal::ArrayConstructInitializeElements(), CodeCacheHashTableKey::AsObject(), PolymorphicCodeCacheHashTableKey::AsObject(), StringSharedKey::AsObject(), Dictionary< Shape, Key >::AtPut(), HGraphBuilder::BuildArrayBufferViewInitialization(), HGraphBuilder::BuildCheckHeapObject(), HGraphBuilder::BuildCheckMap(), Object::CallAsFunction(), Failure::cast(), HashTable< Shape, Key >::cast(), Dictionary< NameDictionaryShape, Name * >::cast(), NameDictionary::cast(), SeededNumberDictionary::cast(), UnseededNumberDictionary::cast(), ObjectHashSet::cast(), ObjectHashTable::cast(), WeakHashTable::cast(), JSGeneratorObject::cast(), JSModule::cast(), JSValue::cast(), JSDate::cast(), JSMessageObject::cast(), MarkCompactCollector::ClearMarkbits(), Heap::CopyAndTenureFixedCOWArray(), Heap::CopyConstantPoolArrayWithMap(), Heap::CopyFixedArrayWithMap(), Heap::CopyFixedDoubleArrayWithMap(), FixedArray::CopySize(), Factory::CreateApiFunction(), Heap::CreateApiObjects(), FastElementsAccessor< FastPackedSmiElementsAccessor, ElementsKindTraits< FAST_SMI_ELEMENTS >, kPointerSize >::Delete(), TypedElementsAccessor< Kind >::Delete(), DictionaryElementsAccessor::Delete(), SloppyArgumentsElementsAccessor::Delete(), v8::internal::DeleteNativeObjectAt(), Heap::DoScavengeObject(), HashTable< Shape, Key >::EnsureCapacity(), V8HeapExplorer::EstimateObjectsCount(), HeapProfiler::FindHeapObjectById(), PagedSpace::FindObject(), HeapObjectsMap::FindUntrackedObjects(), InnerPointerToCodeCache::GcSafeFindCodeForInnerPointer(), Dictionary< Shape, Key >::GenerateNewEnumerationIndices(), Object::GetAlignedPointerFromInternalField(), String::GetExternalStringResource(), String::GetExternalStringResourceBase(), Internals::GetInstanceType(), Object::GetInternalField(), Internals::GetNodeFlag(), Internals::GetNodeState(), JSObject::GetPropertyAttributeWithFailedAccessCheck(), Handle< T >::Handle(), StaticNewSpaceVisitor< NewSpaceScavenger >::INLINE(), StaticMarkingVisitor< MarkCompactMarkingVisitor >::INLINE(), Value::IntegerValue(), V8_FINAL< kOperandKind, kNumCachedOperands >::LLoadKeyedGeneric(), Logger::LogAccessorCallbacks(), Logger::LogCodeObjects(), Logger::LogRuntime(), StringTable::LookupKey(), V8_FINAL< kOperandKind, kNumCachedOperands >::LStoreKeyed(), V8_FINAL< kOperandKind, kNumCachedOperands >::LStoreKeyedGeneric(), V8_FINAL< kOperandKind, kNumCachedOperands >::LStoreNamedField(), v8::NewTypedArray(), Value::NumberValue(), MarkCompactMarkingVisitor::ObjectStatsVisitBase(), Heap::PrepareForCompare(), JSObject::PrepareSlowElementsForSort(), StringStream::PrintSecurityTokenIfChanged(), Isolate::PushToPartialSnapshotCache(), MapCache::Put(), WeakHashTable::Put(), CodeCacheHashTable::Put(), PolymorphicCodeCacheHashTable::Put(), CompilationCacheTable::PutEval(), CompilationCacheTable::PutRegExp(), JSObject::ReferencesObject(), v8::internal::RUNTIME_FUNCTION(), TypedElementsAccessor< Kind >::SetLengthImpl(), SloppyArgumentsElementsAccessor::SetLengthImpl(), DictionaryElementsAccessor::SetLengthWithoutNormalize(), PersistentBase< T >::SetWrapperClassId(), HashTable< Shape, Key >::Shrink(), TryCatch::StackTrace(), TEST(), THREADED_TEST(), v8::ToApiHandle(), Value::ToBoolean(), Value::ToDetailString(), Value::ToInt32(), Value::ToInteger(), Value::ToNumber(), Value::ToObject(), Value::ToString(), Value::ToUint32(), NameDictionary::TransformPropertiesToFastFor(), HeapObjectsMap::UpdateHeapObjectsMap(), IncrementalMarking::UpdateMarkingDequeAfterScavenge(), Internals::UpdateNodeFlag(), Internals::UpdateNodeState(), HOptimizedGraphBuilder::VisitDelete(), SharedFunctionInfoMarkingVisitor::VisitPointer(), and PersistentBase< T >::WrapperClassId().