5 #ifndef V8_ALLOCATION_TRACKER_H_
6 #define V8_ALLOCATION_TRACKER_H_
15 class AllocationTraceTree;
29 unsigned id()
const {
return id_; }
80 typedef std::map<Address, RangeStack>
RangeMap;
void MoveObject(Address from, Address to, int size)
void AddRange(Address addr, int size, unsigned node_id)
void RemoveRange(Address start, Address end)
unsigned GetTraceNodeId(Address addr)
std::map< Address, RangeStack > RangeMap
AllocationTraceTree * tree_
DISALLOW_COPY_AND_ASSIGN(AllocationTraceNode)
unsigned function_info_index_
AllocationTraceNode * FindOrAddChild(unsigned function_info_index)
unsigned allocation_size() const
unsigned allocation_count() const
Vector< AllocationTraceNode * > children() const
void AddAllocation(unsigned size)
unsigned allocation_count_
AllocationTraceNode(AllocationTraceTree *tree, unsigned function_info_index)
void Print(int indent, AllocationTracker *tracker)
unsigned function_info_index() const
List< AllocationTraceNode * > children_
AllocationTraceNode * FindChild(unsigned function_info_index)
void Print(AllocationTracker *tracker)
AllocationTraceNode root_
DISALLOW_COPY_AND_ASSIGN(AllocationTraceTree)
AllocationTraceNode * AddPathFromEnd(const Vector< unsigned > &path)
AllocationTraceNode * root()
static void HandleWeakScript(const v8::WeakCallbackData< v8::Value, void > &data)
UnresolvedLocation(Script *script, int start, FunctionInfo *info)
DISALLOW_COPY_AND_ASSIGN(AllocationTracker)
void PrepareForSerialization()
unsigned info_index_for_other_state_
unsigned AddFunctionInfo(SharedFunctionInfo *info, SnapshotObjectId id)
AddressToTraceMap address_to_trace_
unsigned functionInfoIndexForVMState(StateTag state)
HashMap id_to_function_info_index_
unsigned allocation_trace_buffer_[kMaxAllocationTraceLength]
const List< FunctionInfo * > & function_info_list() const
AllocationTraceTree trace_tree_
AllocationTraceTree * trace_tree()
List< UnresolvedLocation * > unresolved_locations_
static void DeleteFunctionInfo(FunctionInfo **info)
static const int kMaxAllocationTraceLength
AddressToTraceMap * address_to_trace()
List< FunctionInfo * > function_info_list_
AllocationTracker(HeapObjectsMap *ids, StringsStorage *names)
static void DeleteUnresolvedLocation(UnresolvedLocation **location)
void AllocationEvent(Address addr, int size)
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS 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 enable alignment of csp to bytes on platforms which prefer the register to always be expose gc extension under the specified name show built in functions in stack traces use random jit cookie to mask large constants minimum length for automatic enable preparsing CPU profiler sampling interval in microseconds trace out of bounds accesses to external arrays default size of stack region v8 is allowed to maximum length of function source code printed in a stack trace min size of a semi the new space consists of two semi spaces print one trace line following each garbage collection do not print trace line after scavenger collection print cumulative GC statistics in only print modified registers Trace simulator debug messages Implied by trace sim abort randomize hashes to avoid predictable hash Fixed seed to use to hash property Print the time it takes to deserialize the snapshot A filename with extra code to be included in the A file to write the raw snapshot bytes to(mksnapshot only)") DEFINE_STRING(raw_context_file
enable harmony numeric enable harmony object literal extensions Optimize object size
Debugger support for the V8 JavaScript engine.
uint32_t SnapshotObjectId
RangeStack(Address start, unsigned node_id)
SnapshotObjectId function_id