Home
last modified time | relevance | path

Searched refs:url (Results 1 - 25 of 73) sorted by relevance

123

/arkcompiler/ets_runtime/ecmascript/extractortool/tests/
H A Dsource_map_test.cpp195 bool TranslateUrlPositionBySourceMap(std::string &url, int &line, int &column) in TranslateUrlPositionBySourceMap() argument
197 return sourceMap.TranslateUrlPositionBySourceMap(url, line, column); in TranslateUrlPositionBySourceMap()
258 std::string url = "test.js"; in HWTEST_F_L0() local
259 // if url contains ".js" returns true in HWTEST_F_L0()
260 EXPECT_FALSE(sourceMap.TranslateUrlPositionBySourceMap(url, line, column)); in HWTEST_F_L0()
262 // if it can't find sources which match url after init, returns false and throw Translate failed in HWTEST_F_L0()
263 // e.g. 1. sourceMapData is valid, but url is not valid; in HWTEST_F_L0()
265 url = "entry/src/main/ets/pages/Index1.ts"; in HWTEST_F_L0()
266 EXPECT_FALSE(sourceMap.TranslateUrlPositionBySourceMap(url, line, column)); in HWTEST_F_L0()
270 url in HWTEST_F_L0()
[all...]
/arkcompiler/ets_runtime/ecmascript/debugger/
H A Dhot_reload_manager.cpp55 std::vector<DebugInfoExtractor *> HotReloadManager::GetPatchExtractors(const std::string &url) const in GetPatchExtractors()
58 auto iter = patchExtractors_.find(url); in GetPatchExtractors()
77 const std::string &url = patchExtractor->GetSourceFile(mainMethodIndex); in ExtractPatch() local
78 if (url.empty()) { in ExtractPatch()
82 patchExtractors_[url].emplace_back(patchExtractor); in ExtractPatch()
/arkcompiler/toolchain/test/autotest/aw/cdp/
H A Ddebugger.py43 url: str
66 url: str
72 json = {'url': self.url,
82 url: str = ""
102 'params': {'url': params.url}}
177 'params': {'url': params.url, 'lineNumber': params.line_number}}
/arkcompiler/ets_runtime/ecmascript/extractortool/src/
H A Dsource_map.cpp121 std::string url; in SplitSourceMap() local
127 url = tmp.substr(REAL_URL_INDEX, tmp.size() - REAL_SOURCE_SIZE); in SplitSourceMap()
134 sources_.emplace(url, tmp); in SplitSourceMap()
139 mappings_.emplace(url, tmp); in SplitSourceMap()
337 bool SourceMap::TranslateUrlPositionBySourceMap(std::string& url, int& line, int& column) in TranslateUrlPositionBySourceMap() argument
339 std::string tmp = sources_[url]; in TranslateUrlPositionBySourceMap()
341 LOG_ECMA(ERROR) << "Translate failed, url: " << url; in TranslateUrlPositionBySourceMap()
345 if (url.rfind(".js") != std::string::npos) { in TranslateUrlPositionBySourceMap()
346 url in TranslateUrlPositionBySourceMap()
[all...]
/arkcompiler/ets_runtime/ecmascript/dfx/cpu_profiler/tests/
H A Dsamples_record_test.cpp258 EXPECT_EQ(entry1.url, ""); in HWTEST_F_L0()
261 entry2.url = "some_url.js"; in HWTEST_F_L0()
265 EXPECT_EQ(entry2.url, "some_url.js"); in HWTEST_F_L0()
268 entry3.url = "path/to/_.js"; in HWTEST_F_L0()
272 EXPECT_EQ(entry3.url, "path/to/_.js"); in HWTEST_F_L0()
275 entry4.url = "entry/some_key.ets"; in HWTEST_F_L0()
279 EXPECT_EQ(entry4.url, "entry/build/default/cache/default/default@CompileArkTS/esmodule/debug/some_key.js"); in HWTEST_F_L0()
282 entry5.url = "entry/some_key.other"; in HWTEST_F_L0()
286 EXPECT_EQ(entry5.url, "entry/some_key.other"); in HWTEST_F_L0()
289 entry6.url in HWTEST_F_L0()
[all...]
/arkcompiler/ets_runtime/ecmascript/dfx/cpu_profiler/
H A Dsamples_record.cpp188 std::string url = codeEntry.url; in StringifyNodes() local
189 replace(url.begin(), url.end(), '\\', '/'); in StringifyNodes()
194 + std::to_string(codeEntry.scriptId) + "\",\"url\":\"" in StringifyNodes()
195 + url + "\",\"lineNumber\":" in StringifyNodes()
523 frameInfo.url = frameInfoTemps[i].url; in FrameInfoTempToMap()
524 auto iter = scriptIdMap_.find(frameInfo.url); in FrameInfoTempToMap()
526 scriptIdMap_.emplace(frameInfo.url, scriptIdMap in FrameInfoTempToMap()
[all...]
/arkcompiler/ets_frontend/test/scripts/utils/commit_message/
H A Dget_commit_message.py46 url = url_prefix + name + url_suffix
48 return url
51 def get_html(url):
57 response = requests.get(url, headers=headers)
87 url = get_url(repo_name, str(page))
88 html = get_html(url)
/arkcompiler/toolchain/tooling/base/
H A Dpt_script.cpp21 PtScript::PtScript(ScriptId scriptId, const std::string &fileName, const std::string &url, const std::string &source) in PtScript() argument
24 url_(url), in PtScript()
H A Dpt_script.h32 PtScript(ScriptId scriptId, const std::string &fileName, const std::string &url, const std::string &source);
60 void SetUrl(const std::string &url) in SetUrl() argument
62 url_ = url; in SetUrl()
114 std::string sourceMapUrl_ {}; // source map url
/arkcompiler/ets_runtime/ecmascript/jspandafile/
H A Ddebug_info_extractor.h96 const std::string &url, const std::unordered_set<std::string> &debugRecordName) in MatchWithLocation()
133 // the url for testcases is empty in MatchWithLocation()
134 if (!url.empty() && sourceFile != url) { in MatchWithLocation()
149 return cb(JSPtLocation(jsPandaFile_, methodId, pair.offset, url)); in MatchWithLocation()
160 return cb(JSPtLocation(jsPandaFile_, minColumnMethodId, minColumnOffset, url)); in MatchWithLocation()
163 return cb(JSPtLocation(jsPandaFile_, currentMethodId, currentOffset, url)); in MatchWithLocation()
95 MatchWithLocation(const Callback &cb, int32_t line, int32_t column, const std::string &url, const std::unordered_set<std::string> &debugRecordName) MatchWithLocation() argument
/arkcompiler/toolchain/test/autotest/scenario_test/
H A Dtest_debug_04.py138 locations = [debugger.BreakLocationUrl(url=self.config['file_path']['index'], line_number=10),
139 debugger.BreakLocationUrl(url=self.config['file_path']['index'], line_number=17),
140 debugger.BreakLocationUrl(url=self.config['file_path']['index'], line_number=25)]
155 assert response['params']['url'] == self.config['file_path']['index']
159 assert response['params']['callFrames'][0]['url'] == self.config['file_path']['index']
169 locations = [debugger.BreakLocationUrl(url=self.config['file_path']['index'], line_number=10),
170 debugger.BreakLocationUrl(url=self.config['file_path']['index'], line_number=17),
171 debugger.BreakLocationUrl(url=self.config['file_path']['index'], line_number=25)]
184 assert response['params']['callFrames'][0]['url'] == self.config['file_path']['index']
202 assert response['params']['callFrames'][0]['url']
[all...]
H A Dtest_debug_03.py117 assert response['params']['url'] == self.config['file_path']['entry_ability']
123 assert response['params']['callFrames'][0]['url'] == self.config['file_path']['entry_ability']
133 assert response['params']['url'] == self.config['file_path']['index']
139 assert response['params']['callFrames'][0]['url'] == self.config['file_path']['index']
170 locations = [debugger.BreakLocationUrl(url=self.config['file_path']['index'], line_number=10),
171 debugger.BreakLocationUrl(url=self.config['file_path']['index'], line_number=17),
172 debugger.BreakLocationUrl(url=self.config['file_path']['index'], line_number=25)]
187 assert response['params']['url'] == self.config['file_path']['index']
191 assert response['params']['callFrames'][0]['url'] == self.config['file_path']['index']
201 locations = [debugger.BreakLocationUrl(url
[all...]
H A Dtest_debug_02.py147 locations = [debugger.BreakLocationUrl(url=self.config['file_path']['index'], line_number=53),
148 debugger.BreakLocationUrl(url=self.config['file_path']['index'], line_number=57)]
162 assert response['params']['callFrames'][0]['url'] == self.config['file_path']['index']
178 locations = [debugger.BreakLocationUrl(url=self.config['file_path']['worker'], line_number=11)]
189 assert response['params']['callFrames'][0]['url'] == self.config['file_path']['index']
210 assert response['params']['url'] == self.config['file_path']['worker']
214 assert response['params']['callFrames'][0]['url'] == self.config['file_path']['worker']
224 locations = [debugger.BreakLocationUrl(url=self.config['file_path']['worker'], line_number=11)]
239 assert response['params']['callFrames'][0]['url'] == self.config['file_path']['index']
244 assert response['params']['callFrames'][0]['url']
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dir_module.cpp30 std::string url = debugExtractor->GetSourceFile(methodId); in GetFuncName() local
32 name += std::string("@") + url + std::string("@") + std::to_string(offset) + std::string("@") + fileName; in GetFuncName()
/arkcompiler/toolchain/tooling/agent/
H A Ddebugger_impl.cpp94 const std::string &url = extractor->GetSourceFile(mainMethodIndex); in NotifyScriptParsed() local
100 recordNames_[url].insert(recordName); in NotifyScriptParsed()
104 if (MatchUrlAndFileName(url, fileName)) { in NotifyScriptParsed()
107 urlFileNameMap_[url].insert(fileName); in NotifyScriptParsed()
110 std::unique_ptr<PtScript> script = std::make_unique<PtScript>(g_scriptId++, fileName, url, source); in NotifyScriptParsed()
119 bool DebuggerImpl::SendableScriptParsed(const std::string &fileName, const std::string &url, in SendableScriptParsed() argument
126 recordNames_[url].insert(recordName); in SendableScriptParsed()
131 urlFileNameMap_[url].insert(fileName); in SendableScriptParsed()
133 std::unique_ptr<PtScript> script = std::make_unique<PtScript>(g_scriptId++, fileName, url, source); in SendableScriptParsed()
174 const std::string &url in SendableMethodEntry() local
186 MatchUrlAndFileName(const std::string &url, const std::string &fileName) MatchUrlAndFileName() argument
1114 const std::string &url = iter->second->GetUrl(); GetPossibleBreakpoints() local
1200 std::string url = params.GetUrl(); RemoveBreakpointsByUrl() local
1231 AddBreakpointDetail(const std::string &url, int32_t lineNumber, std::string *outId, std::vector<std::unique_ptr<Location>> *outLocations) AddBreakpointDetail() argument
1256 const std::string &url = params.GetUrl(); SetBreakpointByUrl() local
1332 const std::string &url = breakpoint.GetUrl(); ProcessSingleBreakpoint() local
1610 GetExtractors(const std::string &url) GetExtractors() argument
1687 std::string url = extractor->GetSourceFile(methodId); GenerateCallFrame() local
[all...]
H A Ddebugger_impl.h43 bool SendableScriptParsed(const std::string &fileName, const std::string &url,
47 bool MatchUrlAndFileName(const std::string &url, const std::string &fileName);
61 void AddBreakpointDetail(const std::string &url, int32_t lineNumber,
135 std::vector<PtScript *> MatchAllScripts(const std::string &url) const in MatchAllScripts()
139 if (url == script.second->GetUrl()) { in MatchAllScripts()
229 std::vector<DebugInfoExtractor *> GetExtractors(const std::string &url);
260 const std::unordered_set<std::string> &GetRecordName(const std::string &url) in GetRecordName() argument
263 auto iter = recordNames_.find(url); in GetRecordName()
/arkcompiler/ets_runtime/test/moduletest/builtins/
H A Dbuiltinsregexp.js25 const url = 'https://designcloud.uiplus.huawei.com/tool//materialServer/upload/images/20210608_5V0J5lVh4xVNYx0AUE.jpg';
26 const data = url.match(/(?<=\/)\w+(.jpg)$/);
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/
H A Ddebug_connection.py110 async def connect_cdp(nursery: trio.Nursery, url, max_retries: int) -> DebugConnection:
117 url,
145 async def get_by_url(self, url: str) -> Optional[debugger.ScriptParsed]:
148 if url == s.url:
H A Dlayouts.py85 Path(frame.data.url).name,
103 url: Path,
109 code = source_file(url, highlight_lines=highlight_lines)
H A Ddebug_client.py244 async def set_by_url(self, line_number: int, url: Optional[str]) -> None:
246 br, locs = await self.client.set_breakpoint_by_url(line_number=line_number, url=url)
282 def __init__(self, code_compiler: StringCodeCompiler, url: Any) -> None:
284 self.url = url
290 cdp = await connect_cdp(nursery, self.url, 10)
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/tests/
H A Dtest_breaks_props.py114 url=script_file.source_file,
126 url=str(script_file.source_file),
173 url=script_file.source_file,
184 url=str(script_file.source_file),
/arkcompiler/toolchain/tooling/client/domain/
H A Ddebugger_client.h30 std::string url; member
63 void AddBreakPointInfo(const std::string& url, const int& lineNumber, const int& columnNumber = 0);
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/types/
H A Dexception_details.h82 ExceptionDetails &SetUrl(std::string_view url) in SetUrl() argument
84 url_ = url; in SetUrl()
/arkcompiler/ets_frontend/test/scripts/utils/flash_image/
H A Dburn_image.py39 url = data['url_tools']
40 print(f"Getting RKDevTool from {url}")
41 r = requests.get(url, stream=True)
/arkcompiler/toolchain/tooling/client/manager/
H A Dbreakpoint_manager.cpp53 breaklocation.url = breaksplitstring[3]; // 3: url in Createbreaklocation()
65 std::cout << (i + 1) << ':' << " url:" << breaklist_[i].url; in Show()

Completed in 12 milliseconds

123