#include <log-utils.h>
Definition at line 16 of file log-utils.h.
◆ Log()
v8::internal::Log::Log |
( |
Logger * |
logger | ) |
|
|
explicitprivate |
Definition at line 18 of file log-utils.cc.
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be NULL
◆ Close()
FILE * v8::internal::Log::Close |
( |
| ) |
|
◆ Initialize()
void v8::internal::Log::Initialize |
( |
const char * |
log_file_name | ) |
|
◆ InitLogAtStart()
static bool v8::internal::Log::InitLogAtStart |
( |
| ) |
|
|
inlinestatic |
Definition at line 24 of file log-utils.h.
25 return FLAG_log || FLAG_log_api || FLAG_log_code || FLAG_log_gc
26 || FLAG_log_handles || FLAG_log_suspect || FLAG_log_regexp
27 || FLAG_ll_prof || FLAG_perf_basic_prof || FLAG_perf_jit_prof
28 || FLAG_log_internal_timer_events;
Referenced by Initialize(), and v8::internal::Logger::SetUp().
◆ IsEnabled()
bool v8::internal::Log::IsEnabled |
( |
| ) |
|
|
inline |
Definition at line 37 of file log-utils.h.
References is_stopped_, NULL, and output_handle_.
Referenced by v8::internal::Logger::ApiEntryCall(), v8::internal::Logger::ApiEvent(), v8::internal::Logger::ApiIndexedPropertyAccess(), v8::internal::Logger::ApiIndexedSecurityCheck(), v8::internal::Logger::ApiNamedPropertyAccess(), v8::internal::Logger::ApiNamedSecurityCheck(), v8::internal::Logger::ApiObjectAccess(), v8::internal::Logger::CallbackEventInternal(), v8::internal::Logger::CodeCreateEvent(), v8::internal::Logger::CodeDeleteEvent(), v8::internal::Logger::CodeDeoptEvent(), v8::internal::Logger::CodeDisableOptEvent(), v8::internal::Logger::CodeMovingGCEvent(), v8::internal::Logger::CurrentTimeEvent(), v8::internal::Logger::DebugEvent(), v8::internal::Logger::DebugTag(), v8::internal::Logger::DeleteEvent(), v8::internal::Logger::HandleEvent(), v8::internal::Logger::HeapSampleBeginEvent(), v8::internal::Logger::HeapSampleEndEvent(), v8::internal::Logger::HeapSampleItemEvent(), v8::internal::Logger::MoveEventInternal(), v8::internal::Logger::NewEvent(), OpenFile(), OpenStdout(), OpenTemporaryFile(), v8::internal::Logger::ProfilerBeginEvent(), v8::internal::Logger::RegExpCodeCreateEvent(), v8::internal::Logger::RegExpCompileEvent(), v8::internal::Logger::ResourceEvent(), v8::internal::Logger::SharedLibraryEvent(), v8::internal::Logger::SnapshotPositionEvent(), v8::internal::Logger::StopProfiler(), v8::internal::Logger::SuspectReadEvent(), v8::internal::Logger::TickEvent(), v8::internal::Logger::TimerEvent(), v8::internal::Logger::UncheckedIntEvent(), v8::internal::Logger::UncheckedIntPtrTEvent(), and v8::internal::Logger::UncheckedStringEvent().
◆ OpenFile()
void v8::internal::Log::OpenFile |
( |
const char * |
name | ) |
|
|
private |
Definition at line 68 of file log-utils.cc.
static const char *const LogFileOpenMode
static FILE * FOpen(const char *path, const char *mode)
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be expose gc extension under the specified name show built in functions in stack traces use random jit cookie to mask large constants minimum length for automatic enable preparsing CPU profiler sampling interval in microseconds trace out of bounds accesses to external arrays default size of stack region v8 is allowed to maximum length of function source code printed in a stack trace min size of a semi the new space consists of two semi spaces print one trace line following each garbage collection do not print trace line after scavenger collection print cumulative GC statistics in name
#define DCHECK(condition)
References DCHECK, v8::base::OS::FOpen(), IsEnabled(), v8::base::OS::LogFileOpenMode, name, and output_handle_.
Referenced by Initialize().
◆ OpenStdout()
void v8::internal::Log::OpenStdout |
( |
| ) |
|
|
private |
◆ OpenTemporaryFile()
void v8::internal::Log::OpenTemporaryFile |
( |
| ) |
|
|
private |
◆ stop()
void v8::internal::Log::stop |
( |
| ) |
|
|
inline |
◆ WriteToFile()
int v8::internal::Log::WriteToFile |
( |
const char * |
msg, |
|
|
int |
length |
|
) |
| |
|
inlineprivate |
◆ Logger
◆ is_stopped_
bool v8::internal::Log::is_stopped_ |
|
private |
◆ kLogToConsole
const char *const v8::internal::Log::kLogToConsole = "-" |
|
static |
◆ kLogToTemporaryFile
const char *const v8::internal::Log::kLogToTemporaryFile = "&" |
|
static |
◆ kMessageBufferSize
const int v8::internal::Log::kMessageBufferSize = 2048 |
|
static |
◆ logger_
Logger* v8::internal::Log::logger_ |
|
private |
◆ message_buffer_
char* v8::internal::Log::message_buffer_ |
|
private |
◆ mutex_
base::Mutex v8::internal::Log::mutex_ |
|
private |
◆ output_handle_
FILE* v8::internal::Log::output_handle_ |
|
private |
The documentation for this class was generated from the following files: