V8 Project
v8::internal::compiler::PhaseStats Class Reference
+ Collaboration diagram for v8::internal::compiler::PhaseStats:

Public Types

enum  PhaseKind { CREATE_GRAPH , OPTIMIZATION , CODEGEN }
 

Public Member Functions

 PhaseStats (CompilationInfo *info, PhaseKind kind, const char *name)
 
 ~PhaseStats ()
 

Private Attributes

CompilationInfoinfo_
 
PhaseKind kind_
 
const char * name_
 
size_t size_
 
base::ElapsedTimer timer_
 

Detailed Description

Definition at line 38 of file pipeline.cc.

Member Enumeration Documentation

◆ PhaseKind

Constructor & Destructor Documentation

◆ PhaseStats()

v8::internal::compiler::PhaseStats::PhaseStats ( CompilationInfo info,
PhaseKind  kind,
const char *  name 
)
inline

Definition at line 42 of file pipeline.cc.

43  : info_(info),
44  kind_(kind),
45  name_(name),
46  size_(info->zone()->allocation_size()) {
47  if (FLAG_turbo_stats) {
48  timer_.Start();
49  }
50  }
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 name

References timer_.

◆ ~PhaseStats()

v8::internal::compiler::PhaseStats::~PhaseStats ( )
inline

Definition at line 52 of file pipeline.cc.

52  {
53  if (FLAG_turbo_stats) {
54  base::TimeDelta delta = timer_.Elapsed();
55  size_t bytes = info_->zone()->allocation_size() - size_;
56  HStatistics* stats = info_->isolate()->GetTStatistics();
57  stats->SaveTiming(name_, delta, static_cast<int>(bytes));
58 
59  switch (kind_) {
60  case CREATE_GRAPH:
61  stats->IncrementCreateGraph(delta);
62  break;
63  case OPTIMIZATION:
64  stats->IncrementOptimizeGraph(delta);
65  break;
66  case CODEGEN:
67  stats->IncrementGenerateCode(delta);
68  break;
69  }
70  }
71  }
Isolate * isolate() const
Definition: compiler.h:96
HStatistics * GetTStatistics()
Definition: isolate.cc:2142
unsigned allocation_size() const
Definition: zone.h:66

References v8::internal::Zone::allocation_size(), CODEGEN, CREATE_GRAPH, v8::internal::Isolate::GetTStatistics(), info_, v8::internal::CompilationInfo::isolate(), kind_, name_, OPTIMIZATION, size_, timer_, and v8::internal::CompilationInfo::zone().

+ Here is the call graph for this function:

Member Data Documentation

◆ info_

CompilationInfo* v8::internal::compiler::PhaseStats::info_
private

Definition at line 74 of file pipeline.cc.

Referenced by ~PhaseStats().

◆ kind_

PhaseKind v8::internal::compiler::PhaseStats::kind_
private

Definition at line 75 of file pipeline.cc.

Referenced by ~PhaseStats().

◆ name_

const char* v8::internal::compiler::PhaseStats::name_
private

Definition at line 76 of file pipeline.cc.

Referenced by ~PhaseStats().

◆ size_

size_t v8::internal::compiler::PhaseStats::size_
private

Definition at line 77 of file pipeline.cc.

Referenced by ~PhaseStats().

◆ timer_

base::ElapsedTimer v8::internal::compiler::PhaseStats::timer_
private

Definition at line 78 of file pipeline.cc.

Referenced by PhaseStats(), and ~PhaseStats().


The documentation for this class was generated from the following file: