Home
last modified time | relevance | path

Searched refs:ScriptId (Results 1 – 17 of 17) sorted by relevance

/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/
Dsource_manager.h40 std::pair<ScriptId, bool> GetScriptId(PtThread thread, std::string_view fileName);
41 [[nodiscard]] std::string_view GetSourceFileName(ScriptId id) const;
47 std::unordered_map<std::string, ScriptId> fileNameToId_ GUARDED_BY(mutex_);
48 std::unordered_map<ScriptId, std::string_view> idToFileName_ GUARDED_BY(mutex_);
49 std::map<PtThread, std::unordered_set<ScriptId>> knownSources_ GUARDED_BY(mutex_);
Dsource_manager.cpp23 std::pair<ScriptId, bool> SourceManager::GetScriptId(PtThread thread, std::string_view fileName) in GetScriptId()
28 ScriptId id(p.first->second); in GetScriptId()
40 std::string_view SourceManager::GetSourceFileName(ScriptId id) const in GetSourceFileName()
Dinspector_server.h64 void CallDebuggerScriptParsed(PtThread thread, ScriptId id, std::string_view sourceFile);
Dinspector_server.cpp114 void InspectorServer::CallDebuggerScriptParsed(PtThread thread, ScriptId scriptId, std::string_view… in CallDebuggerScriptParsed()
273 if (auto scriptId = ParseNumericId<ScriptId>(params, "scriptId")) { in OnCallDebuggerGetScriptSource()
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/tests/
Dsource_manager.cpp67 ASSERT_EQ(test_id0.first, ScriptId(0)); in TEST_F()
71 ASSERT_EQ(sm_.GetSourceFileName(ScriptId(1)), ""); in TEST_F()
74 ASSERT_EQ(test_id0.first, ScriptId(0)); in TEST_F()
78 ASSERT_EQ(test_id1.first, ScriptId(1)); in TEST_F()
86 ASSERT_EQ(sm_.GetSourceFileName(ScriptId(5U)), ""); in TEST_F()
92 ASSERT_EQ(test_id0.first, ScriptId(0)); in TEST_F()
Dinspector_server.cpp122 inspectorServer.CallDebuggerScriptParsed(g_mthread, ScriptId(scriptId), g_sourceFile); in TEST_F()
238 static JsonObject CreatePossibleBreakpointsRequest(ScriptId startScriptId, size_t start, ScriptId e… in CreatePossibleBreakpointsRequest()
248 static auto g_getPossibleBreakpointsHandler = [](ScriptId scriptId, size_t start, size_t end, bool …
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/types/
Dlocation.h35 Location(ScriptId scriptId, size_t lineNumber) : scriptId_(scriptId), lineNumber_(lineNumber) {} in Location()
39 ScriptId GetScriptId() const in GetScriptId()
52 ScriptId scriptId_;
Dnumeric_id.h33 using ScriptId = size_t; variable
Dlocation.cpp37 auto scriptId = ParseNumericId<ScriptId>(**property, "scriptId"); in FromJsonProperty()
/arkcompiler/toolchain/tooling/base/
Dpt_script.h32 …PtScript(ScriptId scriptId, const std::string &fileName, const std::string &url, const std::string…
35 ScriptId GetScriptId() const in GetScriptId()
40 void SetScriptId(ScriptId scriptId) in SetScriptId()
109 ScriptId scriptId_ {0}; // start from 0, such as "0","1","2"...
Dpt_script.cpp21 PtScript::PtScript(ScriptId scriptId, const std::string &fileName, const std::string &url, const st… in PtScript()
Dpt_types.h170 using ScriptId = int32_t; variable
214 ScriptId GetScriptId() const in GetScriptId()
219 BreakpointReturnInfo &SetScriptId(ScriptId scriptId) in SetScriptId()
232 ScriptId scriptId_ {0};
643 ScriptId GetScriptId() const in GetScriptId()
648 ExceptionDetails &SetScriptId(ScriptId scriptId) in SetScriptId()
719 std::optional<ScriptId> scriptId_ {};
1133 ScriptId GetScriptId() const in GetScriptId()
1138 Location &SetScriptId(ScriptId scriptId) in SetScriptId()
1173 ScriptId scriptId_ {0};
[all …]
Dpt_events.h324 ScriptId GetScriptId() const in GetScriptId()
329 ScriptFailedToParse &SetScriptId(ScriptId scriptId) in SetScriptId()
547 ScriptId scriptId_ {0};
576 ScriptId GetScriptId() const in GetScriptId()
581 ScriptParsed &SetScriptId(ScriptId scriptId) in SetScriptId()
815 ScriptId scriptId_ {0};
Dpt_params.h166 ScriptId GetScriptId() const in GetScriptId()
175 ScriptId scriptId_ {0};
/arkcompiler/toolchain/test/fuzztest/pttypesexceptiondetailsscriptid_fuzzer/
Dpttypesexceptiondetailsscriptid_fuzzer.cpp33 ScriptId id = (ScriptId)*data; in PtTypesExceptionDetailsScriptIdFuzzTest()
/arkcompiler/toolchain/tooling/agent/
Ddebugger_impl.h41 bool NotifyScriptParsed(ScriptId scriptId, const std::string &fileName,
257 std::unordered_map<ScriptId, std::unique_ptr<PtScript>> scripts_ {};
Ddebugger_impl.cpp70 bool DebuggerImpl::NotifyScriptParsed(ScriptId scriptId, const std::string &fileName, std::string_v… in NotifyScriptParsed()
896 ScriptId scriptId = params.GetScriptId(); in GetScriptSource()
1020 ScriptId scriptId = ptScript->GetScriptId(); in SetBreakpointByUrl()
1096 ScriptId scriptId = ptScript->GetScriptId(); in ProcessSingleBreakpoint()