Lines Matching defs:std
175 bool positionComparator(const std::pair<int, int>& a,
176 const std::pair<int, int>& b) {
212 intptr_t searchRegionOffset = std::max(
281 std::unique_ptr<Array<Scope>>* scopes) {
282 *scopes = std::make_unique<Array<Scope>>();
289 std::unique_ptr<RemoteObject> object;
297 .setObject(std::move(object))
319 (*scopes)->emplace_back(std::move(scope));
328 std::unique_ptr<protocol::DictionaryValue> newDictionary =
331 object->setObject(key, std::move(newDictionary));
343 Response isValidRangeOfPositions(std::vector<std::pair<int, int>>& positions) {
385 std::vector<std::unique_ptr<V8DebuggerScript>> compiledScripts =
388 didParseSource(std::move(script), true);
395 didPause(0, v8::Local<v8::Value>(), std::vector<v8::debug::BreakpointId>(),
404 maxScriptsCacheSize.fromMaybe(std::numeric_limits<double>::max()));
526 std::unique_ptr<protocol::Array<protocol::Debugger::Location>>* locations) {
529 *locations = std::make_unique<Array<protocol::Debugger::Location>>();
593 std::unique_ptr<protocol::Debugger::Location> location = setBreakpointImpl(
599 if (location) (*locations)->emplace_back(std::move(location));
612 std::unique_ptr<protocol::Debugger::Location> location,
614 std::unique_ptr<protocol::Debugger::Location>* actualLocation) {
718 std::vector<V8DebuggerScript*> scripts;
737 const std::vector<V8DebuggerScript*>& scripts) {
759 std::unique_ptr<protocol::Debugger::Location> start,
761 std::unique_ptr<protocol::Array<protocol::Debugger::BreakLocation>>*
785 std::vector<v8::debug::BreakLocation> v8Locations;
802 std::make_unique<protocol::Array<protocol::Debugger::BreakLocation>>();
807 std::min(v8Locations.size(), kMaxNumBreakpoints);
809 std::unique_ptr<protocol::Debugger::BreakLocation> breakLocation =
818 (*locations)->emplace_back(std::move(breakLocation));
824 std::unique_ptr<protocol::Debugger::Location> location,
840 m_session->contextGroupId(), script, std::move(location),
846 std::unique_ptr<protocol::Runtime::StackTraceId> inStackTraceId,
847 std::unique_ptr<protocol::Runtime::StackTrace>* outStackTrace) {
892 const std::vector<std::pair<int, int>>& ranges =
894 auto itStartRange = std::lower_bound(
896 std::make_pair(start.GetLineNumber(), start.GetColumnNumber()),
898 auto itEndRange = std::lower_bound(
900 std::make_pair(end.GetLineNumber(), end.GetColumnNumber()),
906 std::distance(ranges.begin(), itStartRange) % 2;
916 const std::vector<std::pair<int, int>>& ranges = it->second;
918 const std::pair<int, int> location = std::make_pair(line, column);
919 auto itLowerBound = std::lower_bound(ranges.begin(), ranges.end(), location,
940 std::unique_ptr<protocol::Debugger::Location>
1002 std::unique_ptr<Array<protocol::Debugger::SearchMatch>>* results) {
1008 *results = std::make_unique<protocol::Array<protocol::Debugger::SearchMatch>>(
1053 std::unique_ptr<Array<CallFrame>> callFrames;
1056 *newCallFrames = std::move(callFrames);
1064 std::unique_ptr<Array<CallFrame>>* newCallFrames,
1077 std::find_if(m_cachedScripts.begin(), m_cachedScripts.end(),
1125 std::unique_ptr<protocol::DictionaryValue> breakAuxData) {
1126 m_breakReason.push_back(std::make_pair(breakReason, std::move(breakAuxData)));
1135 std::vector<BreakReason> emptyBreakReason;
1141 std::unique_ptr<protocol::DictionaryValue> data) {
1146 pushBreakDetails(breakReason, std::move(data));
1221 std::unique_ptr<protocol::Runtime::StackTraceId> inParentStackTraceId) {
1257 std::unique_ptr<RemoteObject>* result,
1296 std::unique_ptr<protocol::Runtime::CallArgument> newValueArgument,
1331 std::unique_ptr<protocol::Runtime::CallArgument> protocolNewValue) {
1364 std::unique_ptr<protocol::Array<String16>> patterns) {
1389 std::unique_ptr<V8Regex> regex(new V8Regex(
1394 m_blackboxPattern = std::move(regex);
1406 std::unique_ptr<protocol::Array<protocol::Debugger::ScriptPosition>>
1418 std::vector<std::pair<int, int>> positions;
1420 for (const std::unique_ptr<protocol::Debugger::ScriptPosition>& position :
1426 std::make_pair(position->getLineNumber(), position->getColumnNumber()));
1437 std::unique_ptr<Array<CallFrame>>* result) {
1439 *result = std::make_unique<Array<CallFrame>>();
1443 *result = std::make_unique<Array<CallFrame>>();
1455 std::unique_ptr<Array<Scope>> scopes;
1461 std::unique_ptr<RemoteObject> protocolReceiver;
1479 std::unique_ptr<protocol::Debugger::Location> location =
1490 .setLocation(std::move(location))
1492 .setScopeChain(std::move(scopes))
1493 .setThis(std::move(protocolReceiver))
1508 std::unique_ptr<RemoteObject> value;
1512 frame->setReturnValue(std::move(value));
1514 (*result)->emplace_back(std::move(frame));
1519 std::unique_ptr<protocol::Runtime::StackTrace>
1521 std::shared_ptr<AsyncStackTrace> asyncParent =
1528 std::unique_ptr<protocol::Runtime::StackTraceId>
1570 static std::unique_ptr<protocol::Debugger::DebugSymbols> getDebugSymbols(
1575 std::unique_ptr<protocol::Debugger::DebugSymbols> debugSymbols =
1588 std::unique_ptr<V8DebuggerScript> script, bool success) {
1600 std::unique_ptr<protocol::DictionaryValue> executionContextAuxData;
1605 std::vector<uint8_t> cbor;
1619 std::unique_ptr<protocol::Debugger::DebugSymbols> debugSymbols;
1626 m_scripts[scriptId] = std::move(script);
1642 std::move(executionContextAuxData));
1647 std::unique_ptr<V8StackTraceImpl> stack =
1649 std::unique_ptr<protocol::Runtime::StackTrace> stackTrace =
1658 scriptRef->hash(), std::move(executionContextAuxDataParam),
1659 std::move(sourceMapURLParam), hasSourceURLParam, isModuleParam,
1660 scriptRef->length(), std::move(stackTrace), std::move(codeOffset),
1661 std::move(scriptLanguage), embedderName);
1668 scriptRef->hash(), std::move(executionContextAuxDataParam),
1669 isLiveEditParam, std::move(sourceMapURLParam), hasSourceURLParam,
1670 isModuleParam, scriptRef->length(), std::move(stackTrace),
1671 std::move(codeOffset), std::move(scriptLanguage), std::move(debugSymbols),
1674 std::vector<protocol::DictionaryValue*> potentialBreakpoints;
1714 std::unique_ptr<protocol::Debugger::Location> location =
1718 m_frontend.breakpointResolved(breakpointId, std::move(location));
1754 std::unique_ptr<protocol::DictionaryValue> breakAuxData;
1756 std::unique_ptr<Array<CallFrame>> protocolCallFrames;
1759 protocolCallFrames = std::make_unique<Array<CallFrame>>();
1780 m_frontend.paused(std::move(protocolCallFrames), breakReason,
1781 std::move(breakAuxData),
1782 std::make_unique<Array<String16>>(),
1788 const std::vector<v8::debug::BreakpointId>& hitBreakpoints,
1793 std::vector<BreakReason> hitReasons;
1797 std::make_pair(protocol::Debugger::Paused::ReasonEnum::OOM, nullptr));
1799 hitReasons.push_back(std::make_pair(
1809 std::unique_ptr<protocol::Runtime::RemoteObject> obj;
1812 std::unique_ptr<protocol::DictionaryValue> breakAuxData;
1814 std::vector<uint8_t> serialized;
1821 std::make_pair(breakReason, std::move(breakAuxData)));
1825 auto hitBreakpointIds = std::make_unique<Array<String16>>();
1837 hitReasons.push_back(std::make_pair(
1845 hitReasons.push_back(std::move(m_breakReason[i]));
1851 std::make_pair(protocol::Debugger::Paused::ReasonEnum::Other, nullptr);
1854 if (otherBreakReasons && std::find(hitReasons.begin(), hitReasons.end(),
1857 std::make_pair(protocol::Debugger::Paused::ReasonEnum::Other, nullptr));
1866 std::unique_ptr<protocol::DictionaryValue> breakAuxData;
1869 breakAuxData = std::move(hitReasons[0].second);
1872 std::unique_ptr<protocol::ListValue> reasons =
1875 std::unique_ptr<protocol::DictionaryValue> reason =
1879 reason->setObject("auxData", std::move(hitReasons[i].second));
1880 reasons->pushValue(std::move(reason));
1883 breakAuxData->setArray("reasons", std::move(reasons));
1886 std::unique_ptr<Array<CallFrame>> protocolCallFrames;
1889 protocolCallFrames = std::make_unique<Array<CallFrame>>();
1891 m_frontend.paused(std::move(protocolCallFrames), breakReason,
1892 std::move(breakAuxData), std::move(hitBreakpointIds),
1903 std::unique_ptr<protocol::DictionaryValue> data) {
1905 std::vector<BreakReason> currentScheduledReason;
1907 pushBreakDetails(breakReason, std::move(data));
1944 std::vector<V8DebuggerScript*> scripts;
1960 std::vector<uint8_t> bytecode;
1969 std::move(bytecode)};
1971 m_cachedScripts.push_back(std::move(cachedScript));
1984 std::unordered_map<String16, std::vector<std::pair<int, int>>> skipListInit;
1985 for (std::unique_ptr<protocol::Debugger::LocationRange>& range : *skipList) {
2013 m_skipList = std::move(skipListInit);