#include "src/inspector/protocol/Debugger.h"
#include "src/inspector/protocol/Protocol.h"
#include "v8//third_party/inspector_protocol/crdtp/cbor.h"
#include "v8//third_party/inspector_protocol/crdtp/find_by_first.h"
#include "v8//third_party/inspector_protocol/crdtp/span.h"
namespace v8_inspector {
namespace protocol {
namespace Debugger {
DeserializerState;
ProtocolTypeTraits;
const char Metainfo::domainName[] = …;
const char Metainfo::commandPrefix[] = …;
const char Metainfo::version[] = …;
V8_CRDTP_BEGIN_DESERIALIZER(…)
V8_CRDTP_BEGIN_SERIALIZER(…);
V8_CRDTP_BEGIN_DESERIALIZER(…)
V8_CRDTP_BEGIN_SERIALIZER(…);
V8_CRDTP_BEGIN_DESERIALIZER(…)
V8_CRDTP_BEGIN_SERIALIZER(…);
V8_CRDTP_BEGIN_DESERIALIZER(…)
V8_CRDTP_BEGIN_SERIALIZER(…);
const char* Scope::TypeEnum::Global = …;
const char* Scope::TypeEnum::Local = …;
const char* Scope::TypeEnum::With = …;
const char* Scope::TypeEnum::Closure = …;
const char* Scope::TypeEnum::Catch = …;
const char* Scope::TypeEnum::Block = …;
const char* Scope::TypeEnum::Script = …;
const char* Scope::TypeEnum::Eval = …;
const char* Scope::TypeEnum::Module = …;
const char* Scope::TypeEnum::WasmExpressionStack = …;
V8_CRDTP_BEGIN_DESERIALIZER(…)
V8_CRDTP_BEGIN_SERIALIZER(…);
V8_CRDTP_BEGIN_DESERIALIZER(…)
V8_CRDTP_BEGIN_SERIALIZER(…);
std::unique_ptr<API::SearchMatch> API::SearchMatch::fromBinary(const uint8_t* data, size_t length)
{ … }
const char* BreakLocation::TypeEnum::DebuggerStatement = …;
const char* BreakLocation::TypeEnum::Call = …;
const char* BreakLocation::TypeEnum::Return = …;
V8_CRDTP_BEGIN_DESERIALIZER(…)
V8_CRDTP_BEGIN_SERIALIZER(…);
V8_CRDTP_BEGIN_DESERIALIZER(…)
V8_CRDTP_BEGIN_SERIALIZER(…);
namespace ScriptLanguageEnum {
const char JavaScript[] = …;
const char WebAssembly[] = …;
}
const char* DebugSymbols::TypeEnum::None = …;
const char* DebugSymbols::TypeEnum::SourceMap = …;
const char* DebugSymbols::TypeEnum::EmbeddedDWARF = …;
const char* DebugSymbols::TypeEnum::ExternalDWARF = …;
V8_CRDTP_BEGIN_DESERIALIZER(…)
V8_CRDTP_BEGIN_SERIALIZER(…);
namespace ContinueToLocation {
namespace TargetCallFramesEnum {
const char* Any = …;
const char* Current = …;
}
}
namespace RestartFrame {
namespace ModeEnum {
const char* StepInto = …;
}
}
namespace SetInstrumentationBreakpoint {
namespace InstrumentationEnum {
const char* BeforeScriptExecution = …;
const char* BeforeScriptWithSourceMapExecution = …;
}
}
namespace SetPauseOnExceptions {
namespace StateEnum {
const char* None = …;
const char* Caught = …;
const char* Uncaught = …;
const char* All = …;
}
}
namespace SetScriptSource {
namespace StatusEnum {
const char* Ok = …;
const char* CompileError = …;
const char* BlockedByActiveGenerator = …;
const char* BlockedByActiveFunction = …;
const char* BlockedByTopLevelEsModuleChange = …;
}
}
namespace Paused {
namespace ReasonEnum {
const char* Ambiguous = …;
const char* Assert = …;
const char* CSPViolation = …;
const char* DebugCommand = …;
const char* DOM = …;
const char* EventListener = …;
const char* Exception = …;
const char* Instrumentation = …;
const char* OOM = …;
const char* Other = …;
const char* PromiseRejection = …;
const char* XHR = …;
const char* Step = …;
}
}
namespace API {
namespace Paused {
namespace ReasonEnum {
const char* Ambiguous = …;
const char* Assert = …;
const char* CSPViolation = …;
const char* DebugCommand = …;
const char* DOM = …;
const char* EventListener = …;
const char* Exception = …;
const char* Instrumentation = …;
const char* OOM = …;
const char* Other = …;
const char* PromiseRejection = …;
const char* XHR = …;
const char* Step = …;
}
}
}
void Frontend::breakpointResolved(const String& breakpointId, std::unique_ptr<protocol::Debugger::Location> location)
{ … }
void Frontend::paused(std::unique_ptr<protocol::Array<protocol::Debugger::CallFrame>> callFrames, const String& reason, Maybe<protocol::DictionaryValue> data, Maybe<protocol::Array<String>> hitBreakpoints, Maybe<protocol::Runtime::StackTrace> asyncStackTrace, Maybe<protocol::Runtime::StackTraceId> asyncStackTraceId, Maybe<protocol::Runtime::StackTraceId> asyncCallStackTraceId)
{ … }
void Frontend::resumed()
{ … }
void Frontend::scriptFailedToParse(const String& scriptId, const String& url, int startLine, int startColumn, int endLine, int endColumn, int executionContextId, const String& hash, Maybe<protocol::DictionaryValue> executionContextAuxData, Maybe<String> sourceMapURL, Maybe<bool> hasSourceURL, Maybe<bool> isModule, Maybe<int> length, Maybe<protocol::Runtime::StackTrace> stackTrace, Maybe<int> codeOffset, Maybe<String> scriptLanguage, Maybe<String> embedderName)
{ … }
void Frontend::scriptParsed(const String& scriptId, const String& url, int startLine, int startColumn, int endLine, int endColumn, int executionContextId, const String& hash, Maybe<protocol::DictionaryValue> executionContextAuxData, Maybe<bool> isLiveEdit, Maybe<String> sourceMapURL, Maybe<bool> hasSourceURL, Maybe<bool> isModule, Maybe<int> length, Maybe<protocol::Runtime::StackTrace> stackTrace, Maybe<int> codeOffset, Maybe<String> scriptLanguage, Maybe<protocol::Debugger::DebugSymbols> debugSymbols, Maybe<String> embedderName)
{ … }
void Frontend::flush()
{ … }
void Frontend::sendRawNotification(std::unique_ptr<Serializable> notification)
{ … }
class DomainDispatcherImpl : public protocol::DomainDispatcher { … };
namespace {
DomainDispatcherImpl::CallHandler CommandByName(v8_crdtp::span<uint8_t> command_name) { … }
}
std::function<void(const v8_crdtp::Dispatchable&)> DomainDispatcherImpl::Dispatch(v8_crdtp::span<uint8_t> command_name) { … }
namespace {
struct continueToLocationParams : public v8_crdtp::DeserializableProtocolObject<continueToLocationParams> { … };
V8_CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::continueToLocation(const v8_crdtp::Dispatchable& dispatchable)
{ … }
namespace {
}
void DomainDispatcherImpl::disable(const v8_crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct enableParams : public v8_crdtp::DeserializableProtocolObject<enableParams> { … };
V8_CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::enable(const v8_crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct evaluateOnCallFrameParams : public v8_crdtp::DeserializableProtocolObject<evaluateOnCallFrameParams> { … };
V8_CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::evaluateOnCallFrame(const v8_crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct getPossibleBreakpointsParams : public v8_crdtp::DeserializableProtocolObject<getPossibleBreakpointsParams> { … };
V8_CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::getPossibleBreakpoints(const v8_crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct getScriptSourceParams : public v8_crdtp::DeserializableProtocolObject<getScriptSourceParams> { … };
V8_CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::getScriptSource(const v8_crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct disassembleWasmModuleParams : public v8_crdtp::DeserializableProtocolObject<disassembleWasmModuleParams> { … };
V8_CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::disassembleWasmModule(const v8_crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct nextWasmDisassemblyChunkParams : public v8_crdtp::DeserializableProtocolObject<nextWasmDisassemblyChunkParams> { … };
V8_CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::nextWasmDisassemblyChunk(const v8_crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct getWasmBytecodeParams : public v8_crdtp::DeserializableProtocolObject<getWasmBytecodeParams> { … };
V8_CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::getWasmBytecode(const v8_crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct getStackTraceParams : public v8_crdtp::DeserializableProtocolObject<getStackTraceParams> { … };
V8_CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::getStackTrace(const v8_crdtp::Dispatchable& dispatchable)
{ … }
namespace {
}
void DomainDispatcherImpl::pause(const v8_crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct pauseOnAsyncCallParams : public v8_crdtp::DeserializableProtocolObject<pauseOnAsyncCallParams> { … };
V8_CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::pauseOnAsyncCall(const v8_crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct removeBreakpointParams : public v8_crdtp::DeserializableProtocolObject<removeBreakpointParams> { … };
V8_CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::removeBreakpoint(const v8_crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct restartFrameParams : public v8_crdtp::DeserializableProtocolObject<restartFrameParams> { … };
V8_CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::restartFrame(const v8_crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct resumeParams : public v8_crdtp::DeserializableProtocolObject<resumeParams> { … };
V8_CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::resume(const v8_crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct searchInContentParams : public v8_crdtp::DeserializableProtocolObject<searchInContentParams> { … };
V8_CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::searchInContent(const v8_crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setAsyncCallStackDepthParams : public v8_crdtp::DeserializableProtocolObject<setAsyncCallStackDepthParams> { … };
V8_CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setAsyncCallStackDepth(const v8_crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setBlackboxPatternsParams : public v8_crdtp::DeserializableProtocolObject<setBlackboxPatternsParams> { … };
V8_CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setBlackboxPatterns(const v8_crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setBlackboxedRangesParams : public v8_crdtp::DeserializableProtocolObject<setBlackboxedRangesParams> { … };
V8_CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setBlackboxedRanges(const v8_crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setBreakpointParams : public v8_crdtp::DeserializableProtocolObject<setBreakpointParams> { … };
V8_CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setBreakpoint(const v8_crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setInstrumentationBreakpointParams : public v8_crdtp::DeserializableProtocolObject<setInstrumentationBreakpointParams> { … };
V8_CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setInstrumentationBreakpoint(const v8_crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setBreakpointByUrlParams : public v8_crdtp::DeserializableProtocolObject<setBreakpointByUrlParams> { … };
V8_CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setBreakpointByUrl(const v8_crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setBreakpointOnFunctionCallParams : public v8_crdtp::DeserializableProtocolObject<setBreakpointOnFunctionCallParams> { … };
V8_CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setBreakpointOnFunctionCall(const v8_crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setBreakpointsActiveParams : public v8_crdtp::DeserializableProtocolObject<setBreakpointsActiveParams> { … };
V8_CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setBreakpointsActive(const v8_crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setPauseOnExceptionsParams : public v8_crdtp::DeserializableProtocolObject<setPauseOnExceptionsParams> { … };
V8_CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setPauseOnExceptions(const v8_crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setReturnValueParams : public v8_crdtp::DeserializableProtocolObject<setReturnValueParams> { … };
V8_CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setReturnValue(const v8_crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setScriptSourceParams : public v8_crdtp::DeserializableProtocolObject<setScriptSourceParams> { … };
V8_CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setScriptSource(const v8_crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setSkipAllPausesParams : public v8_crdtp::DeserializableProtocolObject<setSkipAllPausesParams> { … };
V8_CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setSkipAllPauses(const v8_crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setVariableValueParams : public v8_crdtp::DeserializableProtocolObject<setVariableValueParams> { … };
V8_CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setVariableValue(const v8_crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct stepIntoParams : public v8_crdtp::DeserializableProtocolObject<stepIntoParams> { … };
V8_CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::stepInto(const v8_crdtp::Dispatchable& dispatchable)
{ … }
namespace {
}
void DomainDispatcherImpl::stepOut(const v8_crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct stepOverParams : public v8_crdtp::DeserializableProtocolObject<stepOverParams> { … };
V8_CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::stepOver(const v8_crdtp::Dispatchable& dispatchable)
{ … }
namespace {
const std::vector<std::pair<v8_crdtp::span<uint8_t>, v8_crdtp::span<uint8_t>>>& SortedRedirects() { … }
}
void Dispatcher::wire(UberDispatcher* uber, Backend* backend)
{ … }
}
}
}