| /arkcompiler/ets_runtime/ecmascript/mem/ |
| D | visitor.h | 26 enum class Root { enum 89 virtual void VisitRoot([[maybe_unused]] Root type, [[maybe_unused]] ObjectSlot slot) = 0; 91 virtual void VisitRangeRoot([[maybe_unused]] Root type, [[maybe_unused]] ObjectSlot start, 94 … virtual void VisitBaseAndDerivedRoot([[maybe_unused]] Root type, [[maybe_unused]] ObjectSlot base, 106 virtual bool VisitRoot([[maybe_unused]] Root type, [[maybe_unused]] ObjectSlot slot) = 0; 115 static inline void IterateBody(TaggedObject *root, BaseObjectVisitor<DerivedVisitor> &visitor) in IterateBody() argument 119 visitor(root, ToUintPtr(root), in IterateBody() 120 ToUintPtr(root) + hclassEnd, VisitObjectArea::NORMAL); in IterateBody() 122 visitor(root, ToUintPtr(root) + hclassEnd, in IterateBody() 123 ToUintPtr(root) + size, VisitObjectArea::RAW_DATA); in IterateBody() [all …]
|
| D | layout_visitor.h | 29 static inline void IterateBody(TaggedObject *root, BaseObjectVisitor<DerivedVisitor> &visitor) in IterateBody() argument 31 auto hclass = root->SynchronizedGetClass(); in IterateBody() 35 IteratorRange(root, visitor, size, objSize, VisitObjectArea::NORMAL); in IterateBody() 37 IteratorRange(root, visitor, size, objSize, VisitObjectArea::IN_OBJECT); in IterateBody() 43 static inline void IteratorRange(TaggedObject *root, BaseObjectVisitor<DerivedVisitor> &visitor, in IteratorRange() argument 46 visitor(root, ToUintPtr(root) + start, ToUintPtr(root) + end, area); in IteratorRange()
|
| D | verification.h | 110 void VisitRoot([[maybe_unused]] Root type, ObjectSlot slot) override; 111 void VisitRangeRoot([[maybe_unused]] Root type, ObjectSlot start, ObjectSlot end) override; 112 … void VisitBaseAndDerivedRoot([[maybe_unused]] Root type, ObjectSlot base, ObjectSlot derived, 147 void VisitRoot([[maybe_unused]] Root type, ObjectSlot slot) override; 148 void VisitRangeRoot([[maybe_unused]] Root type, ObjectSlot start, ObjectSlot end) override; 149 … void VisitBaseAndDerivedRoot([[maybe_unused]] Root type, ObjectSlot base, ObjectSlot derived, 162 void VisitRoot([[maybe_unused]] Root type, ObjectSlot slot) override; 163 void VisitRangeRoot([[maybe_unused]] Root type, ObjectSlot start, ObjectSlot end) override; 164 … void VisitBaseAndDerivedRoot([[maybe_unused]] Root type, ObjectSlot base, ObjectSlot derived, 185 …void VisitObjectRangeImpl(BaseObject *root, uintptr_t startAddr, uintptr_t endAddr, VisitObjectAre… in VisitObjectRangeImpl() argument [all …]
|
| D | gc_root.h | 26 * When CMCGC is enabled, this class ensures that root references can be safely 36 * that a new root reference has been created. 38 * and act as a write-barrier for the root container. 53 // Copying is forbidden to prevent accidental root duplication 84 * Allows GC to visit this root during root scanning phases. 107 size_t operator()(const GCRoot &root) const in operator() 109 return std::hash<JSTaggedType>()(root.objPtr_.GetRawData()); in operator()
|
| /arkcompiler/ets_runtime/compiler_service/ |
| D | ark_aot_compiler.cfg | 5 "mkdir /data/app/el1/public/aot_compiler 0711 root root", 6 "mkdir /data/app/el1/public/aot_compiler/ark_cache 0711 root root", 7 "mkdir /data/app/el1/0/aot_compiler 0711 root root", 8 "mkdir /data/app/el1/0/aot_compiler/ark_profile 0711 root root",
|
| /arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/templates/ |
| D | arktsconfig.json | 3 "baseUrl": "$ROOT", 5 "std": ["$ROOT/plugins/ets/stdlib/std"], 6 "escompat": ["$ROOT/plugins/ets/stdlib/escompat"], 7 "api": ["$ROOT/plugins/ets/sdk/api"], 8 "arkts": ["$ROOT/plugins/ets/sdk/arkts"], 10 "$ROOT/tools/es2panda/test/parser/ets/import_tests"]
|
| /arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ |
| D | work_dir.py | 31 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/runtime_core/static_core/tests/tests-u-runner-2/runner/suites/ |
| D | work_dir.py | 33 return self.root / self.__config.general.report_dir_name 37 return self.root / "gen" 41 return self.root / "intermediate" 44 def root(self) -> Path: member in WorkDir 45 …root = Path(self.__config.test_suite.work_dir) if self.__config.test_suite.work_dir else self.__de… 46 root.mkdir(parents=True, exist_ok=True) 47 return root 51 return CoverageDir(self.__config.general, self.root)
|
| /arkcompiler/ets_runtime/common_components/heap/allocator/tests/ |
| D | treap_test.cpp | 74 const Treap::TreapNode* root = treap_.RootNode(); in HWTEST_F_L0() local 75 ASSERT_NE(root, nullptr); in HWTEST_F_L0() 76 EXPECT_EQ(root->GetIndex(), 100u); in HWTEST_F_L0() 77 EXPECT_EQ(root->GetCount(), 10u); in HWTEST_F_L0() 88 const Treap::TreapNode* root = treap_.RootNode(); in HWTEST_F_L0() local 89 ASSERT_NE(root, nullptr); in HWTEST_F_L0() 90 EXPECT_EQ(root->GetIndex(), 100u); in HWTEST_F_L0() 91 EXPECT_EQ(root->GetCount(), 15u); in HWTEST_F_L0() 103 const Treap::TreapNode* root = treap_.RootNode(); in HWTEST_F_L0() local 104 ASSERT_NE(root, nullptr); in HWTEST_F_L0() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/playground/frontend/src/models/ |
| D | syntax.test.ts | 23 root: [ 32 expect(result.tokenizer.root[0][0]).toEqual(/(test)/); 33 expect(result.tokenizer.root[1][0]).toBe('not a regex'); 39 root: [ 48 expect(result.tokenizer.root[0][0]).toEqual(/deepRegex/); 49 expect(result.tokenizer.root[1][0]).toBe('regular string'); 55 root: [ 70 root: [ 78 expect(result.tokenizer.root[0][0]).toBe('/unclosed regex');
|
| /arkcompiler/ets_runtime/ecmascript/serializer/ |
| D | base_serializer.cpp | 115 bool BaseSerializer::SerializeSpecialObjIndividually(JSType objectType, TaggedObject *root, in SerializeSpecialObjIndividually() argument 120 SerializeHClassFieldIndividually(root, start, end); in SerializeSpecialObjIndividually() 123 SerializeLexicalEnvFieldIndividually(root, start, end); in SerializeSpecialObjIndividually() 126 SerializeSFunctionEnvFieldIndividually(root, start, end); in SerializeSpecialObjIndividually() 129 SerializeSendableEnvFieldIndividually(root, start, end); in SerializeSpecialObjIndividually() 133 SerializeSFunctionFieldIndividually(root, start, end); in SerializeSpecialObjIndividually() 136 SerializeAsyncFunctionFieldIndividually(root, start, end); in SerializeSpecialObjIndividually() 143 void BaseSerializer::SerializeHClassFieldIndividually(TaggedObject *root, ObjectSlot start, ObjectS… in SerializeHClassFieldIndividually() argument 145 ASSERT(root->GetClass()->IsHClass()); in SerializeHClassFieldIndividually() 148 size_t fieldOffset = slot.SlotAddress() - ToUintPtr(root); in SerializeHClassFieldIndividually() [all …]
|
| D | base_serializer.h | 74 …bool SerializeSpecialObjIndividually(JSType objectType, TaggedObject *root, ObjectSlot start, Obje… 75 void SerializeHClassFieldIndividually(TaggedObject *root, ObjectSlot start, ObjectSlot end); 76 void SerializeSFunctionFieldIndividually(TaggedObject *root, ObjectSlot start, ObjectSlot end); 78 void SerializeLexicalEnvFieldIndividually(TaggedObject *root, ObjectSlot start, ObjectSlot end); 79 … void SerializeSFunctionEnvFieldIndividually(TaggedObject *root, ObjectSlot start, ObjectSlot end); 80 … void SerializeSendableEnvFieldIndividually(TaggedObject *root, ObjectSlot start, ObjectSlot end); 81 …void SerializeAsyncFunctionFieldIndividually(TaggedObject *root, ObjectSlot start, ObjectSlot end); 83 …void SerializeTaggedObjField(SerializeType serializeType, TaggedObject *root, ObjectSlot start, Ob…
|
| /arkcompiler/ets_runtime/tools/ap_file_viewer/test/ |
| D | test_ap.py | 30 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/ |
| D | options_custom.py | 35 "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/ets_runtime/ecmascript/js_api/ |
| D | js_api_hasharray_iterator.h | 43 JSHandle<RBTreeNode> root = JSHandle<RBTreeNode>(thread, rootValue); in GetRBTreeCurrentNode() local 44 if (!root->GetLeft(thread).IsHole()) { in GetRBTreeCurrentNode() 45 JSHandle<JSTaggedValue> left(thread, root->GetLeft(thread)); in GetRBTreeCurrentNode() 48 if (!root->GetRight(thread).IsHole()) { in GetRBTreeCurrentNode() 49 JSHandle<JSTaggedValue> right(thread, root->GetRight(thread)); in GetRBTreeCurrentNode() 57 return JSHandle<JSTaggedValue>::Cast(root); in GetRBTreeCurrentNode() 68 JSHandle<JSTaggedValue> root(thread, tableArr->Get(thread, index)); in GetCurrentNode() 69 if (root->IsHole()) { in GetCurrentNode() 74 if (root->IsRBTreeNode()) { in GetCurrentNode() 80 currentNodeValue = root; in GetCurrentNode()
|
| /arkcompiler/ets_frontend/ets2panda/linter/homecheck/src/utils/checker/imageFormat/ |
| D | svg.ts | 21 root: svgReg, 37 function getAttirbutes(root: string): IAttributes | undefined { 38 const widths = root.match(extractorRegExps.width); 39 const heights = root.match(extractorRegExps.height); 40 const viewbox = root.match(extractorRegExps.viewbox); 86 const root = toUTF8String(input).match(extractorRegExps.root); 87 if (root) { 88 const attrs = getAttirbutes(root[0]);
|
| /arkcompiler/runtime_core/static_core/tests/tests-u-runner-2/runner/code_coverage/ |
| D | coverage_dir.py | 34 html_out_path = self.root / "html_report_dir" 55 def root(self) -> Path: member in CoverageDir 56 root = self.__work_dir / "coverage" 57 root.mkdir(parents=True, exist_ok=True) 58 return root 65 profdata_out_path = self.root / "profdata_dir" 71 work_dir = self.root / "work_dir"
|
| /arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/code_coverage/ |
| D | coverage_dir.py | 33 html_out_path = self.root / "html_report_dir" 54 def root(self) -> Path: member in CoverageDir 55 root = self.__work_dir / "coverage" 56 root.mkdir(parents=True, exist_ok=True) 57 return root 64 profdata_out_path = self.root / "profdata_dir" 70 work_dir = self.root / "work_dir"
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | tagged_hash_array.cpp | 98 JSHandle<RBTreeNode> root = LinkedNode::Treeing(thread, node); in TreeingBin() local 99 tab->Set(thread, index, root); in TreeingBin() 182 JSMutableHandle<LinkedNode> root(thread, JSTaggedValue::Undefined()); in SetVal() local 187 root.Update(nextVal); in SetVal() 188 currentKey.Update(root->GetKey(thread)); in SetVal() 189 if (root->GetHash(thread).GetInt() == hash && (!key->IsHole() && in SetVal() 191 root->SetValue(thread, value.GetTaggedValue()); in SetVal() 194 nextVal.Update(root->GetNext(thread)); in SetVal() 198 root->SetNext(thread, newNode); in SetVal() 204 JSHandle<RBTreeNode> root = JSHandle<RBTreeNode>::Cast(node); in SetVal() local [all …]
|
| /arkcompiler/runtime_core/static_core/scripts/cmake-checker/ |
| D | cmake_checker.py | 20 # 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/ |
| D | gc_utils.cpp | 112 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/runtime_core/static_core/tests/tests-u-runner/runner/plugins/declgents2ets/ |
| D | ts_test_dir.py | 24 def __init__(self, static_core_root: str, root: Optional[str] = None) -> None: 26 self.__root = root 30 return self.root / "tests" 37 def root(self) -> Path: member in TsTestDir
|
| /arkcompiler/runtime_core/static_core/compiler/cmake/ |
| D | benchmark_coverage.cmake | 34 …/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/runtime/mem/gc/ |
| D | gc_root.cpp | 63 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/ets_frontend/ets2panda/test/unit/plugin/ |
| D | plugin_proceed_to_state_ast_node_check.cpp | 45 static bool TestAstNodeCheck(es2panda_Context *context, es2panda_AstNode *root) in TestAstNodeCheck() argument 47 std::cout << impl->AstNodeDumpJSONConst(context, root) << std::endl; in TestAstNodeCheck() 49 impl->AstNodeIterateConst(context, root, FindBinaryExpression); in TestAstNodeCheck() 86 auto root = impl->ProgramAst(context, impl->ContextProgram(context)); in main() local 87 if (!TestAstNodeCheck(context, root)) { in main() 91 impl->AstNodeRecheck(context, root); in main()
|