![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
Classes | |
class | EtwIsolateCaptureStateMonitor |
class | EtwIsolateOperations |
class | IsolateLoadScriptData |
struct | str_bytes |
struct | str_bytes< 0 > |
Typedefs | |
using | IsolateMapType |
using | FilterDataType = std::string |
Functions | |
void | SetMetaDescriptors (EVENT_DATA_DESCRIPTOR *data_descriptor, UINT16 const UNALIGNED *traits, const void *metadata, size_t size) |
template<size_t count, typename idx = std::make_index_sequence<count>> | |
constexpr auto | MakeStrBytes (char const (&s)[count]) |
template<std::size_t size1, std::size_t size2> | |
constexpr auto | JoinBytes (const str_bytes< size1 > &str1, const str_bytes< size2 > &str2) |
template<size_t count> | |
constexpr auto | Field (char const (&s)[count], uint8_t type) |
constexpr auto | Header (size_t size) |
constexpr auto | JoinFields () |
template<typename T1 > | |
constexpr auto | JoinFields (T1 field) |
template<typename T1 , typename T2 , typename... Ts> | |
constexpr auto | JoinFields (T1 field1, T2 field2, Ts... args) |
template<std::size_t count, typename... Ts> | |
constexpr auto | EventFields (char const (&name)[count], Ts... field_args) |
constexpr auto | EventMetadata (uint16_t id, uint64_t keywords) |
void | SetFieldDescriptors (EVENT_DATA_DESCRIPTOR *data_descriptors) |
template<typename... Ts> | |
void | SetFieldDescriptors (EVENT_DATA_DESCRIPTOR *data_descriptors, const std::wstring &value, const Ts &... rest) |
template<typename... Ts> | |
void | SetFieldDescriptors (EVENT_DATA_DESCRIPTOR *data_descriptors, const std::string &value, const Ts &... rest) |
template<typename... Ts> | |
void | SetFieldDescriptors (EVENT_DATA_DESCRIPTOR *data_descriptors, const char *value, const Ts &... rest) |
template<typename T , typename... Ts> | |
void | SetFieldDescriptors (EVENT_DATA_DESCRIPTOR *data_descriptors, const T &value, const Ts &... rest) |
ULONG | LogEvent (uint64_t regHandle, const EVENT_DESCRIPTOR *event_descriptor, EVENT_DATA_DESCRIPTOR *data_descriptor, ULONG desc_count) |
template<typename T , typename... Fs> | |
void | LogEventData (const TraceLoggingHProvider provider, const EVENT_DESCRIPTOR *event_descriptor, T *meta, const Fs &... fields) |
V8_DECLARE_TRACELOGGING_PROVIDER (g_v8Provider) | |
V8_DEFINE_TRACELOGGING_PROVIDER (g_v8Provider) | |
void | MaybeSetHandlerNow (Isolate *isolate) |
Tagged< SharedFunctionInfo > | GetSharedFunctionInfo (const JitCodeEvent *event) |
std::wstring | GetScriptMethodNameFromEvent (const JitCodeEvent *event) |
std::wstring | GetScriptMethodNameFromSharedFunctionInfo (Tagged< SharedFunctionInfo > sfi) |
std::wstring | GetScriptMethodName (const JitCodeEvent *event) |
void | UpdateETWEnabled (bool enabled, uint32_t options) |
void WINAPI V8_EXPORT_PRIVATE | ETWEnableCallback (LPCGUID, ULONG is_enabled, UCHAR level, ULONGLONG match_any_keyword, ULONGLONG match_all_keyword, PEVENT_FILTER_DESCRIPTOR filter_data, PVOID) |
void | Register () |
void | Unregister () |
void | AddIsolate (Isolate *isolate) |
void | RemoveIsolate (Isolate *isolate) |
void | EventHandler (const JitCodeEvent *event) |
Variables | |
constexpr auto | kCaptureStateTimeout = base::TimeDelta::FromSeconds(10) |
base::LazyMutex | isolates_mutex = LAZY_MUTEX_INITIALIZER |
base::LazyInstance< IsolateMapType >::type | isolate_map |
base::LazyInstance< FilterDataType >::type | etw_filter_payload_glob |
const uint8_t | kManifestFreeChannel = 11 |
const uint8_t | kMetaDescriptorsCount = 2 |
constexpr uint32_t | kEtwControlDisable = 0 |
constexpr uint32_t | kEtwControlEnable = 1 |
constexpr uint32_t | kEtwControlCaptureState = 2 |
constexpr uint64_t | kJScriptRuntimeKeyword = 1 |
constexpr uint16_t | kSourceLoadEventID = 41 |
constexpr uint16_t | kMethodLoadEventID = 9 |
constexpr uint16_t | kSourceDCStartEventID = 39 |
constexpr uint16_t | kMethodDCStartEventID = 5 |
constexpr unsigned char | kTraceLevel = TRACE_LEVEL_INFORMATION |
std::atomic< bool > | has_active_etw_tracing_session_or_custom_filter = false |
constexpr uint32_t | kEtwRundown = 0xf0000000 |
using v8::internal::ETWJITInterface::FilterDataType = std::string |
Definition at line 91 of file etw-isolate-load-script-data-win.h.
Definition at line 87 of file etw-isolate-load-script-data-win.h.
void v8::internal::ETWJITInterface::AddIsolate | ( | Isolate * | isolate | ) |
Definition at line 199 of file etw-jit-win.cc.
void WINAPI V8_EXPORT_PRIVATE v8::internal::ETWJITInterface::ETWEnableCallback | ( | LPCGUID | , |
ULONG | is_enabled, | ||
UCHAR | level, | ||
ULONGLONG | match_any_keyword, | ||
ULONGLONG | match_all_keyword, | ||
PEVENT_FILTER_DESCRIPTOR | filter_data, | ||
PVOID | ) |
Definition at line 112 of file etw-jit-win.cc.
|
constexpr |
Definition at line 133 of file etw-jit-metadata-win.h.
void v8::internal::ETWJITInterface::EventHandler | ( | const JitCodeEvent * | event | ) |
|
constexpr |
|
constexpr |
Definition at line 88 of file etw-jit-metadata-win.h.
std::wstring v8::internal::ETWJITInterface::GetScriptMethodName | ( | const JitCodeEvent * | event | ) |
Definition at line 95 of file etw-jit-win.cc.
std::wstring v8::internal::ETWJITInterface::GetScriptMethodNameFromEvent | ( | const JitCodeEvent * | event | ) |
std::wstring v8::internal::ETWJITInterface::GetScriptMethodNameFromSharedFunctionInfo | ( | Tagged< SharedFunctionInfo > | sfi | ) |
Tagged< SharedFunctionInfo > v8::internal::ETWJITInterface::GetSharedFunctionInfo | ( | const JitCodeEvent * | event | ) |
Definition at line 67 of file etw-jit-win.cc.
|
constexpr |
Definition at line 96 of file etw-jit-metadata-win.h.
|
constexpr |
Definition at line 112 of file etw-jit-metadata-win.h.
|
inline |
void v8::internal::ETWJITInterface::LogEventData | ( | const TraceLoggingHProvider | provider, |
const EVENT_DESCRIPTOR * | event_descriptor, | ||
T * | meta, | ||
const Fs &... | fields ) |
Definition at line 218 of file etw-jit-metadata-win.h.
|
constexpr |
void v8::internal::ETWJITInterface::MaybeSetHandlerNow | ( | Isolate * | isolate | ) |
Definition at line 46 of file etw-jit-win.cc.
void v8::internal::ETWJITInterface::Register | ( | ) |
Definition at line 187 of file etw-jit-win.cc.
void v8::internal::ETWJITInterface::RemoveIsolate | ( | Isolate * | isolate | ) |
Definition at line 203 of file etw-jit-win.cc.
|
inline |
void v8::internal::ETWJITInterface::SetFieldDescriptors | ( | EVENT_DATA_DESCRIPTOR * | data_descriptors, |
const char * | value, | ||
const Ts &... | rest ) |
void v8::internal::ETWJITInterface::SetFieldDescriptors | ( | EVENT_DATA_DESCRIPTOR * | data_descriptors, |
const std::string & | value, | ||
const Ts &... | rest ) |
void v8::internal::ETWJITInterface::SetFieldDescriptors | ( | EVENT_DATA_DESCRIPTOR * | data_descriptors, |
const std::wstring & | value, | ||
const Ts &... | rest ) |
void v8::internal::ETWJITInterface::SetMetaDescriptors | ( | EVENT_DATA_DESCRIPTOR * | data_descriptor, |
UINT16 const UNALIGNED * | traits, | ||
const void * | metadata, | ||
size_t | size ) |
void v8::internal::ETWJITInterface::Unregister | ( | ) |
Definition at line 192 of file etw-jit-win.cc.
void v8::internal::ETWJITInterface::UpdateETWEnabled | ( | bool | enabled, |
uint32_t | options ) |
Definition at line 101 of file etw-jit-win.cc.
v8::internal::ETWJITInterface::V8_DECLARE_TRACELOGGING_PROVIDER | ( | g_v8Provider | ) |
v8::internal::ETWJITInterface::V8_DEFINE_TRACELOGGING_PROVIDER | ( | g_v8Provider | ) |
base::LazyInstance< FilterDataType >::type v8::internal::ETWJITInterface::etw_filter_payload_glob |
Definition at line 313 of file etw-isolate-load-script-data-win.cc.
V8_EXPORT_PRIVATE std::atomic< bool > v8::internal::ETWJITInterface::has_active_etw_tracing_session_or_custom_filter = false |
Definition at line 44 of file etw-jit-win.cc.
base::LazyInstance< IsolateMapType >::type v8::internal::ETWJITInterface::isolate_map |
Definition at line 311 of file etw-isolate-load-script-data-win.cc.
base::LazyMutex v8::internal::ETWJITInterface::isolates_mutex = LAZY_MUTEX_INITIALIZER |
Definition at line 310 of file etw-isolate-load-script-data-win.cc.
|
constexpr |
Definition at line 39 of file etw-isolate-load-script-data-win.cc.
|
constexpr |
Definition at line 33 of file etw-jit-metadata-win.h.
|
constexpr |
Definition at line 31 of file etw-jit-metadata-win.h.
|
constexpr |
Definition at line 32 of file etw-jit-metadata-win.h.
|
constexpr |
Definition at line 27 of file etw-jit-win.h.
|
constexpr |
Definition at line 36 of file etw-jit-metadata-win.h.
const uint8_t v8::internal::ETWJITInterface::kManifestFreeChannel = 11 |
Definition at line 23 of file etw-jit-metadata-win.h.
const uint8_t v8::internal::ETWJITInterface::kMetaDescriptorsCount = 2 |
Definition at line 27 of file etw-jit-metadata-win.h.
|
constexpr |
Definition at line 41 of file etw-jit-metadata-win.h.
|
constexpr |
Definition at line 39 of file etw-jit-metadata-win.h.
|
constexpr |
Definition at line 40 of file etw-jit-metadata-win.h.
|
constexpr |
Definition at line 38 of file etw-jit-metadata-win.h.
|
constexpr |
Definition at line 43 of file etw-jit-metadata-win.h.