| /arkcompiler/toolchain/tooling/test/ |
| D | pt_json_test.cpp | 145 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/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_runtime/ecmascript/ |
| D | tagged_hash_array.cpp | 101 JSHandle<RBTreeNode> root = LinkedNode::Treeing(thread, node); in TreeingBin() local 102 tab->Set(thread, index, root); in TreeingBin() 184 JSMutableHandle<LinkedNode> root(thread, JSTaggedValue::Undefined()); in SetVal() local 189 root.Update(nextVal); in SetVal() 190 currentKey.Update(root->GetKey()); in SetVal() 191 if (root->GetHash().GetInt() == hash && (!key->IsHole() && in SetVal() 193 root->SetValue(thread, value.GetTaggedValue()); in SetVal() 196 nextVal.Update(root->GetNext()); in SetVal() 200 root->SetNext(thread, newNode); in SetVal() 207 JSHandle<RBTreeNode> root = JSHandle<RBTreeNode>::Cast(node); in SetVal() local [all …]
|
| D | frames.cpp | 478 visitor(Root::ROOT_FRAME, ObjectSlot(jsFuncSlot)); in GCIterate() 482 visitor(Root::ROOT_FRAME, ObjectSlot(envSlot)); in GCIterate() 489 rangeVisitor(Root::ROOT_FRAME, ObjectSlot(start), ObjectSlot(end)); in GCIterate() 519 rangeVisitor(Root::ROOT_FRAME, ObjectSlot(start), ObjectSlot(end)); in GCIterate() 520 visitor(Root::ROOT_FRAME, ObjectSlot(ToUintPtr(&frame->function))); in GCIterate() 521 visitor(Root::ROOT_FRAME, ObjectSlot(ToUintPtr(&frame->thisObj))); in GCIterate() 523 visitor(Root::ROOT_FRAME, ObjectSlot(ToUintPtr(&frame->acc))); in GCIterate() 524 visitor(Root::ROOT_FRAME, ObjectSlot(ToUintPtr(&frame->env))); in GCIterate() 551 rangeVisitor(Root::ROOT_FRAME, ObjectSlot(start), ObjectSlot(end)); in GCIterate() 552 visitor(Root::ROOT_FRAME, ObjectSlot(ToUintPtr(&frame->function))); in GCIterate() [all …]
|
| D | tagged_node.cpp | 75 JSHandle<LinkedNode> RBTreeNode::Detreeing(JSThread *thread, const JSHandle<RBTreeNode> &root) in Detreeing() argument 80 InOrderTraverse(thread, root, head, tail); in Detreeing() 216 // 1 : root count in Set() 235 // 1 : root count in RotateLeft() 254 // 1 : root count in RotateRight() 287 // 1 : root count in Balance() 402 JSMutableHandle<RBTreeNode> root(thread, JSTaggedValue::Hole()); in GetTreeNode() local 407 root.Update(queue->Pop(thread)); in GetTreeNode() 408 currentKey.Update(root->GetKey()); in GetTreeNode() 409 …if (root->GetHash().GetInt() == hash && (!currentKey->IsHole() && JSTaggedValue::SameValue(key, cu… in GetTreeNode() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/mem/ |
| D | visitor.h | 25 enum class Root { enum 35 using RootVisitor = std::function<void(Root type, ObjectSlot p)>; 36 using RootRangeVisitor = std::function<void(Root type, ObjectSlot start, ObjectSlot end)>; 38 std::function<void(Root type, ObjectSlot base, ObjectSlot derived, uintptr_t baseOldObject)>; 39 using EcmaObjectRangeVisitor = std::function<void(TaggedObject *root, ObjectSlot start, ObjectSlot …
|
| D | parallel_marker.h | 67 …virtual inline void HandleRoots(uint32_t threadId, [[maybe_unused]] Root type, ObjectSlot slot) = … 68 …virtual inline void HandleRangeRoots(uint32_t threadId, [[maybe_unused]] Root type, ObjectSlot sta… 70 virtual inline void HandleDerivedRoots(Root type, ObjectSlot base, ObjectSlot derived, 91 … inline void HandleRoots(uint32_t threadId, [[maybe_unused]] Root type, ObjectSlot slot) override; 92 inline void HandleRangeRoots(uint32_t threadId, [[maybe_unused]] Root type, ObjectSlot start, 94 inline void HandleDerivedRoots(Root type, ObjectSlot base, ObjectSlot derived, 107 … inline void HandleRoots(uint32_t threadId, [[maybe_unused]] Root type, ObjectSlot slot) override; 108 inline void HandleRangeRoots(uint32_t threadId, [[maybe_unused]] Root type, ObjectSlot start, 110 inline void HandleDerivedRoots(Root type, ObjectSlot base, ObjectSlot derived,
|
| D | parallel_marker.cpp | 55 … auto visitor = [this, threadId, isFullMark](TaggedObject *root, ObjectSlot start, ObjectSlot end, in ProcessMarkStack() 57 Region *rootRegion = Region::ObjectAddressToRange(root); in ProcessMarkStack() 99 auto visitor = [this, threadId](TaggedObject *root, ObjectSlot start, ObjectSlot end, in ProcessMarkStack() 104 Region *rootRegion = Region::ObjectAddressToRange(root); in ProcessMarkStack() 111 SlotNeedUpdate waitUpdate(reinterpret_cast<TaggedObject *>(root), slot); in ProcessMarkStack() 131 …auto visitor = [this, threadId]([[maybe_unused]] TaggedObject *root, ObjectSlot start, ObjectSlot … in ProcessMarkStack()
|
| D | verification.cpp | 28 obj, jsHclass, [this]([[maybe_unused]] TaggedObject *root, ObjectSlot start, ObjectSlot end, in VisitAllObjects() 72 RootVisitor visitor = [this, &failCount]([[maybe_unused]] Root type, ObjectSlot slot) { in VerifyRoot() 75 …RootRangeVisitor rangeVisitor = [this, &failCount]([[maybe_unused]] Root type, ObjectSlot start, O… in VerifyRoot() 81 …[]([[maybe_unused]] Root type, [[maybe_unused]] ObjectSlot base, [[maybe_unused]] ObjectSlot deriv… in VerifyRoot()
|
| /arkcompiler/runtime_core/runtime/ |
| D | class_linker_context.h | 113 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 = ::panda::mem::GetForwardAddress(root); in UpdateGCRoots()
|
| D | class_linker_extension.cpp | 80 void ClassLinkerExtension::InitializeArrayClassRoot(ClassRoot root, ClassRoot component_root, const… in InitializeArrayClassRoot() argument 84 …ass = CreateClass(utf::CStringAsMutf8(descriptor), GetClassVTableSize(root), GetClassIMTSize(root), in InitializeArrayClassRoot() 85 GetClassSize(root)); in InitializeArrayClassRoot() 91 SetClassRoot(root, array_class); in InitializeArrayClassRoot() 94 void ClassLinkerExtension::InitializePrimitiveClassRoot(ClassRoot root, panda_file::Type::TypeId ty… in InitializePrimitiveClassRoot() argument 99 auto *primitive_class = CreateClass(utf::CStringAsMutf8(descriptor), GetClassVTableSize(root), in InitializePrimitiveClassRoot() 100 GetClassIMTSize(root), GetClassSize(root)); in InitializePrimitiveClassRoot() 105 SetClassRoot(root, primitive_class); in InitializePrimitiveClassRoot()
|
| /arkcompiler/runtime_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/runtime/mem/ |
| D | heap_verifier.cpp | 68 void HeapReferenceVerifier<LangType>::operator()(const GCRoot &root) in operator ()() argument 71 auto referent = root.GetObjectHeader(); in operator ()() 81 …LOG_HEAP_VERIFIER << "Heap corruption found! Root references a dead object at " << std::hex << ref… in operator ()() 84 …LOG_HEAP_VERIFIER << "Heap corruption found! Root references a forwarded object at " << std::hex <… in operator ()() 113 root_manager.VisitNonHeapRoots([this, &fail_count](const GCRoot &root) { in VerifyRoot() argument 114 if (root.GetType() == RootType::ROOT_FRAME || root.GetType() == RootType::ROOT_THREAD) { in VerifyRoot() 115 auto *base_cls = root.GetObjectHeader()->ClassAddr<BaseClass>(); in VerifyRoot() 117 LOG_HEAP_VERIFIER << "Heap corruption found! Class address for root " << std::hex in VerifyRoot() 118 << root.GetObjectHeader() << " is null"; in VerifyRoot() 121 HeapReferenceVerifier<LanguageConfig::LANG_TYPE>(heap_, &fail_count)(root); in VerifyRoot() [all …]
|
| /arkcompiler/runtime_core/runtime/include/ |
| D | class_linker_extension.h | 47 virtual size_t GetClassVTableSize(ClassRoot root) = 0; 49 virtual size_t GetClassIMTSize(ClassRoot root) = 0; 51 virtual size_t GetClassSize(ClassRoot root) = 0; 73 Class *GetClassRoot(ClassRoot root) const in GetClassRoot() argument 75 return class_roots_[ToIndex(root)]; in GetClassRoot() 83 void SetClassRoot(ClassRoot root, Class *klass) in SetClassRoot() argument 85 class_roots_[ToIndex(root)] = klass; in SetClassRoot() 233 …void InitializePrimitiveClassRoot(ClassRoot root, panda_file::Type::TypeId type_id, const char *de… 235 void InitializeArrayClassRoot(ClassRoot root, ClassRoot component_root, const char *descriptor); 314 static constexpr size_t ToIndex(ClassRoot root) in ToIndex() argument [all …]
|
| /arkcompiler/runtime_core/tests/cts-generator/runner/reporters/ |
| D | jtr_reporter.rb | 22 @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}"
|
| D | allure_reporter.rb | 36 root = Pathname.new(root_dir) 38 actual_file = file.relative_path_from(root) 40 actual_file = root.basename if root.file?
|
| /arkcompiler/runtime_core/runtime/tests/ |
| D | class_linker_test_extension.h | 46 size_t GetClassVTableSize([[maybe_unused]] ClassRoot root) override in GetClassVTableSize() argument 51 size_t GetClassIMTSize([[maybe_unused]] ClassRoot root) override in GetClassIMTSize() argument 56 size_t GetClassSize(ClassRoot root) override in GetClassSize() argument 58 … return Class::ComputeClassSize(GetClassVTableSize(root), GetClassIMTSize(root), 0, 0, 0, 0, 0, 0); in GetClassSize()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | circuit_ir_specification.md | 23 …root nodes** in Circuit IR. They are not called "gates" since they do not contribute to the logic … 25 … at zero offset. It is the only gate that does not have any inputs. Every root nodes listed below … 35 The offsets of root nodes are fixed, so they can be accessed instantly via `GateRef Circuit::GetRoo… 97 | Root | Bitfield | 110 | Root | Bitfield | 123 | Root | Bitfield | 136 | Root | Bitfield | 149 | Root | Bitfield | 162 | Root | Bitfield | 175 | Root | Bitfield | [all …]
|
| /arkcompiler/runtime_core/runtime/core/ |
| D | core_class_linker_extension.cpp | 144 size_t CoreClassLinkerExtension::GetClassVTableSize(ClassRoot root) in GetClassVTableSize() argument 148 switch (root) { in GetClassVTableSize() 189 size_t CoreClassLinkerExtension::GetClassIMTSize(ClassRoot root) in GetClassIMTSize() argument 193 switch (root) { in GetClassIMTSize() 234 size_t CoreClassLinkerExtension::GetClassSize(ClassRoot root) in GetClassSize() argument 238 switch (root) { in GetClassSize() 251 … return Class::ComputeClassSize(GetClassVTableSize(root), GetClassIMTSize(root), 0, 0, 0, 0, 0, 0); in GetClassSize() 270 … return Class::ComputeClassSize(GetClassVTableSize(root), GetClassIMTSize(root), 0, 0, 0, 0, 0, 0); in GetClassSize()
|
| D | core_class_linker_extension.h | 33 size_t GetClassVTableSize(ClassRoot root) override; 35 size_t GetClassIMTSize(ClassRoot root) override; 37 size_t GetClassSize(ClassRoot root) override;
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_json.cpp | 63 // Let root be ! OrdinaryObjectCreate(%Object.prototype%). in Parse() 66 JSHandle<JSObject> root = factory->NewJSObjectByConstructor(constructor); in Parse() local 69 // Perform ! CreateDataPropertyOrThrow(root, rootName, unfiltered). in Parse() 70 bool success = JSObject::CreateDataProperty(thread, root, rootName, result); in Parse() 72 … result = base::Internalize::InternalizeJsonProperty(thread, root, rootName, callbackfnHandle); in Parse()
|
| /arkcompiler/runtime_core/tests/cts-generator/cts-template/ |
| D | isinstance.yaml | 53 …ype O is instance of type T if O is the same as T or is subtype of T. For arrays T should be a root 330 …ype O is instance of type T if O is the same as T or is subtype of T. For arrays T should be a root 432 # T is a root type for O[] 435 # T is a root type for O[], std object 442 # T is a root type for O[], custom object 455 …ype O is instance of type T if O is the same as T or is subtype of T. For arrays T should be a root 600 # T is a root type for O[] 603 # T is a root type for O[], std object 610 # T is a root type for O[], custom object 623 …ype O is instance of type T if O is the same as T or is subtype of T. For arrays T should be a root [all …]
|
| /arkcompiler/runtime_core/compiler/aot/ |
| D | aot_manager.h | 86 for (auto root : aot_string_gc_roots_) { in VisitAotStringRoots() local 87 cb(root); in VisitAotStringRoots() 120 for (auto root : aot_string_gc_roots_) { in UpdateAotStringRoots() local 121 cb(root); in UpdateAotStringRoots() 125 bool is_young = p(*root); in UpdateAotStringRoots()
|
| /arkcompiler/ets_frontend/testTs/ |
| D | run_testTs.py | 96 for root, dirs, files in os.walk(ts_dir_path): 98 ts_file = f'{root}/{fi}' 130 for root, dirs, files in os.walk(args.dir): 132 test_path = f'{root}/{file}' 144 for root, dirs, files in os.walk(TS_CASES_DIR): 146 test_path = f'{root}/{file}' 204 for root, dirs, files in os.walk(out_dir_path): 206 fi = f'{root}/{fi}'
|
| /arkcompiler/toolchain/build/compile_script/ |
| D | .gn | 17 # The source root location. 18 root = "//toolchain/build/core/gn"
|