Lines Matching refs:protocol
18 #include "src/inspector/protocol/Debugger.h"
19 #include "src/inspector/protocol/Protocol.h"
34 using protocol::Array;
35 using protocol::Maybe;
36 using protocol::Debugger::BreakpointId;
37 using protocol::Debugger::CallFrame;
38 using protocol::Debugger::Scope;
39 using protocol::Runtime::ExceptionDetails;
40 using protocol::Runtime::RemoteObject;
41 using protocol::Runtime::ScriptId;
44 protocol::Debugger::SetInstrumentationBreakpoint::InstrumentationEnum;
74 // as protocol::Binary, which is encoded as JSON string in the communication
242 return protocol::Debugger::BreakLocation::TypeEnum::Call;
244 return protocol::Debugger::BreakLocation::TypeEnum::Return;
246 return protocol::Debugger::BreakLocation::TypeEnum::DebuggerStatement;
306 scope->setStartLocation(protocol::Debugger::Location::create()
313 scope->setEndLocation(protocol::Debugger::Location::create()
324 protocol::DictionaryValue* getOrCreateObject(protocol::DictionaryValue* object,
326 protocol::DictionaryValue* value = object->getObject(key);
328 std::unique_ptr<protocol::DictionaryValue> newDictionary =
329 protocol::DictionaryValue::create();
335 Response isValidPosition(protocol::Debugger::ScriptPosition* position) {
368 V8InspectorSessionImpl* session, protocol::FrontendChannel* frontendChannel,
369 protocol::DictionaryValue* state)
526 std::unique_ptr<protocol::Array<protocol::Debugger::Location>>* locations) {
529 *locations = std::make_unique<Array<protocol::Debugger::Location>>();
561 protocol::DictionaryValue* breakpoints;
593 std::unique_ptr<protocol::Debugger::Location> location = setBreakpointImpl(
603 protocol::DictionaryValue* breakpointHints =
612 std::unique_ptr<protocol::Debugger::Location> location,
614 std::unique_ptr<protocol::Debugger::Location>* actualLocation) {
666 protocol::DictionaryValue* breakpoints = getOrCreateObject(
684 protocol::DictionaryValue* breakpoints = nullptr;
687 protocol::DictionaryValue* breakpointsByUrl =
694 protocol::DictionaryValue* breakpointsByScriptHash =
711 protocol::DictionaryValue* breakpointHints =
759 std::unique_ptr<protocol::Debugger::Location> start,
760 Maybe<protocol::Debugger::Location> end, Maybe<bool> restrictToFunction,
761 std::unique_ptr<protocol::Array<protocol::Debugger::BreakLocation>>*
802 std::make_unique<protocol::Array<protocol::Debugger::BreakLocation>>();
809 std::unique_ptr<protocol::Debugger::BreakLocation> breakLocation =
810 protocol::Debugger::BreakLocation::create()
824 std::unique_ptr<protocol::Debugger::Location> location,
842 protocol::Debugger::ContinueToLocation::TargetCallFramesEnum::Any));
846 std::unique_ptr<protocol::Runtime::StackTraceId> inStackTraceId,
847 std::unique_ptr<protocol::Runtime::StackTrace>* outStackTrace) {
940 std::unique_ptr<protocol::Debugger::Location>
979 return protocol::Debugger::Location::create()
1002 std::unique_ptr<Array<protocol::Debugger::SearchMatch>>* results) {
1008 *results = std::make_unique<protocol::Array<protocol::Debugger::SearchMatch>>(
1017 Maybe<protocol::Array<protocol::Debugger::CallFrame>>* newCallFrames,
1019 Maybe<protocol::Runtime::StackTrace>* asyncStackTrace,
1020 Maybe<protocol::Runtime::StackTraceId>* asyncStackTraceId,
1021 Maybe<protocol::Runtime::ExceptionDetails>* optOutCompileError) {
1041 protocol::Runtime::ExceptionDetails::create()
1065 Maybe<protocol::Runtime::StackTrace>* asyncStackTrace,
1066 Maybe<protocol::Runtime::StackTraceId>* asyncStackTraceId) {
1072 Maybe<protocol::Binary>* bytecode) {
1083 *bytecode = protocol::Binary::fromSpan(cachedScriptIt->bytecode.data(),
1096 *bytecode = protocol::Binary::fromSpan(span.data(), span.size());
1103 protocol::Binary* bytecode) {
1116 *bytecode = protocol::Binary::fromSpan(span.data(), span.size());
1125 std::unique_ptr<protocol::DictionaryValue> breakAuxData) {
1141 std::unique_ptr<protocol::DictionaryValue> data) {
1164 pushBreakDetails(protocol::Debugger::Paused::ReasonEnum::Other, nullptr);
1180 Maybe<protocol::Array<protocol::Debugger::LocationRange>> inSkipList) {
1197 Maybe<protocol::Array<protocol::Debugger::LocationRange>> inSkipList) {
1221 std::unique_ptr<protocol::Runtime::StackTraceId> inParentStackTraceId) {
1258 Maybe<protocol::Runtime::ExceptionDetails>* exceptionDetails) {
1296 std::unique_ptr<protocol::Runtime::CallArgument> newValueArgument,
1331 std::unique_ptr<protocol::Runtime::CallArgument> protocolNewValue) {
1364 std::unique_ptr<protocol::Array<String16>> patterns) {
1406 std::unique_ptr<protocol::Array<protocol::Debugger::ScriptPosition>>
1420 for (const std::unique_ptr<protocol::Debugger::ScriptPosition>& position :
1479 std::unique_ptr<protocol::Debugger::Location> location =
1480 protocol::Debugger::Location::create()
1499 protocol::Debugger::Location::create()
1519 std::unique_ptr<protocol::Runtime::StackTrace>
1528 std::unique_ptr<protocol::Runtime::StackTraceId>
1532 return protocol::Runtime::StackTraceId::create()
1546 return protocol::Debugger::ScriptLanguageEnum::WebAssembly;
1548 return protocol::Debugger::ScriptLanguageEnum::JavaScript;
1557 return v8_inspector::protocol::Debugger::DebugSymbols::TypeEnum::None;
1559 return v8_inspector::protocol::Debugger::DebugSymbols::TypeEnum::
1562 return v8_inspector::protocol::Debugger::DebugSymbols::TypeEnum::
1565 return v8_inspector::protocol::Debugger::DebugSymbols::TypeEnum::
1570 static std::unique_ptr<protocol::Debugger::DebugSymbols> getDebugSymbols(
1575 std::unique_ptr<protocol::Debugger::DebugSymbols> debugSymbols =
1576 v8_inspector::protocol::Debugger::DebugSymbols::create()
1600 std::unique_ptr<protocol::DictionaryValue> executionContextAuxData;
1608 executionContextAuxData = protocol::DictionaryValue::cast(
1609 protocol::Value::parseBinary(cbor.data(), cbor.size()));
1619 std::unique_ptr<protocol::Debugger::DebugSymbols> debugSymbols;
1641 Maybe<protocol::DictionaryValue> executionContextAuxDataParam(
1649 std::unique_ptr<protocol::Runtime::StackTrace> stackTrace =
1674 std::vector<protocol::DictionaryValue*> potentialBreakpoints;
1676 protocol::DictionaryValue* breakpointsByUrl =
1684 protocol::DictionaryValue* breakpointsByScriptHash =
1690 protocol::DictionaryValue* breakpointHints =
1714 std::unique_ptr<protocol::Debugger::Location> location =
1726 protocol::DictionaryValue* breakpoints =
1753 String16 breakReason = protocol::Debugger::Paused::ReasonEnum::Other;
1754 std::unique_ptr<protocol::DictionaryValue> breakAuxData;
1765 breakReason = protocol::Debugger::Paused::ReasonEnum::Instrumentation;
1771 breakAuxData = protocol::DictionaryValue::create();
1797 std::make_pair(protocol::Debugger::Paused::ReasonEnum::OOM, nullptr));
1800 protocol::Debugger::Paused::ReasonEnum::Assert, nullptr));
1807 ? protocol::Debugger::Paused::ReasonEnum::PromiseRejection
1808 : protocol::Debugger::Paused::ReasonEnum::Exception;
1809 std::unique_ptr<protocol::Runtime::RemoteObject> obj;
1812 std::unique_ptr<protocol::DictionaryValue> breakAuxData;
1816 breakAuxData = protocol::DictionaryValue::cast(
1817 protocol::Value::parseBinary(serialized.data(), serialized.size()));
1838 protocol::Debugger::Paused::ReasonEnum::DebugCommand, nullptr));
1851 std::make_pair(protocol::Debugger::Paused::ReasonEnum::Other, nullptr);
1857 std::make_pair(protocol::Debugger::Paused::ReasonEnum::Other, nullptr));
1865 String16 breakReason = protocol::Debugger::Paused::ReasonEnum::Other;
1866 std::unique_ptr<protocol::DictionaryValue> breakAuxData;
1871 breakReason = protocol::Debugger::Paused::ReasonEnum::Ambiguous;
1872 std::unique_ptr<protocol::ListValue> reasons =
1873 protocol::ListValue::create();
1875 std::unique_ptr<protocol::DictionaryValue> reason =
1876 protocol::DictionaryValue::create();
1882 breakAuxData = protocol::DictionaryValue::create();
1903 std::unique_ptr<protocol::DictionaryValue> data) {
1983 protocol::Array<protocol::Debugger::LocationRange>* skipList) {
1985 for (std::unique_ptr<protocol::Debugger::LocationRange>& range : *skipList) {
1986 protocol::Debugger::ScriptPosition* start = range->getStart();
1987 protocol::Debugger::ScriptPosition* end = range->getEnd();