V8 Project
v8::CounterCollection Class Reference

#include <d8.h>

+ Collaboration diagram for v8::CounterCollection:

Public Member Functions

 CounterCollection ()
 
CounterGetNextCounter ()
 

Private Attributes

uint32_t magic_number_
 
uint32_t max_counters_
 
uint32_t max_name_size_
 
uint32_t counters_in_use_
 
Counter counters_ [kMaxCounters]
 

Static Private Attributes

static const unsigned kMaxCounters = 512
 

Detailed Description

Definition at line 43 of file d8.h.

Constructor & Destructor Documentation

◆ CounterCollection()

v8::CounterCollection::CounterCollection ( )

Definition at line 705 of file d8.cc.

705  {
706  magic_number_ = 0xDEADFACE;
709  counters_in_use_ = 0;
710 }
uint32_t max_name_size_
Definition: d8.h:51
uint32_t max_counters_
Definition: d8.h:50
uint32_t magic_number_
Definition: d8.h:49
uint32_t counters_in_use_
Definition: d8.h:52
static const unsigned kMaxCounters
Definition: d8.h:48
static const int kMaxNameSize
Definition: d8.h:25

References v8::Counter::kMaxNameSize.

Member Function Documentation

◆ GetNextCounter()

Counter * v8::CounterCollection::GetNextCounter ( )

Definition at line 713 of file d8.cc.

713  {
714  if (counters_in_use_ == kMaxCounters) return NULL;
715  return &counters_[counters_in_use_++];
716 }
Counter counters_[kMaxCounters]
Definition: d8.h:53
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 NULL

References NULL.

Member Data Documentation

◆ counters_

Counter v8::CounterCollection::counters_[kMaxCounters]
private

Definition at line 53 of file d8.h.

◆ counters_in_use_

uint32_t v8::CounterCollection::counters_in_use_
private

Definition at line 52 of file d8.h.

◆ kMaxCounters

const unsigned v8::CounterCollection::kMaxCounters = 512
staticprivate

Definition at line 48 of file d8.h.

◆ magic_number_

uint32_t v8::CounterCollection::magic_number_
private

Definition at line 49 of file d8.h.

◆ max_counters_

uint32_t v8::CounterCollection::max_counters_
private

Definition at line 50 of file d8.h.

◆ max_name_size_

uint32_t v8::CounterCollection::max_name_size_
private

Definition at line 51 of file d8.h.


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