v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::ExternalLogEventListener Class Reference

#include <log.h>

Inheritance diagram for v8::internal::ExternalLogEventListener:
Collaboration diagram for v8::internal::ExternalLogEventListener:

Public Member Functions

 ExternalLogEventListener (Isolate *isolate)
 
 ~ExternalLogEventListener () override
 
void CodeCreateEvent (CodeTag tag, DirectHandle< AbstractCode > code, const char *comment) override
 
void CodeCreateEvent (CodeTag tag, DirectHandle< AbstractCode > code, DirectHandle< Name > name) override
 
void CodeCreateEvent (CodeTag tag, DirectHandle< AbstractCode > code, DirectHandle< SharedFunctionInfo > shared, DirectHandle< Name > name) override
 
void CodeCreateEvent (CodeTag tag, DirectHandle< AbstractCode > code, DirectHandle< SharedFunctionInfo > shared, DirectHandle< Name > source, int line, int column) override
 
void RegExpCodeCreateEvent (DirectHandle< AbstractCode > code, DirectHandle< String > source, RegExpFlags flags) override
 
void CallbackEvent (DirectHandle< Name > name, Address entry_point) override
 
void GetterCallbackEvent (DirectHandle< Name > name, Address entry_point) override
 
void SetterCallbackEvent (DirectHandle< Name > name, Address entry_point) override
 
void SharedFunctionInfoMoveEvent (Address from, Address to) override
 
void NativeContextMoveEvent (Address from, Address to) override
 
void CodeMoveEvent (Tagged< InstructionStream > from, Tagged< InstructionStream > to) override
 
void BytecodeMoveEvent (Tagged< BytecodeArray > from, Tagged< BytecodeArray > to) override
 
void CodeDisableOptEvent (DirectHandle< AbstractCode > code, DirectHandle< SharedFunctionInfo > shared) override
 
void CodeMovingGCEvent () override
 
void CodeDeoptEvent (DirectHandle< Code > code, DeoptimizeKind kind, Address pc, int fp_to_sp_delta) override
 
void CodeDependencyChangeEvent (DirectHandle< Code > code, DirectHandle< SharedFunctionInfo > sfi, const char *reason) override
 
void WeakCodeClearEvent () override
 
void StartListening (v8::CodeEventHandler *code_event_handler)
 
void StopListening ()
 
bool is_listening_to_code_events () override
 
- Public Member Functions inherited from v8::internal::LogEventListener
virtual ~LogEventListener ()=default
 
virtual bool allows_code_compaction ()
 

Private Member Functions

void LogExistingCode ()
 

Private Attributes

bool is_listening_
 
Isolateisolate_
 
v8::CodeEventHandlercode_event_handler_
 

Additional Inherited Members

- Public Types inherited from v8::internal::LogEventListener
enum class  Event : uint8_t { LOG_EVENT_LIST =(DECLARE_ENUM) kLength }
 
enum class  CodeTag : uint8_t { CODE_TYPE_LIST =(DECLARE_ENUM) kLength }
 

Detailed Description

Definition at line 500 of file log.h.

Constructor & Destructor Documentation

◆ ExternalLogEventListener()

v8::internal::ExternalLogEventListener::ExternalLogEventListener ( Isolate * isolate)
explicit

Definition at line 484 of file log.cc.

◆ ~ExternalLogEventListener()

v8::internal::ExternalLogEventListener::~ExternalLogEventListener ( )
override

Definition at line 487 of file log.cc.

Here is the call graph for this function:

Member Function Documentation

◆ BytecodeMoveEvent()

void v8::internal::ExternalLogEventListener::BytecodeMoveEvent ( Tagged< BytecodeArray > from,
Tagged< BytecodeArray > to )
overridevirtual

Implements v8::internal::LogEventListener.

Definition at line 664 of file log.cc.

Here is the call graph for this function:

◆ CallbackEvent()

void v8::internal::ExternalLogEventListener::CallbackEvent ( DirectHandle< Name > name,
Address entry_point )
inlineoverridevirtual

Implements v8::internal::LogEventListener.

Definition at line 525 of file log.h.

◆ CodeCreateEvent() [1/4]

void v8::internal::ExternalLogEventListener::CodeCreateEvent ( CodeTag tag,
DirectHandle< AbstractCode > code,
const char * comment )
overridevirtual

Implements v8::internal::LogEventListener.

Definition at line 522 of file log.cc.

Here is the call graph for this function:

◆ CodeCreateEvent() [2/4]

void v8::internal::ExternalLogEventListener::CodeCreateEvent ( CodeTag tag,
DirectHandle< AbstractCode > code,
DirectHandle< Name > name )
overridevirtual

Implements v8::internal::LogEventListener.

Definition at line 540 of file log.cc.

Here is the call graph for this function:

◆ CodeCreateEvent() [3/4]

void v8::internal::ExternalLogEventListener::CodeCreateEvent ( CodeTag tag,
DirectHandle< AbstractCode > code,
DirectHandle< SharedFunctionInfo > shared,
DirectHandle< Name > name )
overridevirtual

