V8 Project
log.cc File Reference
#include <stdarg.h>
#include "src/v8.h"
#include "src/bailout-reason.h"
#include "src/base/platform/platform.h"
#include "src/bootstrapper.h"
#include "src/code-stubs.h"
#include "src/cpu-profiler.h"
#include "src/deoptimizer.h"
#include "src/global-handles.h"
#include "src/log.h"
#include "src/log-utils.h"
#include "src/macro-assembler.h"
#include "src/perf-jit.h"
#include "src/runtime-profiler.h"
#include "src/serialize.h"
#include "src/string-stream.h"
#include "src/vm-state-inl.h"
+ Include dependency graph for log.cc:

Go to the source code of this file.

Classes

class  v8::internal::CodeEventLogger::NameBuffer
 
class  v8::internal::PerfBasicLogger
 
class  v8::internal::LowLevelLogger
 
struct  v8::internal::LowLevelLogger::CodeCreateStruct
 
struct  v8::internal::LowLevelLogger::CodeMoveStruct
 
struct  v8::internal::LowLevelLogger::CodeDeleteStruct
 
struct  v8::internal::LowLevelLogger::SnapshotPositionStruct
 
class  v8::internal::JitLogger
 
class  v8::internal::Profiler
 
class  v8::internal::Ticker
 
class  v8::internal::EnumerateOptimizedFunctionsVisitor
 

Namespaces

 v8
 Debugger support for the V8 JavaScript engine.
 
 v8::internal
 

Macros

#define DECLARE_EVENT(ignore1, name)   name,
 
#define CALL_LISTENERS(Call)
 
#define PROFILER_LOG(Call)
 
#define LL_LOG(Call)   if (ll_logger_) ll_logger_->Call;
 
#define JIT_LOG(Call)   if (jit_logger_) jit_logger_->Call;
 
#define V(TimerName, expose)
 

Functions

static const char * v8::internal::ComputeMarker (Code *code)
 
static void v8::internal::AppendCodeCreateHeader (Log::MessageBuilder *msg, Logger::LogEventsAndTags tag, Code *code)
 
static int v8::internal::EnumerateCompiledFunctions (Heap *heap, Handle< SharedFunctionInfo > *sfis, Handle< Code > *code_objects)
 
static void v8::internal::AddIsolateIdIfNeeded (OStream &os, Isolate *isolate)
 
static void v8::internal::PrepareLogFileName (OStream &os, Isolate *isolate, const char *file_name)
 

Variables

static const char *const v8::internal::kLogEventsNames [Logger::NUMBER_OF_LOG_EVENTS]
 

Macro Definition Documentation

◆ CALL_LISTENERS

#define CALL_LISTENERS (   Call)
Value:
for (int i = 0; i < listeners_.length(); ++i) { \
listeners_[i]->Call; \
}

Definition at line 36 of file log.cc.

◆ DECLARE_EVENT

#define DECLARE_EVENT (   ignore1,
  name 
)    name,

Definition at line 29 of file log.cc.

◆ JIT_LOG

#define JIT_LOG (   Call)    if (jit_logger_) jit_logger_->Call;

Definition at line 469 of file log.cc.

◆ LL_LOG

#define LL_LOG (   Call)    if (ll_logger_) ll_logger_->Call;

Definition at line 295 of file log.cc.

◆ PROFILER_LOG

#define PROFILER_LOG (   Call)
Value:
do { \
CpuProfiler* cpu_profiler = isolate_->cpu_profiler(); \
if (cpu_profiler->is_profiling()) { \
cpu_profiler->Call; \
} \
} while (false);

Definition at line 41 of file log.cc.

◆ V

#define V (   TimerName,
  expose 
)
Value:
template void TimerEventScope<TimerEvent##TimerName>::LogTimerEvent( \
Logger::StartEnd se);

Definition at line 969 of file log.cc.