V8 Project
v8::internal::CodeEventLogger Class Referenceabstract

#include <log.h>

+ Inheritance diagram for v8::internal::CodeEventLogger:
+ Collaboration diagram for v8::internal::CodeEventLogger:

Classes

class  NameBuffer
 

Public Member Functions

 CodeEventLogger ()
 
virtual ~CodeEventLogger ()
 
virtual void CodeCreateEvent (Logger::LogEventsAndTags tag, Code *code, const char *comment)
 
virtual void CodeCreateEvent (Logger::LogEventsAndTags tag, Code *code, Name *name)
 
virtual void CodeCreateEvent (Logger::LogEventsAndTags tag, Code *code, int args_count)
 
virtual void CodeCreateEvent (Logger::LogEventsAndTags tag, Code *code, SharedFunctionInfo *shared, CompilationInfo *info, Name *name)
 
virtual void CodeCreateEvent (Logger::LogEventsAndTags tag, Code *code, SharedFunctionInfo *shared, CompilationInfo *info, Name *source, int line, int column)
 
virtual void RegExpCodeCreateEvent (Code *code, String *source)
 
virtual void CallbackEvent (Name *name, Address entry_point)
 
virtual void GetterCallbackEvent (Name *name, Address entry_point)
 
virtual void SetterCallbackEvent (Name *name, Address entry_point)
 
virtual void SharedFunctionInfoMoveEvent (Address from, Address to)
 
virtual void CodeMovingGCEvent ()
 
- Public Member Functions inherited from v8::internal::CodeEventListener
virtual ~CodeEventListener ()
 
virtual void CodeMoveEvent (Address from, Address to)=0
 
virtual void CodeDeleteEvent (Address from)=0
 
virtual void CodeDisableOptEvent (Code *code, SharedFunctionInfo *shared)=0
 

Private Member Functions

virtual void LogRecordedBuffer (Code *code, SharedFunctionInfo *shared, const char *name, int length)=0
 

Private Attributes

NameBuffername_buffer_
 

Detailed Description

Definition at line 493 of file log.h.

Constructor & Destructor Documentation

◆ CodeEventLogger()

v8::internal::CodeEventLogger::CodeEventLogger ( )

Definition at line 155 of file log.cc.

155 : name_buffer_(new NameBuffer) { }
NameBuffer * name_buffer_
Definition: log.h:534

◆ ~CodeEventLogger()

v8::internal::CodeEventLogger::~CodeEventLogger ( )
virtual

Definition at line 157 of file log.cc.

157 { delete name_buffer_; }

References name_buffer_.

Member Function Documentation

◆ CallbackEvent()

virtual void v8::internal::CodeEventLogger::CallbackEvent ( Name name,
Address  entry_point 
)
inlinevirtual

Implements v8::internal::CodeEventListener.

Definition at line 520 of file log.h.

520 { }

◆ CodeCreateEvent() [1/5]

void v8::internal::CodeEventLogger::CodeCreateEvent ( Logger::LogEventsAndTags  tag,
Code code,
const char *  comment 
)
virtual

Implements v8::internal::CodeEventListener.

Definition at line 160 of file log.cc.

162  {
163  name_buffer_->Init(tag);
164  name_buffer_->AppendBytes(comment);
166 }
void Init(Logger::LogEventsAndTags tag)
Definition: log.cc:67
void AppendBytes(const char *bytes, int size)
Definition: log.cc:109
virtual void LogRecordedBuffer(Code *code, SharedFunctionInfo *shared, const char *name, int length)=0
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 v8::internal::CodeEventLogger::NameBuffer::AppendBytes(), v8::internal::CodeEventLogger::NameBuffer::get(), v8::internal::CodeEventLogger::NameBuffer::Init(), LogRecordedBuffer(), name_buffer_, NULL, and v8::internal::CodeEventLogger::NameBuffer::size().

+ Here is the call graph for this function:

◆ CodeCreateEvent() [2/5]

void v8::internal::CodeEventLogger::CodeCreateEvent ( Logger::LogEventsAndTags  tag,
Code code,
int  args_count 
)
virtual

Implements v8::internal::CodeEventListener.

Definition at line 212 of file log.cc.

214  {
215  name_buffer_->Init(tag);
216  name_buffer_->AppendInt(args_count);
218 }

References v8::internal::CodeEventLogger::NameBuffer::AppendInt(), v8::internal::CodeEventLogger::NameBuffer::get(), v8::internal::CodeEventLogger::NameBuffer::Init(), LogRecordedBuffer(), name_buffer_, NULL, and v8::internal::CodeEventLogger::NameBuffer::size().

+ Here is the call graph for this function:

◆ CodeCreateEvent() [3/5]

void v8::internal::CodeEventLogger::CodeCreateEvent ( Logger::LogEventsAndTags  tag,
Code code,
Name name 
)
virtual

Implements v8::internal::CodeEventListener.

Definition at line 169 of file log.cc.

171  {
172  name_buffer_->Init(tag);
175 }
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 v8::internal::CodeEventLogger::NameBuffer::AppendName(), v8::internal::CodeEventLogger::NameBuffer::get(), v8::internal::CodeEventLogger::NameBuffer::Init(), LogRecordedBuffer(), name, name_buffer_, NULL, and v8::internal::CodeEventLogger::NameBuffer::size().

+ Here is the call graph for this function:

◆ CodeCreateEvent() [4/5]