Implements v8::internal::LogEventListener.

Definition at line 561 of file log.cc.

Here is the call graph for this function:

◆ CodeCreateEvent() [4/4]

void v8::internal::ExternalLogEventListener::CodeCreateEvent ( CodeTag tag,
DirectHandle< AbstractCode > code,
DirectHandle< SharedFunctionInfo > shared,
DirectHandle< Name > source,
int line,
int column )
overridevirtual

Implements v8::internal::LogEventListener.

Definition at line 582 of file log.cc.

Here is the call graph for this function:

◆ CodeDeoptEvent()

void v8::internal::ExternalLogEventListener::CodeDeoptEvent ( DirectHandle< Code > code,
DeoptimizeKind kind,
Address pc,
int fp_to_sp_delta )
inlineoverridevirtual

Implements v8::internal::LogEventListener.

Definition at line 539 of file log.h.

◆ CodeDependencyChangeEvent()

void v8::internal::ExternalLogEventListener::CodeDependencyChangeEvent ( DirectHandle< Code > code,
DirectHandle< SharedFunctionInfo > sfi,
const char * reason )
inlineoverridevirtual

Implements v8::internal::LogEventListener.

Definition at line 541 of file log.h.

◆ CodeDisableOptEvent()

void v8::internal::ExternalLogEventListener::CodeDisableOptEvent ( DirectHandle< AbstractCode > code,
DirectHandle< SharedFunctionInfo > shared )
inlineoverridevirtual

Implements v8::internal::LogEventListener.

Definition at line 536 of file log.h.

◆ CodeMoveEvent()

void v8::internal::ExternalLogEventListener::CodeMoveEvent ( Tagged< InstructionStream > from,
Tagged< InstructionStream > to )
overridevirtual

Implements v8::internal::LogEventListener.

Definition at line 655 of file log.cc.

Here is the call graph for this function:

◆ CodeMovingGCEvent()

void v8::internal::ExternalLogEventListener::CodeMovingGCEvent ( )
inlineoverridevirtual

Implements v8::internal::LogEventListener.

Definition at line 538 of file log.h.

◆ GetterCallbackEvent()

void v8::internal::ExternalLogEventListener::GetterCallbackEvent ( DirectHandle< Name > name,
Address entry_point )
inlineoverridevirtual

Implements v8::internal::LogEventListener.

Definition at line 526 of file log.h.

◆ is_listening_to_code_events()

bool v8::internal::ExternalLogEventListener::is_listening_to_code_events ( )
inlineoverridevirtual

Reimplemented from v8::internal::LogEventListener.

Definition at line 549 of file log.h.

◆ LogExistingCode()

void v8::internal::ExternalLogEventListener::LogExistingCode ( )
private

Definition at line 493 of file log.cc.

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

◆ NativeContextMoveEvent()

void v8::internal::ExternalLogEventListener::NativeContextMoveEvent ( Address from,
Address to )
inlineoverridevirtual

Implements v8::internal::LogEventListener.

Definition at line 531 of file log.h.

◆ RegExpCodeCreateEvent()

void v8::internal::ExternalLogEventListener::RegExpCodeCreateEvent ( DirectHandle< AbstractCode > code,
DirectHandle< String > source,
RegExpFlags flags )
overridevirtual

Implements v8::internal::LogEventListener.

Definition at line 617 of file log.cc.

Here is the call graph for this function:

◆ SetterCallbackEvent()

void v8::internal::ExternalLogEventListener::SetterCallbackEvent ( DirectHandle< Name > name,
Address entry_point )
inlineoverridevirtual

Implements v8::internal::LogEventListener.

Definition at line 528 of file log.h.

◆ SharedFunctionInfoMoveEvent()

void v8::internal::ExternalLogEventListener::SharedFunctionInfoMoveEvent ( Address from,
Address to )
inlineoverridevirtual

Implements v8::internal::LogEventListener.

Definition at line 530 of file log.h.

◆ StartListening()

void v8::internal::ExternalLogEventListener::StartListening ( v8::CodeEventHandler * code_event_handler)

Definition at line 501 of file log.cc.

Here is the call graph for this function:

◆ StopListening()

void v8::internal::ExternalLogEventListener::StopListening ( )

Definition at line 513 of file log.cc.

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

◆ WeakCodeClearEvent()

void v8::internal::ExternalLogEventListener::WeakCodeClearEvent ( )
inlineoverridevirtual

Implements v8::internal::LogEventListener.

Definition at line 544 of file log.h.

Member Data Documentation

◆ code_event_handler_

v8::CodeEventHandler* v8::internal::ExternalLogEventListener::code_event_handler_
private

Definition at line 556 of file log.h.

◆ is_listening_

bool v8::internal::ExternalLogEventListener::is_listening_
private

Definition at line 554 of file log.h.

◆ isolate_

Isolate* v8::internal::ExternalLogEventListener::isolate_
private

Definition at line 555 of file log.h.


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