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

Classes

struct  CodeCreateStruct
 
struct  CodeMoveStruct
 

Public Member Functions

 LowLevelLogger (Isolate *isolate, const char *file_name)
 
 ~LowLevelLogger () 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 SnapshotPositionEvent (Tagged< HeapObject > obj, int pos)
 
void CodeMovingGCEvent () override
 
- Public Member Functions inherited from v8::internal::CodeEventLogger
 CodeEventLogger (Isolate *isolate)
 
 ~CodeEventLogger () override
 
void CodeCreateEvent (CodeTag tag, DirectHandle< AbstractCode > code, const char *name) override
 
void CodeCreateEvent (CodeTag tag, DirectHandle< AbstractCode > code, DirectHandle< Name > name) override
 
void CodeCreateEvent (CodeTag tag, DirectHandle< AbstractCode > code, DirectHandle< SharedFunctionInfo > shared, DirectHandle< Name > script_name) override
 
void CodeCreateEvent (CodeTag tag, DirectHandle< AbstractCode > code, DirectHandle< SharedFunctionInfo > shared, DirectHandle< Name > script_name, 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 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
 
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 LogRecordedBuffer (Tagged< AbstractCode > code, MaybeDirectHandle< SharedFunctionInfo > maybe_shared, const char *name, size_t length) override
 
void LogCodeInfo ()
 
void LogWriteBytes (const char *bytes, size_t size)
 
template<typename T >
void LogWriteStruct (const T &s)
 

Private Attributes

FILE * ll_output_handle_
 

Static Private Attributes

static const char kCodeMovingGCTag = 'G'
 
static const char kLogExt [] = ".ll"
 

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 }
 
- Protected Attributes inherited from v8::internal::CodeEventLogger
Isolateisolate_
 

Detailed Description

Definition at line 673 of file log.cc.

Constructor & Destructor Documentation

◆ LowLevelLogger()

v8::internal::LowLevelLogger::LowLevelLogger ( Isolate * isolate,
const char * file_name )

Definition at line 732 of file log.cc.

Here is the call graph for this function:

◆ ~LowLevelLogger()

v8::internal::LowLevelLogger::~LowLevelLogger ( )
override

Definition at line 746 of file log.cc.

Here is the call graph for this function:

Member Function Documentation

◆ BytecodeMoveEvent()

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

Implements v8::internal::LogEventListener.

Definition at line 814 of file log.cc.

Here is the call graph for this function:

◆ CodeDisableOptEvent()

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

Implements v8::internal::LogEventListener.

Definition at line 682 of file log.cc.

◆ CodeMoveEvent()

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

Implements v8::internal::LogEventListener.

Definition at line 806 of file log.cc.

Here is the call graph for this function:

◆ CodeMovingGCEvent()

void v8::internal::LowLevelLogger::CodeMovingGCEvent ( )
overridevirtual

Reimplemented from v8::internal::CodeEventLogger.

Definition at line 828 of file log.cc.

Here is the call graph for this function:

◆ LogCodeInfo()

void v8::internal::LowLevelLogger::LogCodeInfo ( )
private

Definition at line 751 of file log.cc.

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

◆ LogRecordedBuffer()

void v8::internal::LowLevelLogger::LogRecordedBuffer ( Tagged< AbstractCode > code,
MaybeDirectHandle< SharedFunctionInfo > maybe_shared,
const char * name,
size_t length )
overrideprivatevirtual

Implements v8::internal::CodeEventLogger.

Definition at line 776 of file log.cc.

Here is the call graph for this function:

◆ LogWriteBytes()

void v8::internal::LowLevelLogger::LogWriteBytes ( const char * bytes,
size_t size )
private

Definition at line 822 of file log.cc.

Here is the caller graph for this function:

◆ LogWriteStruct()

template<typename T >
void v8::internal::LowLevelLogger::LogWriteStruct ( const T & s)
inlineprivate

Definition at line 721 of file log.cc.

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

◆ SnapshotPositionEvent()

void v8::internal::LowLevelLogger::SnapshotPositionEvent ( Tagged< HeapObject > obj,
int pos )

Member Data Documentation

◆ kCodeMovingGCTag

const char v8::internal::LowLevelLogger::kCodeMovingGCTag = 'G'
staticprivate

Definition at line 712 of file log.cc.

◆ kLogExt

const char v8::internal::LowLevelLogger::kLogExt = ".ll"
staticprivate

Definition at line 715 of file log.cc.

◆ ll_output_handle_

FILE* v8::internal::LowLevelLogger::ll_output_handle_
private

Definition at line 727 of file log.cc.


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