/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/ |
H A D | locations_builder.cpp | 19 #include "compiler/optimizer/ir/locations.h" 73 LocationsInfo *locations = allocator->New<LocationsInfo>(allocator, inst); in LOCATIONS_BUILDER() local 90 locations->SetLocation(i, param); in LOCATIONS_BUILDER() 99 locations->SetDstLocation(GetLocationForReturn(inst)); in LOCATIONS_BUILDER() 107 LocationsInfo *locations = allocator->New<LocationsInfo>(allocator, inst); in LOCATIONS_BUILDER() local 121 locations->SetLocation(i, param); in LOCATIONS_BUILDER() 130 locations->SetLocation(i, Location::MakeStackArgument(stackArgs++)); in LOCATIONS_BUILDER() 132 locations->SetDstLocation(GetLocationForReturn(inst)); in LOCATIONS_BUILDER() 181 LocationsInfo *locations = allocator->New<LocationsInfo>(allocator, inst); in LOCATIONS_BUILDER() local 186 locations in LOCATIONS_BUILDER() 209 LocationsInfo *locations = allocator->New<LocationsInfo>(allocator, inst); LOCATIONS_BUILDER() local 228 LocationsInfo *locations = allocator->New<LocationsInfo>(allocator, inst); LOCATIONS_BUILDER() local 264 LocationsInfo *locations = allocator->New<LocationsInfo>(allocator, inst); LOCATIONS_BUILDER() local 314 LocationsInfo *locations = allocator->New<LocationsInfo>(allocator, inst); LOCATIONS_BUILDER() local 329 LocationsInfo *locations = allocator->New<LocationsInfo>(allocator, inst); LOCATIONS_BUILDER() local 345 LocationsInfo *locations = allocator->New<LocationsInfo>(allocator, inst); LOCATIONS_BUILDER() local 363 LocationsInfo *locations = allocator->New<LocationsInfo>(allocator, inst); LOCATIONS_BUILDER() local 381 LocationsInfo *locations = allocator->New<LocationsInfo>(allocator, inst); LOCATIONS_BUILDER() local [all...] |
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/ |
H A D | thread_state.cpp | 55 void ThreadState::ContinueTo(std::unordered_set<PtLocation, HashLocation> locations) in ContinueTo() argument 58 stepLocations_ = std::move(locations); in ContinueTo() 62 void ThreadState::StepInto(std::unordered_set<PtLocation, HashLocation> locations) in StepInto() argument 66 stepLocations_ = std::move(locations); in StepInto() 70 void ThreadState::StepOver(std::unordered_set<PtLocation, HashLocation> locations) in StepOver() argument 74 stepLocations_ = std::move(locations); in StepOver() 97 BreakpointId ThreadState::SetBreakpoint(const std::vector<PtLocation> &locations) in SetBreakpoint() argument 100 for (auto &location : locations) { in SetBreakpoint()
|
H A D | thread_state.h | 46 void ContinueTo(std::unordered_set<PtLocation, HashLocation> locations); 47 void StepInto(std::unordered_set<PtLocation, HashLocation> locations); 48 void StepOver(std::unordered_set<PtLocation, HashLocation> locations); 52 BreakpointId SetBreakpoint(const std::vector<PtLocation> &locations); 69 // Continue execution until one of the specified locations is reached 75 // Continue execution until one of the locations, other than the current line, is reached 83 // - One of the locations, other than the current line, is reached. 89 // The set of locations has different semantics for various kinds of stepping: 90 // - for CONTINUE_TO it contains the set of locations we should reach to end the step; 91 // - for STEP_INTO and STEP_OVER it contains the set of locations correspondin [all...] |
H A D | debug_info_cache.cpp | 59 std::unordered_set<PtLocation, HashLocation> locations; in GetCurrentLineLocations() local 68 return locations; in GetCurrentLineLocations() 80 locations.emplace(pandaFile->GetFilename().c_str(), methodId, o); in GetCurrentLineLocations() 84 return locations; in GetCurrentLineLocations() 90 std::unordered_set<PtLocation, HashLocation> locations; in GetContinueToLocations() local 94 [lineNumber, &locations](auto pandaFile, auto &, auto methodId, auto &entry, auto next) { in GetContinueToLocations() 113 locations.emplace(pandaFile->GetFilename().data(), methodId, o); in GetContinueToLocations() 117 return locations; in GetContinueToLocations() 124 std::vector<PtLocation> locations; in GetBreakpointLocations() local 132 [lineNumber, &sourceFiles, &locations](aut in GetBreakpointLocations() [all...] |
H A D | debuggable_thread.cpp | 44 void DebuggableThread::ContinueTo(std::unordered_set<PtLocation, HashLocation> locations) in ContinueTo() argument 47 state_.ContinueTo(std::move(locations)); in ContinueTo() 51 void DebuggableThread::StepInto(std::unordered_set<PtLocation, HashLocation> locations) in StepInto() argument 54 state_.StepInto(std::move(locations)); in StepInto() 58 void DebuggableThread::StepOver(std::unordered_set<PtLocation, HashLocation> locations) in StepOver() argument 61 state_.StepOver(std::move(locations)); in StepOver() 96 BreakpointId DebuggableThread::SetBreakpoint(const std::vector<PtLocation> &locations) in SetBreakpoint() argument 99 return state_.SetBreakpoint(locations); in SetBreakpoint()
|
H A D | debuggable_thread.h | 57 // Continues execution of a paused thread until it reaches one of the locations 58 void ContinueTo(std::unordered_set<PtLocation, HashLocation> locations); 61 void StepInto(std::unordered_set<PtLocation, HashLocation> locations); 64 void StepOver(std::unordered_set<PtLocation, HashLocation> locations); 83 // Sets a breakpoint on the locations. Returns the breakpoint ID 84 BreakpointId SetBreakpoint(const std::vector<PtLocation> &locations);
|
H A D | inspector_server.cpp | 266 result.AddProperty("locations", [scriptId, &lineNumbers](JsonArrayBuilder &array) { in OnCallDebuggerGetPossibleBreakpoints() 405 result.AddProperty("locations", [this, lineNumber, &sourceFiles, thread](JsonArrayBuilder &locations) { in OnCallDebuggerSetBreakpointByUrl() 406 AddBreakpointByUrlLocations(locations, sourceFiles, lineNumber, thread); in OnCallDebuggerSetBreakpointByUrl() 614 void InspectorServer::AddBreakpointByUrlLocations(JsonArrayBuilder &locations, in AddBreakpointByUrlLocations() argument 619 locations.Add([this, lineNumber, thread, sourceFile](JsonObjectBuilder &location) { in AddBreakpointByUrlLocations()
|
/arkcompiler/toolchain/test/autotest/aw/cdp/ |
H A D | debugger.py | 87 locations: list = field(default_factory=list) 107 locations = [] 108 for location in params.locations: 109 locations.append(location.to_json()) 111 'params': {'locations': locations}}
|
/arkcompiler/runtime_core/static_core/runtime/profilesaver/ |
H A D | profile_saver.cpp | 239 LOG(INFO, RUNTIME) << " Step2.2: starting tracking all the pandafile locations and flush the cache"; in TranverseAndCacheResolvedClassAndMethods() 243 const PandaSet<PandaString> &locations = it.second; in TranverseAndCacheResolvedClassAndMethods() local 248 LOG(INFO, RUNTIME) << " all the locations are:"; in TranverseAndCacheResolvedClassAndMethods() 249 for (auto const &iter : locations) { in TranverseAndCacheResolvedClassAndMethods() 256 if (locations.find(ConvertToString(ref.pandaFile->GetFilename())) != locations.end()) { in TranverseAndCacheResolvedClassAndMethods() 266 if (locations.find(classes.GetPandaFileLocation()) != locations.end()) { in TranverseAndCacheResolvedClassAndMethods()
|
/arkcompiler/toolchain/test/autotest/scenario_test/ |
H A D | test_debug_02.py | 147 locations = [debugger.BreakLocationUrl(url=self.config['file_path']['index'], line_number=53),
149 params = debugger.SetBreakpointsLocations(locations)
152 assert response['result']['locations'][0]['id'] == 'id:53:0:' + self.config['file_path']['index']
153 assert response['result']['locations'][1]['id'] == 'id:57:0:' + self.config['file_path']['index']
178 locations = [debugger.BreakLocationUrl(url=self.config['file_path']['worker'], line_number=11)]
179 params = debugger.SetBreakpointsLocations(locations)
182 assert response['result']['locations'][0]['id'] == 'id:11:0:' + self.config['file_path']['worker']
224 locations = [debugger.BreakLocationUrl(url=self.config['file_path']['worker'], line_number=11)]
225 params = debugger.SetBreakpointsLocations(locations)
228 assert response['result']['locations'][ [all...] |
H A D | test_debug_04.py | 138 locations = [debugger.BreakLocationUrl(url=self.config['file_path']['index'], line_number=10),
141 params = debugger.SetBreakpointsLocations(locations)
144 assert response['result']['locations'][0]['id'] == 'id:10:0:' + self.config['file_path']['index']
145 assert response['result']['locations'][1]['id'] == 'id:17:0:' + self.config['file_path']['index']
146 assert response['result']['locations'][2]['id'] == 'id:25:0:' + self.config['file_path']['index']
169 locations = [debugger.BreakLocationUrl(url=self.config['file_path']['index'], line_number=10),
172 params = debugger.SetBreakpointsLocations(locations)
175 assert response['result']['locations'][0]['id'] == 'id:10:0:' + self.config['file_path']['index']
176 assert response['result']['locations'][1]['id'] == 'id:17:0:' + self.config['file_path']['index']
177 assert response['result']['locations'][ [all...] |
H A D | test_debug_01.py | 157 locations = [debugger.BreakLocationUrl(url=self.config['file_path']['index'], line_number=12), 160 params = debugger.SetBreakpointsLocations(locations) 163 assert response['result']['locations'][0]['id'] == 'id:12:0:' + self.config['file_path']['index'] 164 assert response['result']['locations'][1]['id'] == 'id:53:0:' + self.config['file_path']['index'] 165 assert response['result']['locations'][2]['id'] == 'id:57:0:' + self.config['file_path']['index'] 239 locations = [debugger.BreakLocationUrl(url=self.config['file_path']['worker'], line_number=11)] 240 params = debugger.SetBreakpointsLocations(locations) 243 assert response['result']['locations'][0]['id'] == 'id:11:0:' + self.config['file_path']['worker'] 246 assert response['result']['locations'][0]['id'] == 'id:11:0:' + self.config['file_path']['worker'] 325 locations [all...] |
H A D | test_debug_03.py | 170 locations = [debugger.BreakLocationUrl(url=self.config['file_path']['index'], line_number=10),
173 params = debugger.SetBreakpointsLocations(locations)
176 assert response['result']['locations'][0]['id'] == 'id:10:0:' + self.config['file_path']['index']
177 assert response['result']['locations'][1]['id'] == 'id:17:0:' + self.config['file_path']['index']
178 assert response['result']['locations'][2]['id'] == 'id:25:0:' + self.config['file_path']['index']
201 locations = [debugger.BreakLocationUrl(url=self.config['file_path']['index'], line_number=10),
204 params = debugger.SetBreakpointsLocations(locations)
207 assert response['result']['locations'][0]['id'] == 'id:10:0:' + self.config['file_path']['index']
208 assert response['result']['locations'][1]['id'] == 'id:17:0:' + self.config['file_path']['index']
209 assert response['result']['locations'][ [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/ |
H A D | source_meta.py | 46 locations: List[debugger.Location] | None = None 53 def locations(self, script_id: runtime.ScriptId): member in SourceMeta
|
/arkcompiler/toolchain/tooling/test/testcases/ |
H A D | js_special_location_breakpoint_test.h | 87 std::unique_ptr<PtJson> locations = nullptr; in RecvBreakpointInfo() local 88 ret = result->GetArray("locations", &locations); in RecvBreakpointInfo() 94 ret = locations->Get(0)->GetInt("lineNumber", &lineNumber); in RecvBreakpointInfo()
|
H A D | js_step_over_test.h | 114 void SetJSPtLocation(size_t *arr, size_t number, std::vector<JSPtLocation> &locations) in SetJSPtLocation() argument 119 locations.push_back(location_); in SetJSPtLocation()
|
H A D | js_step_out_test.h | 110 void SetJSPtLocation(size_t *arr, size_t number, std::vector<JSPtLocation> &locations) in SetJSPtLocation() argument 115 locations.push_back(location_); in SetJSPtLocation()
|
H A D | js_step_into_test.h | 114 void SetJSPtLocation(size_t *arr, size_t number, std::vector<JSPtLocation> &locations) in SetJSPtLocation() argument 119 locations.push_back(location); in SetJSPtLocation()
|
/arkcompiler/toolchain/tooling/test/ |
H A D | debugger_returns_test.cpp | 77 auto locations = std::vector<std::unique_ptr<Location>>(); in HWTEST_F_L0() local 80 locations.emplace_back(std::move(location)); in HWTEST_F_L0() 82 = std::make_unique<SetBreakpointByUrlReturns>("11", std::move(locations)); in HWTEST_F_L0() 89 ASSERT_EQ(setBreakpointByUrlReturns->ToJson()->GetArray("locations", &locationsJson), Result::SUCCESS); in HWTEST_F_L0() 118 auto locations = std::vector<std::unique_ptr<BreakLocation>>(); in HWTEST_F_L0() local 121 locations.emplace_back(std::move(breakLocation)); in HWTEST_F_L0() 123 <GetPossibleBreakpointsReturns>(std::move(locations)); in HWTEST_F_L0() 126 ASSERT_EQ(getPossibleBreakpointsReturns->ToJson()->GetArray("locations", &locationsJson), Result::SUCCESS); in HWTEST_F_L0() 420 auto locations = std::vector<std::unique_ptr<BreakpointReturnInfo>>(); in HWTEST_F_L0() local 423 locations in HWTEST_F_L0() [all...] |
/arkcompiler/toolchain/tooling/base/ |
H A D | pt_returns.h | 70 explicit SetBreakpointByUrlReturns(const std::string &id, std::vector<std::unique_ptr<Location>> locations) in SetBreakpointByUrlReturns() argument 71 : id_(id), locations_(std::move(locations)) in SetBreakpointByUrlReturns() 88 explicit GetPossibleAndSetBreakpointByUrlReturns(std::vector<std::unique_ptr<BreakpointReturnInfo>> locations) in GetPossibleAndSetBreakpointByUrlReturns() argument 89 : locations_(std::move(locations)) in GetPossibleAndSetBreakpointByUrlReturns() 123 explicit GetPossibleBreakpointsReturns(std::vector<std::unique_ptr<BreakLocation>> locations) in GetPossibleBreakpointsReturns() argument 124 : locations_(std::move(locations)) in GetPossibleBreakpointsReturns()
|
/arkcompiler/ets_runtime/ecmascript/stackmap/llvm/ |
H A D | llvm_stackmap_type.h | 173 std::vector<struct LocationTy> locations; member 178 auto size = locations.size(); in Print() 181 locations[i].Print(); in Print()
|
H A D | llvm_stackmap_parser.cpp | 85 const int lastDeoptIndex = record.locations[LocationTy::CONSTANT_DEOPT_CNT_INDEX].offsetOrSmallConstant + in CalcCallSite() 89 const struct LocationTy &loc = record.locations[j]; in CalcCallSite() 204 stkSizeRecord.locations.push_back(location); in CalculateStackMap()
|
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/tests/ |
H A D | inspector_server.cpp | 248 std::vector<testing::Matcher<JsonObject::JsonObjPointer>> locations; 250 locations.push_back( 255 JsonProperties(JsonProperty<JsonObject::ArrayT> {"locations", JsonElementsAreArray(locations)})); 306 std::vector<testing::Matcher<JsonObject::JsonObjPointer>> locations; in TEST_F() 469 std::vector<testing::Matcher<JsonObject::JsonObjPointer>> locations; in TEST_F() 470 locations.push_back(testing::Pointee( in TEST_F() 477 JsonProperty<JsonObject::ArrayT> {"locations", JsonElementsAreArray(locations)})); in TEST_F()
|
/arkcompiler/runtime_core/static_core/compiler/tools/paoc/ |
H A D | paoc.cpp | 202 LOG_PAOC(FATAL) << "We can't use --paoc-boot-panda-locations with --paoc-boot-location\n"; in ValidateCompilerOptions() 204 auto locations = paoc_->paocOptions_->GetPaocBootPandaLocations(); in ValidateCompilerOptions() local 208 if (i >= locations.size()) { in ValidateCompilerOptions() 209 EVENT_PAOC("Numbers of files in --paoc-boot-panda-locations and --boot-panda-files are different"); in ValidateCompilerOptions() 211 << "number of locations in --paoc-boot-panda-locations less then files in --boot-panda-files\n"; in ValidateCompilerOptions() 213 auto filename = locations[i]; in ValidateCompilerOptions() 216 EVENT_PAOC("different files in --paoc-boot-panda-locations and --boot-panda-files"); in ValidateCompilerOptions() 217 LOG_PAOC(ERROR) << "The file from --paoc-boot-panda-locations: " << filename; in ValidateCompilerOptions() 225 if (i != locations in ValidateCompilerOptions() [all...] |
/arkcompiler/runtime_core/static_core/libllvmbackend/object_code/ |
H A D | dump.cpp | 65 for (const auto &loc : record.locations()) { in DumpStackMapRecord()
|