void v8::internal::CodeEventLogger::CodeCreateEvent ( Logger::LogEventsAndTags  tag,
Code code,
SharedFunctionInfo shared,
CompilationInfo info,
Name name 
)
virtual

Implements v8::internal::CodeEventListener.

Definition at line 178 of file log.cc.

182  {
183  name_buffer_->Init(tag);
186  LogRecordedBuffer(code, shared, name_buffer_->get(), name_buffer_->size());
187 }
static const char * ComputeMarker(Code *code)
Definition: log.cc:50

References v8::internal::CodeEventLogger::NameBuffer::AppendBytes(), v8::internal::CodeEventLogger::NameBuffer::AppendName(), v8::internal::ComputeMarker(), v8::internal::CodeEventLogger::NameBuffer::get(), v8::internal::CodeEventLogger::NameBuffer::Init(), LogRecordedBuffer(), name, name_buffer_, and v8::internal::CodeEventLogger::NameBuffer::size().

+ Here is the call graph for this function:

◆ CodeCreateEvent() [5/5]

void v8::internal::CodeEventLogger::CodeCreateEvent ( Logger::LogEventsAndTags  tag,
Code code,
SharedFunctionInfo shared,
CompilationInfo info,
Name source,
int  line,
int  column 
)
virtual

Implements v8::internal::CodeEventListener.

Definition at line 190 of file log.cc.

194  {
195  name_buffer_->Init(tag);
197  name_buffer_->AppendString(shared->DebugName());
198  name_buffer_->AppendByte(' ');
199  if (source->IsString()) {
200  name_buffer_->AppendString(String::cast(source));
201  } else {
202  name_buffer_->AppendBytes("symbol(hash ");
203  name_buffer_->AppendHex(Name::cast(source)->Hash());
204  name_buffer_->AppendByte(')');
205  }
206  name_buffer_->AppendByte(':');
207  name_buffer_->AppendInt(line);
208  LogRecordedBuffer(code, shared, name_buffer_->get(), name_buffer_->size());
209 }
static uint32_t Hash(RegisteredExtension *extension)

References v8::internal::CodeEventLogger::NameBuffer::AppendByte(), v8::internal::CodeEventLogger::NameBuffer::AppendBytes(), v8::internal::CodeEventLogger::NameBuffer::AppendHex(), v8::internal::CodeEventLogger::NameBuffer::AppendInt(), v8::internal::CodeEventLogger::NameBuffer::AppendString(), v8::internal::ComputeMarker(), v8::internal::SharedFunctionInfo::DebugName(), v8::internal::CodeEventLogger::NameBuffer::get(), v8::internal::Hash(), v8::internal::CodeEventLogger::NameBuffer::Init(), LogRecordedBuffer(), name_buffer_, and v8::internal::CodeEventLogger::NameBuffer::size().

+ Here is the call graph for this function:

◆ CodeMovingGCEvent()

virtual void v8::internal::CodeEventLogger::CodeMovingGCEvent ( )
inlinevirtual

Implements v8::internal::CodeEventListener.

Reimplemented in v8::internal::LowLevelLogger.

Definition at line 524 of file log.h.

524 { }

◆ GetterCallbackEvent()

virtual void v8::internal::CodeEventLogger::GetterCallbackEvent ( Name name,
Address  entry_point 
)
inlinevirtual

Implements v8::internal::CodeEventListener.

Definition at line 521 of file log.h.

521 { }

◆ LogRecordedBuffer()

virtual void v8::internal::CodeEventLogger::LogRecordedBuffer ( Code code,
SharedFunctionInfo shared,
const char *  name,
int  length 
)
privatepure virtual

Implemented in v8::internal::PerfJitLogger, v8::internal::JitLogger, v8::internal::LowLevelLogger, v8::internal::PerfBasicLogger, and v8::internal::CodeAddressMap.

Referenced by CodeCreateEvent(), and RegExpCodeCreateEvent().

+ Here is the caller graph for this function:

◆ RegExpCodeCreateEvent()

void v8::internal::CodeEventLogger::RegExpCodeCreateEvent ( Code code,
String source 
)
virtual

Implements v8::internal::CodeEventListener.

Definition at line 221 of file log.cc.

221  {
222  name_buffer_->Init(Logger::REG_EXP_TAG);
223  name_buffer_->AppendString(source);
225 }

References v8::internal::CodeEventLogger::NameBuffer::AppendString(), v8::internal::CodeEventLogger::NameBuffer::get(), v8::internal::CodeEventLogger::NameBuffer::Init(), LogRecordedBuffer(), name_buffer_, NULL, and v8::internal::CodeEventLogger::NameBuffer::size().

+ Here is the call graph for this function:

◆ SetterCallbackEvent()

virtual void v8::internal::CodeEventLogger::SetterCallbackEvent ( Name name,
Address  entry_point 
)
inlinevirtual

Implements v8::internal::CodeEventListener.

Definition at line 522 of file log.h.

522 { }

◆ SharedFunctionInfoMoveEvent()

virtual void v8::internal::CodeEventLogger::SharedFunctionInfoMoveEvent ( Address  from,
Address  to 
)
inlinevirtual

Implements v8::internal::CodeEventListener.

Definition at line 523 of file log.h.

523 { }

Member Data Documentation

◆ name_buffer_

NameBuffer* v8::internal::CodeEventLogger::name_buffer_
private

Definition at line 534 of file log.h.

Referenced by CodeCreateEvent(), RegExpCodeCreateEvent(), and ~CodeEventLogger().


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