|
| LowLevelLogger (const char *file_name) |
|
virtual | ~LowLevelLogger () |
|
virtual void | CodeMoveEvent (Address from, Address to) |
|
virtual void | CodeDisableOptEvent (Code *code, SharedFunctionInfo *shared) |
|
virtual void | CodeDeleteEvent (Address from) |
|
virtual void | SnapshotPositionEvent (Address addr, int pos) |
|
virtual void | CodeMovingGCEvent () |
|
| CodeEventLogger () |
|
virtual | ~CodeEventLogger () |
|
virtual void | CodeCreateEvent (Logger::LogEventsAndTags tag, Code *code, const char *comment) |
|
virtual void | CodeCreateEvent (Logger::LogEventsAndTags tag, Code *code, Name *name) |
|
virtual void | CodeCreateEvent (Logger::LogEventsAndTags tag, Code *code, int args_count) |
|
virtual void | CodeCreateEvent (Logger::LogEventsAndTags tag, Code *code, SharedFunctionInfo *shared, CompilationInfo *info, Name *name) |
|
virtual void | CodeCreateEvent (Logger::LogEventsAndTags tag, Code *code, SharedFunctionInfo *shared, CompilationInfo *info, Name *source, int line, int column) |
|
virtual void | RegExpCodeCreateEvent (Code *code, String *source) |
|
virtual void | CallbackEvent (Name *name, Address entry_point) |
|
virtual void | GetterCallbackEvent (Name *name, Address entry_point) |
|
virtual void | SetterCallbackEvent (Name *name, Address entry_point) |
|
virtual void | SharedFunctionInfoMoveEvent (Address from, Address to) |
|
virtual | ~CodeEventListener () |
|
Definition at line 297 of file log.cc.
◆ LowLevelLogger()
v8::internal::LowLevelLogger::LowLevelLogger |
( |
const char * |
file_name | ) |
|
|
explicit |
Definition at line 372 of file log.cc.
375 size_t len = strlen(
name);
376 ScopedVector<char> ll_name(
static_cast<int>(len +
sizeof(
kLogExt)));
static const char *const LogFileOpenMode
static FILE * FOpen(const char *path, const char *mode)
static const char kLogExt[]
static const int kLogBufferSize
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
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
void MemCopy(void *dest, const void *src, size_t size)
References v8::base::OS::FOpen(), kLogBufferSize, kLogExt, ll_output_handle_, LogCodeInfo(), v8::base::OS::LogFileOpenMode, v8::internal::MemCopy(), name, NULL, and v8::internal::Vector< T >::start().
◆ ~LowLevelLogger()
v8::internal::LowLevelLogger::~LowLevelLogger |
( |
| ) |
|
|
virtual |
◆ CodeDeleteEvent()
void v8::internal::LowLevelLogger::CodeDeleteEvent |
( |
Address |
from | ) |
|
|
virtual |
◆ CodeDisableOptEvent()
◆ CodeMoveEvent()
void v8::internal::LowLevelLogger::CodeMoveEvent |
( |
Address |
from, |
|
|
Address |
to |
|
) |
| |
|
virtual |
Implements v8::internal::CodeEventListener.
Definition at line 432 of file log.cc.
433 CodeMoveStruct event;
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 only print modified registers Trace simulator debug messages Implied by trace sim abort randomize hashes to avoid predictable hash Fixed seed to use to hash property Print the time it takes to deserialize the snapshot A filename with extra code to be included in the A file to write the raw snapshot bytes to(mksnapshot only)") DEFINE_STRING(raw_context_file
References v8::internal::LowLevelLogger::CodeMoveStruct::from_address, v8::internal::Code::kHeaderSize, LogWriteStruct(), and to().
◆ CodeMovingGCEvent()
void v8::internal::LowLevelLogger::CodeMovingGCEvent |
( |
| ) |
|
|
virtual |
◆ LogCodeInfo()
void v8::internal::LowLevelLogger::LogCodeInfo |
( |
| ) |
|
|
private |
Definition at line 393 of file log.cc.
394 #if V8_TARGET_ARCH_IA32
395 const char arch[] =
"ia32";
396 #elif V8_TARGET_ARCH_X64 && V8_TARGET_ARCH_64_BIT
397 const char arch[] =
"x64";
398 #elif V8_TARGET_ARCH_X64 && V8_TARGET_ARCH_32_BIT
399 const char arch[] =
"x32";
400 #elif V8_TARGET_ARCH_ARM
401 const char arch[] =
"arm";
402 #elif V8_TARGET_ARCH_MIPS
403 const char arch[] =
"mips";
404 #elif V8_TARGET_ARCH_X87
405 const char arch[] =
"x87";
406 #elif V8_TARGET_ARCH_ARM64
407 const char arch[] =
"arm64";
409 const char arch[] =
"unknown";
References LogWriteBytes().
Referenced by LowLevelLogger().
◆ LogRecordedBuffer()
void v8::internal::LowLevelLogger::LogRecordedBuffer |
( |
Code * |
code, |
|
|
SharedFunctionInfo * |
shared, |
|
|
const char * |
name, |
|
|
int |
length |
|
) |
| |
|
privatevirtual |
Implements v8::internal::CodeEventLogger.
Definition at line 415 of file log.cc.
419 CodeCreateStruct event;
420 event.name_size = length;
421 event.code_address = code->instruction_start();
423 event.code_size = code->instruction_size();
427 reinterpret_cast<const char*
>(code->instruction_start()),
428 code->instruction_size());
#define DCHECK(condition)
References v8::internal::HeapObject::address(), v8::internal::LowLevelLogger::CodeCreateStruct::code_address, DCHECK, v8::internal::Code::instruction_size(), v8::internal::Code::instruction_start(), v8::internal::Code::kHeaderSize, LogWriteBytes(), LogWriteStruct(), name, and v8::internal::LowLevelLogger::CodeCreateStruct::name_size.
◆ LogWriteBytes()
void v8::internal::LowLevelLogger::LogWriteBytes |
( |
const char * |
bytes, |
|
|
int |
size |
|
) |
| |
|
private |
◆ LogWriteStruct()
template<typename T >
void v8::internal::LowLevelLogger::LogWriteStruct |
( |
const T & |
s | ) |
|
|
inlineprivate |
◆ SnapshotPositionEvent()
void v8::internal::LowLevelLogger::SnapshotPositionEvent |
( |
Address |
addr, |
|
|
int |
pos |
|
) |
| |
|
virtual |
◆ kCodeMovingGCTag
const char v8::internal::LowLevelLogger::kCodeMovingGCTag = 'G' |
|
staticprivate |
◆ kLogBufferSize
const int v8::internal::LowLevelLogger::kLogBufferSize = 2 * MB |
|
staticprivate |
◆ kLogExt
const char v8::internal::LowLevelLogger::kLogExt = ".ll" |
|
staticprivate |
◆ ll_output_handle_
FILE* v8::internal::LowLevelLogger::ll_output_handle_ |
|
private |
The documentation for this class was generated from the following file: