v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
logging.cc File Reference
#include "src/base/logging.h"
#include <cctype>
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
#include "src/base/debug/stack_trace.h"
#include "src/base/platform/platform.h"
Include dependency graph for logging.cc:

Go to the source code of this file.

Namespaces

namespace  v8
 
namespace  v8::base
 

Macros

#define CHAR_PRINT_CASE(ch)
 
#define DEFINE_PRINT_CHECK_OPERAND_CHAR(type)
 
#define DEFINE_MAKE_CHECK_OP_STRING(type)
 

Functions

void v8::base::SetPrintStackTrace (void(*print_stack_trace)())
 
void v8::base::SetDcheckFunction (void(*dcheck_function)(const char *, int, const char *))
 
void v8::base::SetFatalFunction (void(*fatal_function)(const char *, int, const char *))
 
void v8::base::FatalOOM (OOMType type, const char *msg)
 
void V8_Fatal (const char *format,...)
 
void V8_Dcheck (const char *file, int line, const char *message)
 

Macro Definition Documentation

◆ CHAR_PRINT_CASE

#define CHAR_PRINT_CASE ( ch)
Value:
case ch: \
oss << #ch; \
break;

◆ DEFINE_MAKE_CHECK_OP_STRING

#define DEFINE_MAKE_CHECK_OP_STRING ( type)
Value:
template std::string* MakeCheckOpString<type, type>(type, type, \
char const*); \
template std::string PrintCheckOperand<type>(type);

Definition at line 126 of file logging.cc.

◆ DEFINE_PRINT_CHECK_OPERAND_CHAR

#define DEFINE_PRINT_CHECK_OPERAND_CHAR ( type)
Value:
template <> \
std::string PrintCheckOperand<type>(type ch) { \
return PrettyPrintChar(ch); \
} \
template <> \
std::string PrintCheckOperand<type*>(type * cstr) { \
return PrintCheckOperand<void*>(cstr); \
} \
template <> \
std::string PrintCheckOperand<const type*>(const type* cstr) { \
return PrintCheckOperand<const void*>(cstr); \
}

Definition at line 106 of file logging.cc.

Function Documentation

◆ V8_Dcheck()

void V8_Dcheck ( const char * file,
int line,
const char * message )

Definition at line 218 of file logging.cc.

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

◆ V8_Fatal()

void V8_Fatal ( const char * format,
... )

Definition at line 170 of file logging.cc.

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