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

#include <log-file.h>

Collaboration diagram for v8::internal::LogFile::MessageBuilder:

Public Member Functions

 ~MessageBuilder ()=default
 
void AppendString (Tagged< String > str, std::optional< int > length_limit=std::nullopt)
 
void AppendString (base::Vector< const char > str)
 
void AppendString (const char *str)
 
void AppendString (const char *str, size_t length, bool is_one_byte=true)
 
void PRINTF_FORMAT (2, 3) AppendFormatString(const char *format
 
void void AppendCharacter (char c)
 
void AppendTwoByteCharacter (char c1, char c2)
 
void AppendSymbolName (Tagged< Symbol > symbol)
 
template<typename T >
MessageBuilderoperator<< (T value)
 
void WriteToLogFile ()
 

Private Member Functions

 MessageBuilder (LogFile *log)
 
int PRINTF_FORMAT (2, 0) FormatStringIntoBuffer(const char *format
 
void AppendSymbolNameDetails (Tagged< String > str, bool show_impl_info)
 
void PRINTF_FORMAT (2, 3) AppendRawFormatString(const char *format
 
void void AppendRawString (const char *format)
 
void AppendRawCharacter (const char character)
 

Private Attributes

int va_list args
 
LogFilelog_
 
NoGarbageCollectionMutexGuard lock_guard_
 

Friends

class LogFile
 

Detailed Description

Definition at line 60 of file log-file.h.

Constructor & Destructor Documentation

◆ ~MessageBuilder()

v8::internal::LogFile::MessageBuilder::~MessageBuilder ( )
default

◆ MessageBuilder()

v8::internal::LogFile::MessageBuilder::MessageBuilder ( LogFile * log)
explicitprivate

Definition at line 109 of file log-file.cc.

Member Function Documentation

◆ AppendCharacter()

void v8::internal::LogFile::MessageBuilder::AppendCharacter ( char c)

Definition at line 175 of file log-file.cc.

◆ AppendRawCharacter()

void v8::internal::LogFile::MessageBuilder::AppendRawCharacter ( const char character)
private

Definition at line 251 of file log-file.cc.

◆ AppendRawString()

void v8::internal::LogFile::MessageBuilder::AppendRawString ( const char * format)
private

Definition at line 247 of file log-file.cc.

◆ AppendString() [1/4]

void v8::internal::LogFile::MessageBuilder::AppendString ( base::Vector< const char > str)

Definition at line 131 of file log-file.cc.

Here is the call graph for this function:

◆ AppendString() [2/4]

void v8::internal::LogFile::MessageBuilder::AppendString ( const char * str)

Definition at line 135 of file log-file.cc.

◆ AppendString() [3/4]

void v8::internal::LogFile::MessageBuilder::AppendString ( const char * str,
size_t length,
bool is_one_byte = true )

Definition at line 140 of file log-file.cc.

◆ AppendString() [4/4]

void v8::internal::LogFile::MessageBuilder::AppendString ( Tagged< String > str,
std::optional< int > length_limit = std::nullopt )

Definition at line 112 of file log-file.cc.

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

◆ AppendSymbolName()

void v8::internal::LogFile::MessageBuilder::AppendSymbolName ( Tagged< Symbol > symbol)

Definition at line 195 of file log-file.cc.

Here is the call graph for this function:

◆ AppendSymbolNameDetails()

void v8::internal::LogFile::MessageBuilder::AppendSymbolNameDetails ( Tagged< String > str,
bool show_impl_info )
private

Definition at line 207 of file log-file.cc.

Here is the call graph for this function:

◆ AppendTwoByteCharacter()

void v8::internal::LogFile::MessageBuilder::AppendTwoByteCharacter ( char c1,
char c2 )

Definition at line 167 of file log-file.cc.

◆ operator<<()

template<typename T >
MessageBuilder & v8::internal::LogFile::MessageBuilder::operator<< ( T value)
inline

Definition at line 77 of file log-file.h.

◆ PRINTF_FORMAT() [1/3]

int v8::internal::LogFile::MessageBuilder::PRINTF_FORMAT ( 2 ,
0  ) const
private

◆ PRINTF_FORMAT() [2/3]

void v8::internal::LogFile::MessageBuilder::PRINTF_FORMAT ( 2 ,
3  ) const

◆ PRINTF_FORMAT() [3/3]

void v8::internal::LogFile::MessageBuilder::PRINTF_FORMAT ( 2 ,
3  ) const
private

◆ WriteToLogFile()

void v8::internal::LogFile::MessageBuilder::WriteToLogFile ( )

Definition at line 253 of file log-file.cc.

Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ LogFile

friend class LogFile
friend

Definition at line 104 of file log-file.h.

Member Data Documentation

◆ args

int va_list v8::internal::LogFile::MessageBuilder::args
private

Definition at line 93 of file log-file.h.

◆ lock_guard_

NoGarbageCollectionMutexGuard v8::internal::LogFile::MessageBuilder::lock_guard_
private

Definition at line 102 of file log-file.h.

◆ log_

LogFile* v8::internal::LogFile::MessageBuilder::log_
private

Definition at line 101 of file log-file.h.


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