Home
last modified time | relevance | path

Searched full:root (Results 1 – 25 of 328) sorted by relevance

12345678910>>...14

/arkcompiler/ets_runtime/ecmascript/mem/
Dvisitor.h25 enum class Root { enum
43 using RootVisitor = std::function<void(Root type, ObjectSlot p)>;
44 using RootRangeVisitor = std::function<void(Root type, ObjectSlot start, ObjectSlot end)>;
46 std::function<void(Root type, ObjectSlot base, ObjectSlot derived, uintptr_t baseOldObject)>;
47 using EcmaObjectRangeVisitor = std::function<void(TaggedObject *root, ObjectSlot start, ObjectSlot …
54 static inline void IterateBody(TaggedObject *root, const EcmaObjectRangeVisitor& visitor) in IterateBody() argument
58 visitor(root, ObjectSlot(ToUintPtr(root)), in IterateBody()
59 ObjectSlot(ToUintPtr(root) + hclassEnd), VisitObjectArea::NORMAL); in IterateBody()
61 visitor(root, ObjectSlot(ToUintPtr(root) + hclassEnd), in IterateBody()
62 ObjectSlot(ToUintPtr(root) + size), VisitObjectArea::RAW_DATA); in IterateBody()
[all …]
Dlayout_visitor.h28 static inline void IterateBody(TaggedObject *root, const EcmaObjectRangeVisitor& visitor) in IterateBody() argument
30 auto hclass = root->SynchronizedGetClass(); in IterateBody()
34 IteratorRange(root, visitor, size, objSize, VisitObjectArea::NORMAL); in IterateBody()
36 IteratorRange(root, visitor, size, objSize, VisitObjectArea::IN_OBJECT); in IterateBody()
41 static inline void IteratorRange(TaggedObject *root, const EcmaObjectRangeVisitor& visitor, in IteratorRange() argument
44 visitor(root, ObjectSlot(ToUintPtr(root) + start), ObjectSlot(ToUintPtr(root) + end), area); in IteratorRange()
Dparallel_marker.h80 …virtual inline void HandleRoots(uint32_t threadId, [[maybe_unused]] Root type, ObjectSlot slot) = …
81 …virtual inline void HandleRangeRoots(uint32_t threadId, [[maybe_unused]] Root type, ObjectSlot sta…
83 virtual inline void HandleDerivedRoots(Root type, ObjectSlot base, ObjectSlot derived,
106 inline bool VisitBodyInObj(TaggedObject *root, ObjectSlot start, ObjectSlot end,
110 … inline void HandleRoots(uint32_t threadId, [[maybe_unused]] Root type, ObjectSlot slot) override;
111 inline void HandleRangeRoots(uint32_t threadId, [[maybe_unused]] Root type, ObjectSlot start,
113 inline void HandleDerivedRoots(Root type, ObjectSlot base, ObjectSlot derived,
129 …inline bool VisitBodyInObj(TaggedObject *root, ObjectSlot start, ObjectSlot end, Callback callback…
130 … inline void HandleRoots(uint32_t threadId, [[maybe_unused]] Root type, ObjectSlot slot) override;
131 inline void HandleRangeRoots(uint32_t threadId, [[maybe_unused]] Root type, ObjectSlot start,
[all …]
Dparallel_marker.cpp27 [this, threadId](Root type, ObjectSlot slot) {this->HandleRoots(threadId, type, slot);}, in MarkRoots()
28 [this, threadId](Root type, ObjectSlot start, ObjectSlot end) { in MarkRoots()
31 [this](Root type, ObjectSlot base, ObjectSlot derived, uintptr_t baseOldObject) { in MarkRoots()
122 …EcmaObjectRangeVisitor visitor = [this, threadId, isFullMark, cb](TaggedObject *root, ObjectSlot s… in ProcessMarkStack()
124 Region *rootRegion = Region::ObjectAddressToRange(root); in ProcessMarkStack()
127 if (VisitBodyInObj(root, start, end, needBarrier, cb)) { in ProcessMarkStack()
163 …cmaObjectRangeVisitor visitor = [this, threadId, isFullMark, &visitAddrNum, cb](TaggedObject *root, in ProcessIncrementalMarkStack()
167 Region *rootRegion = Region::ObjectAddressToRange(root); in ProcessIncrementalMarkStack()
171 if (VisitBodyInObj(root, start, end, needBarrier, cb)) { in ProcessIncrementalMarkStack()
209 auto cb = [&](ObjectSlot s, TaggedObject *root) { MarkValue(threadId, root, s); }; in ProcessMarkStack() argument
[all …]
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/
Dwork_dir.py31 return self.root / "report"
35 return self.root / "gen"
39 return self.root / "intermediate"
42 def root(self) -> Path: member in WorkDir
43 root = Path(self.__general.work_dir) if self.__general.work_dir else self.__default_work_dir
44 root.mkdir(parents=True, exist_ok=True)
45 return root
49 return CoverageDir(self.__general, self.root)
/arkcompiler/ets_runtime/ecmascript/serializer/
Dbase_serializer.cpp105 bool BaseSerializer::SerializeSpecialObjIndividually(JSType objectType, TaggedObject *root, in SerializeSpecialObjIndividually() argument
110 SerializeHClassFieldIndividually(root, start, end); in SerializeSpecialObjIndividually()
113 SerializeLexicalEnvFieldIndividually(root, start, end); in SerializeSpecialObjIndividually()
116 SerializeSendableEnvFieldIndividually(root, start, end); in SerializeSpecialObjIndividually()
120 SerializeSFunctionFieldIndividually(root, start, end); in SerializeSpecialObjIndividually()
123 SerializeAsyncFunctionFieldIndividually(root, start, end); in SerializeSpecialObjIndividually()
130 void BaseSerializer::SerializeHClassFieldIndividually(TaggedObject *root, ObjectSlot start, ObjectS… in SerializeHClassFieldIndividually() argument
132 ASSERT(root->GetClass()->IsHClass()); in SerializeHClassFieldIndividually()
135 size_t fieldOffset = slot.SlotAddress() - ToUintPtr(root); in SerializeHClassFieldIndividually()
138 JSHClass *kclass = reinterpret_cast<JSHClass *>(root); in SerializeHClassFieldIndividually()
[all …]
Dbase_serializer.h58 …bool SerializeSpecialObjIndividually(JSType objectType, TaggedObject *root, ObjectSlot start, Obje…
59 void SerializeHClassFieldIndividually(TaggedObject *root, ObjectSlot start, ObjectSlot end);
60 void SerializeSFunctionFieldIndividually(TaggedObject *root, ObjectSlot start, ObjectSlot end);
62 void SerializeLexicalEnvFieldIndividually(TaggedObject *root, ObjectSlot start, ObjectSlot end);
63 … void SerializeSendableEnvFieldIndividually(TaggedObject *root, ObjectSlot start, ObjectSlot end);
64 …void SerializeAsyncFunctionFieldIndividually(TaggedObject *root, ObjectSlot start, ObjectSlot end);
66 …void SerializeTaggedObjField(SerializeType serializeType, TaggedObject *root, ObjectSlot start, Ob…
/arkcompiler/ets_runtime/tools/ap_file_viewer/test/
Dtest_ap.py30 root = None variable
36 global root
43 root = application.shadow_root.find_element(By.CSS_SELECTOR, ".root")
47 global root, file_input, script_directory
48 main_menu = root.find_element(By.TAG_NAME, "lit-main-menu")
62 global root
63 app_content = root.find_element(By.CSS_SELECTOR, ".content")
79 global root
80 search_vessel = root.find_element(By.CSS_SELECTOR, ".search-vessel")
83 …search_input = lit_search.shadow_root.find_element(By.CSS_SELECTOR, ".root").find_element(By.TAG_N…
[all …]
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/options/
Doptions_custom.py35 "test-root": self.test_root,
36 "list-root": self.list_root,
47 @value(yaml_path="custom.test-root", cli_name="custom_test_root", cast_to_type=_to_path)
52 @value(yaml_path="custom.list-root", cli_name="custom_list_root", cast_to_type=_to_path)
71 … "Expected min configuration: --custom-suite XXX --custom-test-root TTT --custom-list-root LLL\n"
72 "With generator: --custom-suite XXX --custom-test-root TTT --custom-list-root LLL "
79 f'--custom-test-root={self.test_root}' if self.test_root is not None else '',
80 f'--custom-list-root={self.list_root}' if self.list_root is not None else '',
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/code_coverage/
Dcoverage_dir.py33 html_out_path = self.root / "html_report_dir"
50 def root(self) -> Path: member in CoverageDir
51 root = self.__work_dir / "coverage"
52 root.mkdir(parents=True, exist_ok=True)
53 return root
60 profdata_out_path = self.root / "profdata_dir"
66 work_dir = self.root / "work_dir"
/arkcompiler/ets_runtime/ecmascript/
Dtagged_hash_array.cpp97 JSHandle<RBTreeNode> root = LinkedNode::Treeing(thread, node); in TreeingBin() local
98 tab->Set(thread, index, root); in TreeingBin()
181 JSMutableHandle<LinkedNode> root(thread, JSTaggedValue::Undefined()); in SetVal() local
186 root.Update(nextVal); in SetVal()
187 currentKey.Update(root->GetKey()); in SetVal()
188 if (root->GetHash().GetInt() == hash && (!key->IsHole() && in SetVal()
190 root->SetValue(thread, value.GetTaggedValue()); in SetVal()
193 nextVal.Update(root->GetNext()); in SetVal()
197 root->SetNext(thread, newNode); in SetVal()
203 JSHandle<RBTreeNode> root = JSHandle<RBTreeNode>::Cast(node); in SetVal() local
[all …]
/arkcompiler/runtime_core/static_core/runtime/mem/gc/
Dgc_root.cpp63 std::ostream &operator<<(std::ostream &os, const GCRoot &root) in operator <<() argument
65 switch (root.GetType()) { in operator <<()
67 os << "ROOT CLASS"; in operator <<()
70 os << "ROOT FRAME"; in operator <<()
73 os << "ROOT THREAD"; in operator <<()
76 os << "ROOT TENURED"; in operator <<()
79 os << "ROOT NATIVE_GLOBAL"; in operator <<()
82 os << "ROOT NATIVE_LOCAL"; in operator <<()
85 os << "ROOT AOT_STRING_SLOT"; in operator <<()
89 LOG(FATAL, GC) << "ROOT UNKNOWN"; in operator <<()
[all …]
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/plugins/hooks/
Dfix_arktsconfig.py30 "baseUrl": "$ROOT",
32 "std": ["$ROOT/plugins/ets/stdlib/std"],
33 "escompat": ["$ROOT/plugins/ets/stdlib/escompat"],
35 "$ROOT/tools/es2panda/test/parser/ets/import_tests"],
37 "$ROOT/tools/es2panda/test/parser/ets/dynamic_import_tests"]
41 "$ROOT/tools/es2panda/test/parser/ets/dynamic_import_tests": {
83 ROOT=str(ark_root.resolve())))
/arkcompiler/runtime_core/static_core/scripts/cmake-checker/
Dcmake_checker.py20 # Root directory for checking
55 for root, dirs, files in os.walk(directory, followlinks=True):
58 # Check if root directory matches any white list path
59 if root.startswith(os.path.join(directory, white_path)):
62 # Check if root directory matches any ignore path
64 … if root.startswith(os.path.join(directory, ignore_path)) or "third_party" in root:
73 …if file == "CMakeLists.txt" or file.endswith(".cmake") and os.path.join(root, file) not in ignore_…
74 cmake_files.append(os.path.join(root, file))
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/
Dgc_utils.cpp112 auto root = stripUntilRoot(val); in HasBeenGcRef() local
113 if (IsGcRefType(root->getType())) { in HasBeenGcRef()
120 roots.push_back(root); in HasBeenGcRef()
127 root = roots.pop_back_val(); in HasBeenGcRef()
128 if (!visited.insert(root).second) { in HasBeenGcRef()
131 if (!llvm::isa<llvm::PHINode, llvm::SelectInst>(root)) { in HasBeenGcRef()
132 if (!llvm::isa<llvm::Constant>(root) && !any) { in HasBeenGcRef()
140 auto inst = llvm::cast<llvm::Instruction>(root); in HasBeenGcRef()
142 root = stripUntilRoot(inst->getOperand(i)); in HasBeenGcRef()
143 if (IsGcRefType(root->getType())) { in HasBeenGcRef()
[all …]
/arkcompiler/toolchain/tooling/test/
Dpt_json_test.cpp145 auto root = PtJson::CreateObject(); in HWTEST_F_L0() local
146 root->Add("a", false); in HWTEST_F_L0()
147 root->Add("b", 100); in HWTEST_F_L0()
148 root->Add("c", 100.2); in HWTEST_F_L0()
149 root->Add("d", static_cast<int64_t>(200)); in HWTEST_F_L0()
150 root->Add("e", "abc"); in HWTEST_F_L0()
151 root->Add("f", child2); in HWTEST_F_L0()
152 root->Add("g", arr); in HWTEST_F_L0()
160 ASSERT_EQ(root->GetBool("a", &b), Result::SUCCESS); in HWTEST_F_L0()
162 ASSERT_EQ(root->GetInt("b", &i32), Result::SUCCESS); in HWTEST_F_L0()
[all …]
/arkcompiler/runtime_core/static_core/runtime/
Dclass_linker_context.h113 for (auto root : roots_) { in VisitGCRoots() local
114 cb(root); in VisitGCRoots()
121 for (auto root : roots_) { in AddGCRoot() local
122 if (root == obj) { in AddGCRoot()
133 for (auto &root : roots_) { in UpdateGCRoots()
134 if (root->IsForwarded()) { in UpdateGCRoots()
135 root = ::ark::mem::GetForwardAddress(root); in UpdateGCRoots()
/arkcompiler/runtime_core/static_core/compiler/cmake/
Dbenchmark_coverage.cmake34 …/compiler/tools/benchmark_coverage.sh --binary-dir=${PANDA_BINARY_ROOT} --root-dir=${PANDA_ROOT} -…
39 …/compiler/tools/benchmark_coverage.sh --binary-dir=${PANDA_BINARY_ROOT} --root-dir=${PANDA_ROOT} -…
44 …/compiler/tools/benchmark_coverage.sh --binary-dir=${PANDA_BINARY_ROOT} --root-dir=${PANDA_ROOT} -…
49 …/compiler/tools/benchmark_coverage.sh --binary-dir=${PANDA_BINARY_ROOT} --root-dir=${PANDA_ROOT} -…
54 …/compiler/tools/benchmark_coverage.sh --binary-dir=${PANDA_BINARY_ROOT} --root-dir=${PANDA_ROOT} -…
60 …/compiler/tools/benchmark_coverage.sh --binary-dir=${PANDA_BINARY_ROOT} --root-dir=${PANDA_ROOT} -…
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/
Dets_test_dir.py24 def __init__(self, static_core_root: str, root: Optional[str] = None) -> None:
26 self.__root = root
30 return self.root / "tests"
53 def root(self) -> Path: member in EtsTestDir
/arkcompiler/ets_runtime/ecmascript/mem/shared_heap/
Dshared_gc_marker.h29 enum class Root; variable
54 …inline bool VisitBodyInObj(TaggedObject *root, ObjectSlot start, ObjectSlot end, Callback callback…
55 inline void HandleRoots(uint32_t threadId, [[maybe_unused]] Root type, ObjectSlot slot);
56 inline void HandleLocalRoots(uint32_t threadId, [[maybe_unused]] Root type, ObjectSlot slot);
57 … inline void HandleLocalRangeRoots(uint32_t threadId, [[maybe_unused]] Root type, ObjectSlot start,
79 …virtual inline void HandleLocalDerivedRoots([[maybe_unused]] Root type, [[maybe_unused]] ObjectSlo… in HandleLocalDerivedRoots()
117 inline void HandleLocalDerivedRoots(Root type, ObjectSlot base, ObjectSlot derived,
129 inline void HandleLocalDerivedRoots(Root type, ObjectSlot base, ObjectSlot derived,
Dshared_gc_marker.cpp55 … [this, threadId](Root type, ObjectSlot slot) {this->HandleLocalRoots(threadId, type, slot);}, in MarkLocalVMRoots()
56 [this, threadId](Root type, ObjectSlot start, ObjectSlot end) { in MarkLocalVMRoots()
59 [this](Root type, ObjectSlot base, ObjectSlot derived, uintptr_t baseOldObject) { in MarkLocalVMRoots()
78 …auto callback = [this, threadId](Root type, ObjectSlot slot) {this->HandleRoots(threadId, type, sl… in MarkSerializeRoots()
85 auto cacheStringCallback = [this, threadId](Root type, ObjectSlot start, ObjectSlot end) { in MarkStringCache()
94 …auto visitor = [this, threadId](Root type, ObjectSlot slot) {this->HandleRoots(threadId, type, slo… in MarkSharedModule()
118 …EcmaObjectRangeVisitor visitor = [this, threadId, cb](TaggedObject *root, ObjectSlot start, Object… in ProcessMarkStack()
121 if (VisitBodyInObj(root, start, end, cb)) { in ProcessMarkStack()
166 …EcmaObjectRangeVisitor visitor = [this, threadId, cb](TaggedObject *root, ObjectSlot start, Object… in ProcessMarkStack()
169 if (VisitBodyInObj(root, start, end, cb)) { in ProcessMarkStack()
/arkcompiler/runtime_core/static_core/tests/cts-generator/runner/reporters/
Djtr_reporter.rb22 @root = Pathname.new(root_dir)
24 actual_file = file.relative_path_from(@root)
26 actual_file = @root.basename if @root.file?
45 @logger.log 1, "$file=#{@root}/CTS/conformance/tests/#{@pa_file}"
46 @logger.log 1, "$root=#{@root}"
/arkcompiler/runtime_core/tests/cts-generator/runner/reporters/
Djtr_reporter.rb22 @root = Pathname.new(root_dir)
24 actual_file = file.relative_path_from(@root)
26 actual_file = @root.basename if @root.file?
45 @logger.log 1, "$file=#{@root}/CTS/conformance/tests/#{@pa_file}"
46 @logger.log 1, "$root=#{@root}"
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/cfg/
Dall-options-with-default-values.yaml43 ets-stdlib-root: null
49 list-root: null
52 report-root: null
55 test-root: null
/arkcompiler/runtime_core/static_core/runtime/tests/
Dclass_linker_test_extension.h50 size_t GetClassVTableSize([[maybe_unused]] ClassRoot root) override in GetClassVTableSize() argument
55 size_t GetClassIMTSize([[maybe_unused]] ClassRoot root) override in GetClassIMTSize() argument
60 size_t GetClassSize(ClassRoot root) override in GetClassSize() argument
62 … return Class::ComputeClassSize(GetClassVTableSize(root), GetClassIMTSize(root), 0, 0, 0, 0, 0, 0); in GetClassSize()

12345678910>>...14