V8 Project
v8::internal::CodeAddressMap Class Reference
+ Inheritance diagram for v8::internal::CodeAddressMap:
+ Collaboration diagram for v8::internal::CodeAddressMap:

Classes

class  NameMap
 

Public Member Functions

 CodeAddressMap (Isolate *isolate)
 
virtual ~CodeAddressMap ()
 
virtual void CodeMoveEvent (Address from, Address to)
 
virtual void CodeDisableOptEvent (Code *code, SharedFunctionInfo *shared)
 
virtual void CodeDeleteEvent (Address from)
 
const char * Lookup (Address address)
 
- Public Member Functions inherited from v8::internal::CodeEventLogger
 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 ()
 

Private Member Functions

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

Private Attributes

NameMap address_to_name_map_
 
Isolateisolate_
 

Detailed Description

Definition at line 484 of file serialize.cc.

Constructor & Destructor Documentation

◆ CodeAddressMap()

v8::internal::CodeAddressMap::CodeAddressMap ( Isolate isolate)
inlineexplicit

Definition at line 486 of file serialize.cc.

487  : isolate_(isolate) {
488  isolate->logger()->addCodeEventListener(this);
489  }
Logger * logger()
Definition: isolate.h:866
void addCodeEventListener(CodeEventListener *listener)
Definition: log.cc:786

References v8::internal::Logger::addCodeEventListener(), and v8::internal::Isolate::logger().

+ Here is the call graph for this function:

◆ ~CodeAddressMap()

virtual v8::internal::CodeAddressMap::~CodeAddressMap ( )
inlinevirtual

Definition at line 491 of file serialize.cc.

491  {
493  }
void removeCodeEventListener(CodeEventListener *listener)
Definition: log.cc:792

References isolate_, v8::internal::Isolate::logger(), and v8::internal::Logger::removeCodeEventListener().

+ Here is the call graph for this function:

Member Function Documentation

◆ CodeDeleteEvent()

virtual void v8::internal::CodeAddressMap::CodeDeleteEvent ( Address  from)
inlinevirtual

Implements v8::internal::CodeEventListener.

Definition at line 502 of file serialize.cc.

502  {
504  }
void Remove(Address code_address)
Definition: serialize.cc:533

References address_to_name_map_, and v8::internal::CodeAddressMap::NameMap::Remove().

+ Here is the call graph for this function:

◆ CodeDisableOptEvent()

virtual void v8::internal::CodeAddressMap::CodeDisableOptEvent ( Code code,
SharedFunctionInfo shared 
)
inlinevirtual

Implements v8::internal::CodeEventListener.

Definition at line 499 of file serialize.cc.

499  {
500  }

◆ CodeMoveEvent()

virtual void v8::internal::CodeAddressMap::CodeMoveEvent ( Address  from,
Address  to 
)
inlinevirtual

Implements v8::internal::CodeEventListener.

Definition at line 495 of file serialize.cc.

495  {
497  }
void Move(Address from, Address to)
Definition: serialize.cc:541
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

References address_to_name_map_, v8::internal::CodeAddressMap::NameMap::Move(), and to().

+ Here is the call graph for this function:

◆ LogRecordedBuffer()

virtual void v8::internal::CodeAddressMap::LogRecordedBuffer ( Code code,
SharedFunctionInfo ,
const char *  name,
int  length 
)
inlineprivatevirtual

Implements v8::internal::CodeEventLogger.

Definition at line 583 of file serialize.cc.

586  {
587  address_to_name_map_.Insert(code->address(), name, length);
588  }
void Insert(Address code_address, const char *name, int name_size)
Definition: serialize.cc:521
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::HeapObject::address(), address_to_name_map_, v8::internal::CodeAddressMap::NameMap::Insert(), and name.

+ Here is the call graph for this function:

◆ Lookup()

const char* v8::internal::CodeAddressMap::Lookup ( Address  address)
inline

Definition at line 506 of file serialize.cc.

506  {
507  return address_to_name_map_.Lookup(address);
508  }
const char * Lookup(Address code_address)
Definition: serialize.cc:528

References address_to_name_map_, and v8::internal::CodeAddressMap::NameMap::Lookup().

Referenced by v8::internal::Serializer::ObjectSerializer::Serialize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ address_to_name_map_

NameMap v8::internal::CodeAddressMap::address_to_name_map_
private

Definition at line 590 of file serialize.cc.

Referenced by CodeDeleteEvent(), CodeMoveEvent(), LogRecordedBuffer(), and Lookup().

◆ isolate_

Isolate* v8::internal::CodeAddressMap::isolate_
private

Definition at line 591 of file serialize.cc.

Referenced by ~CodeAddressMap().


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