![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
Namespaces | |
namespace | ConsoleAgentState |
namespace | DebuggerAgentState |
namespace | HeapProfilerAgentState |
namespace | internal |
namespace | ProfilerAgentState |
namespace | protocol |
namespace | V8RuntimeAgentImplState |
Typedefs | |
using | UChar = char16_t |
using | TerminateExecutionCallback |
Enumerations | |
enum class | V8InternalValueType { kNone , kEntry , kScope , kScopeList , kPrivateMethodList , kPrivateMethod } |
enum class | V8MessageOrigin { kConsole , kException , kRevokedException } |
enum class | ConsoleAPIType { kLog , kDebug , kInfo , kError , kWarning , kDir , kDirXML , kTable , kTrace , kStartGroup , kStartGroupCollapsed , kEndGroup , kClear , kAssert , kTimeEnd , kCount } |
enum class | WrapMode { kJson , kIdOnly , kPreview , kDeep } |
enum | MultilineMode { MultilineDisabled , MultilineEnabled } |
Functions | |
int32_t | computeCrc32 (const String16 &text) |
void | generateCustomPreview (v8::Isolate *isolate, int sessionId, const String16 &groupName, v8::Local< v8::Object > object, v8::MaybeLocal< v8::Value > maybeConfig, int maxDepth, std::unique_ptr< CustomPreview > *preview) |
void | generateCustomPreview (v8::Isolate *isolate, int sessionId, const String16 &groupName, v8::Local< v8::Object > object, v8::MaybeLocal< v8::Value > config, int maxDepth, std::unique_ptr< protocol::Runtime::CustomPreview > *preview) |
std::vector< std::unique_ptr< protocol::Debugger::SearchMatch > > | searchInTextByLinesImpl (V8InspectorSession *session, const String16 &text, const String16 &query, const bool caseSensitive, const bool isRegex) |
String16 | findSourceURL (const String16 &content, bool multiline) |
String16 | findSourceMapURL (const String16 &content, bool multiline) |
String16 | operator+ (const char *a, const String16 &b) |
v8::Local< v8::String > | toV8String (v8::Isolate *isolate, const String16 &string) |
v8::Local< v8::String > | toV8StringInternalized (v8::Isolate *isolate, const String16 &string) |
v8::Local< v8::String > | toV8StringInternalized (v8::Isolate *isolate, const char *str) |
v8::Local< v8::String > | toV8String (v8::Isolate *isolate, const StringView &string) |
String16 | toProtocolString (v8::Isolate *isolate, v8::Local< v8::String > value) |
String16 | toProtocolStringWithTypeCheck (v8::Isolate *isolate, v8::Local< v8::Value > value) |
String16 | toString16 (const StringView &string) |
StringView | toStringView (const String16 &string) |
bool | stringViewStartsWith (const StringView &string, const char *prefix) |
std::unique_ptr< StringBuffer > | StringBufferFrom (String16 str) |
std::unique_ptr< StringBuffer > | StringBufferFrom (std::vector< uint8_t > str) |
String16 | stackTraceIdToString (uintptr_t id) |
template<size_t N> | |
StringView | toStringView (const char *str[N]) |
void | SetMaxAsyncTaskStacksForTest (V8Inspector *inspector, int limit) |
void | DumpAsyncTaskStacksStateForTest (V8Inspector *inspector) |
static void | setFunctionBreakpoint (ConsoleHelper &helper, int sessionId, v8::Local< v8::Function > function, V8DebuggerAgentImpl::BreakpointSource source, v8::Local< v8::String > condition, bool enable) |
static void | inspectImpl (const v8::FunctionCallbackInfo< v8::Value > &info, v8::Local< v8::Value > value, int sessionId, InspectRequest request, V8InspectorImpl *inspector) |
static bool | isCommandLineAPIGetter (const String16 &name) |
static String16 | getScriptLanguage (const V8DebuggerScript &script) |
std::string | UTF16ToUTF8 (const UChar *stringStart, size_t length) |
std::basic_string< UChar > | UTF8ToUTF16 (const char *stringStart, size_t length) |
v8::Maybe< bool > | createDataProperty (v8::Local< v8::Context > context, v8::Local< v8::Object > object, v8::Local< v8::Name > key, v8::Local< v8::Value > value) |
v8::Maybe< bool > | createDataProperty (v8::Local< v8::Context > context, v8::Local< v8::Array > array, int index, v8::Local< v8::Value > value) |
Response | toProtocolValue (v8::Local< v8::Context > context, v8::Local< v8::Value > value, int maxDepth, std::unique_ptr< protocol::Value > *result) |
Response | arrayToProtocolValue (v8::Local< v8::Context > context, v8::Local< v8::Array > array, int maxDepth, std::unique_ptr< protocol::ListValue > *result) |
Response | objectToProtocolValue (v8::Local< v8::Context > context, v8::Local< v8::Object > object, int maxDepth, std::unique_ptr< protocol::DictionaryValue > *result) |
std::unique_ptr< protocol::FundamentalValue > | toProtocolValue (double doubleValue) |
Response | toProtocolValue (v8::Local< v8::Context > context, v8::Local< v8::Value > value, std::unique_ptr< protocol::Value > *result) |
std::unique_ptr< ValueMirror > | clientMirror (v8::Local< v8::Context > context, v8::Local< v8::Object > value, const String16 &subtype) |
Variables | |
static uint32_t | kCrcTable [256] |
const int | kMaxCustomPreviewDepth = 20 |
static const char | kBacktraceObjectGroup [] = "backtrace" |
static const char | kDebuggerNotEnabled [] = "Debugger agent is not enabled" |
static const char | kDebuggerNotPaused [] |
static const size_t | kBreakpointHintMaxLength = 128 |
static const intptr_t | kBreakpointHintMaxSearchOffset = 80 * 10 |
static const size_t | kMaxNumBreakpoints = 1000 |
static constexpr v8::base::TimeDelta | kDefaultTimerDelay |
static const int | kMaxProtocolDepth = 1000 |
Definition at line 48 of file v8-debugger.h.
using v8_inspector::UChar = char16_t |
Definition at line 22 of file string-16.h.
|
strong |
Enumerator | |
---|---|
kLog | |
kDebug | |
kInfo | |
kError | |
kWarning | |
kDir | |
kDirXML | |
kTable | |
kTrace | |
kStartGroup | |
kStartGroupCollapsed | |
kEndGroup | |
kClear | |
kAssert | |
kTimeEnd | |
kCount |
Definition at line 29 of file v8-console-message.h.
Enumerator | |
---|---|
MultilineDisabled | |
MultilineEnabled |
Definition at line 20 of file v8-regex.h.
|
strong |
Enumerator | |
---|---|
kNone | |
kEntry | |
kScope | |
kScopeList | |
kPrivateMethodList | |
kPrivateMethod |
Definition at line 31 of file inspected-context.h.
|
strong |
Enumerator | |
---|---|
kConsole | |
kException | |
kRevokedException |
Definition at line 27 of file v8-console-message.h.
|
strong |
Enumerator | |
---|---|
kJson | |
kIdOnly | |
kPreview | |
kDeep |
Definition at line 35 of file v8-debugger.h.
protocol::Response v8_inspector::arrayToProtocolValue | ( | v8::Local< v8::Context > | context, |
v8::Local< v8::Array > | array, | ||
int | maxDepth, | ||
std::unique_ptr< protocol::ListValue > * | result ) |
Definition at line 45 of file value-mirror.cc.
std::unique_ptr< ValueMirror > v8_inspector::clientMirror | ( | v8::Local< v8::Context > | context, |
v8::Local< v8::Object > | value, | ||
const String16 & | subtype ) |
Definition at line 1738 of file value-mirror.cc.
int32_t v8_inspector::computeCrc32 | ( | const String16 & | text | ) |
v8::Maybe< bool > v8_inspector::createDataProperty | ( | v8::Local< v8::Context > | context, |
v8::Local< v8::Array > | array, | ||
int | index, | ||
v8::Local< v8::Value > | value ) |
Definition at line 24 of file v8-value-utils.cc.
v8::Maybe< bool > v8_inspector::createDataProperty | ( | v8::Local< v8::Context > | context, |
v8::Local< v8::Object > | object, | ||
v8::Local< v8::Name > | key, | ||
v8::Local< v8::Value > | value ) |
V8_EXPORT void v8_inspector::DumpAsyncTaskStacksStateForTest | ( | V8Inspector * | inspector | ) |
Definition at line 18 of file test-interface.cc.
void v8_inspector::generateCustomPreview | ( | v8::Isolate * | isolate, |
int | sessionId, | ||
const String16 & | groupName, | ||
v8::Local< v8::Object > | object, | ||
v8::MaybeLocal< v8::Value > | config, | ||
int | maxDepth, | ||
std::unique_ptr< protocol::Runtime::CustomPreview > * | preview ) |
void v8_inspector::generateCustomPreview | ( | v8::Isolate * | isolate, |
int | sessionId, | ||
const String16 & | groupName, | ||
v8::Local< v8::Object > | object, | ||
v8::MaybeLocal< v8::Value > | maybeConfig, | ||
int | maxDepth, | ||
std::unique_ptr< CustomPreview > * | preview ) |
Definition at line 259 of file custom-preview.cc.
|
static |
Definition at line 1883 of file v8-debugger-agent-impl.cc.
|
static |
Definition at line 743 of file v8-console.cc.
|
static |
protocol::Response v8_inspector::objectToProtocolValue | ( | v8::Local< v8::Context > | context, |
v8::Local< v8::Object > | object, | ||
int | maxDepth, | ||
std::unique_ptr< protocol::DictionaryValue > * | result ) |
Definition at line 64 of file value-mirror.cc.
Definition at line 126 of file string-16.h.
std::vector< std::unique_ptr< protocol::Debugger::SearchMatch > > v8_inspector::searchInTextByLinesImpl | ( | V8InspectorSession * | session, |
const String16 & | text, | ||
const String16 & | query, | ||
const bool | caseSensitive, | ||
const bool | isRegex ) |
|
static |
Definition at line 655 of file v8-console.cc.
V8_EXPORT void v8_inspector::SetMaxAsyncTaskStacksForTest | ( | V8Inspector * | inspector, |
int | limit ) |
Definition at line 12 of file test-interface.cc.
String16 v8_inspector::stackTraceIdToString | ( | uintptr_t | id | ) |
Definition at line 240 of file string-util.cc.
std::unique_ptr< StringBuffer > v8_inspector::StringBufferFrom | ( | std::vector< uint8_t > | str | ) |
Definition at line 235 of file string-util.cc.
std::unique_ptr< StringBuffer > v8_inspector::StringBufferFrom | ( | String16 | str | ) |
Definition at line 230 of file string-util.cc.
bool v8_inspector::stringViewStartsWith | ( | const StringView & | string, |
const char * | prefix ) |
String16 v8_inspector::toProtocolString | ( | v8::Isolate * | isolate, |
v8::Local< v8::String > | value ) |
String16 v8_inspector::toProtocolStringWithTypeCheck | ( | v8::Isolate * | isolate, |
v8::Local< v8::Value > | value ) |
Definition at line 151 of file string-util.cc.
std::unique_ptr< protocol::FundamentalValue > v8_inspector::toProtocolValue | ( | double | doubleValue | ) |
protocol::Response v8_inspector::toProtocolValue | ( | v8::Local< v8::Context > | context, |
v8::Local< v8::Value > | value, | ||
int | maxDepth, | ||
std::unique_ptr< protocol::Value > * | result ) |
Definition at line 115 of file value-mirror.cc.
Response v8_inspector::toProtocolValue | ( | v8::Local< v8::Context > | context, |
v8::Local< v8::Value > | value, | ||
std::unique_ptr< protocol::Value > * | result ) |
V8_EXPORT_PRIVATE String16 v8_inspector::toString16 | ( | const StringView & | string | ) |
StringView v8_inspector::toStringView | ( | const char * | str[N] | ) |
Definition at line 81 of file string-util.h.
V8_EXPORT_PRIVATE StringView v8_inspector::toStringView | ( | const String16 & | string | ) |
v8::Local< v8::String > v8_inspector::toV8String | ( | v8::Isolate * | isolate, |
const String16 & | string ) |
Definition at line 102 of file string-util.cc.
v8::Local< v8::String > v8_inspector::toV8String | ( | v8::Isolate * | isolate, |
const StringView & | string ) |
v8::Local< v8::String > v8_inspector::toV8StringInternalized | ( | v8::Isolate * | isolate, |
const char * | str ) |
v8::Local< v8::String > v8_inspector::toV8StringInternalized | ( | v8::Isolate * | isolate, |
const String16 & | string ) |
Definition at line 111 of file string-util.cc.
std::string v8_inspector::UTF16ToUTF8 | ( | const UChar * | stringStart, |
size_t | length ) |
Definition at line 343 of file v8-string-conversions.cc.
std::basic_string< char16_t > v8_inspector::UTF8ToUTF16 | ( | const char * | stringStart, |
size_t | length ) |
Definition at line 386 of file v8-string-conversions.cc.
|
static |
Definition at line 68 of file v8-debugger-agent-impl.cc.
|
static |
Definition at line 73 of file v8-debugger-agent-impl.cc.
|
static |
Definition at line 74 of file v8-debugger-agent-impl.cc.
|
static |
Definition at line 69 of file v8-debugger-agent-impl.cc.
|
static |
Definition at line 70 of file v8-debugger-agent-impl.cc.
|
staticconstexpr |
Definition at line 495 of file v8-heap-profiler-agent-impl.cc.
const int v8_inspector::kMaxCustomPreviewDepth = 20 |
Definition at line 15 of file custom-preview.h.
|
static |
Definition at line 77 of file v8-debugger-agent-impl.cc.
|
static |
Definition at line 38 of file value-mirror.cc.