/ark/js_runtime/ecmascript/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 …]
|
/ark/runtime_core/runtime/mem/ |
D | heap_verifier.cpp | 53 void HeapReferenceVerifier::operator()(const GCRoot &root) in operator ()() argument 56 auto referent = root.GetObjectHeader(); in operator ()() 87 root_manager.VisitNonHeapRoots([this, &fail_count](const GCRoot &root) { in VerifyRoot() argument 88 if (root.GetType() == RootType::ROOT_FRAME || root.GetType() == RootType::ROOT_THREAD) { in VerifyRoot() 89 auto base_cls = root.GetObjectHeader()->ClassAddr<BaseClass>(); in VerifyRoot() 91 HeapReferenceVerifier(heap_, &fail_count)(root); in VerifyRoot()
|
D | heap_verifier.h | 46 void operator()(const GCRoot &root);
|
/ark/runtime_core/runtime/include/ |
D | class_linker_extension.h | 48 virtual size_t GetClassVTableSize(ClassRoot root) = 0; 50 virtual size_t GetClassIMTSize(ClassRoot root) = 0; 52 virtual size_t GetClassSize(ClassRoot root) = 0; 74 Class *GetClassRoot(ClassRoot root) const in GetClassRoot() argument 76 return class_roots_[ToIndex(root)]; in GetClassRoot() 84 void SetClassRoot(ClassRoot root, Class *klass) in SetClassRoot() argument 86 class_roots_[ToIndex(root)] = klass; in SetClassRoot() 193 …void InitializePrimitiveClassRoot(ClassRoot root, panda_file::Type::TypeId type_id, const char *de… 195 void InitializeArrayClassRoot(ClassRoot root, ClassRoot component_root, const char *descriptor); 271 static constexpr size_t ToIndex(ClassRoot root) in ToIndex() argument [all …]
|
D | class_linker-inl.h | 44 inline void ClassLinker::AddClassRoot(ClassRoot root, Class *klass) in AddClassRoot() argument 49 ext->SetClassRoot(root, klass); in AddClassRoot()
|
/ark/runtime_core/runtime/ |
D | class_linker_context.h | 137 for (auto root : roots_) { in VisitGCRoots() local 138 cb(root); in VisitGCRoots() 145 for (auto root : roots_) { in AddGCRoot() local 146 if (root == obj) { in AddGCRoot() 157 for (auto &root : roots_) { in UpdateGCRoots() 158 if (root->IsForwarded()) { in UpdateGCRoots() 159 root = ::panda::mem::GetForwardAddress(root); in UpdateGCRoots()
|
D | dyn_class_linker_extension.cpp | 86 size_t DynamicClassLinkerExtension::GetClassVTableSize([[maybe_unused]] ClassRoot root) in GetClassVTableSize() argument 92 size_t DynamicClassLinkerExtension::GetClassIMTSize([[maybe_unused]] ClassRoot root) in GetClassIMTSize() argument 98 size_t DynamicClassLinkerExtension::GetClassSize(ClassRoot root) in GetClassSize() argument 102 switch (root) { in GetClassSize() 115 …return ClassHelper::ComputeClassSize(GetClassVTableSize(root), GetClassIMTSize(root), 0, 0, 0, 0, … in GetClassSize() 134 …return ClassHelper::ComputeClassSize(GetClassVTableSize(root), GetClassIMTSize(root), 0, 0, 0, 0, … in GetClassSize()
|
D | class_linker_extension.cpp | 75 void ClassLinkerExtension::InitializeArrayClassRoot(ClassRoot root, ClassRoot component_root, const… in InitializeArrayClassRoot() argument 79 …ass = CreateClass(utf::CStringAsMutf8(descriptor), GetClassVTableSize(root), GetClassIMTSize(root), in InitializeArrayClassRoot() 80 GetClassSize(root)); in InitializeArrayClassRoot() 86 SetClassRoot(root, array_class); in InitializeArrayClassRoot() 89 void ClassLinkerExtension::InitializePrimitiveClassRoot(ClassRoot root, panda_file::Type::TypeId ty… in InitializePrimitiveClassRoot() argument 94 auto *primitive_class = CreateClass(utf::CStringAsMutf8(descriptor), GetClassVTableSize(root), in InitializePrimitiveClassRoot() 95 GetClassIMTSize(root), GetClassSize(root)); in InitializePrimitiveClassRoot() 100 SetClassRoot(root, primitive_class); in InitializePrimitiveClassRoot()
|
D | dyn_class_linker_extension.h | 43 size_t GetClassVTableSize(ClassRoot root) override; 45 size_t GetClassIMTSize(ClassRoot root) override; 47 size_t GetClassSize(ClassRoot root) override;
|
/ark/runtime_core/runtime/tests/ |
D | class_linker_test_extension.h | 47 size_t GetClassVTableSize([[maybe_unused]] ClassRoot root) override in GetClassVTableSize() argument 52 size_t GetClassIMTSize([[maybe_unused]] ClassRoot root) override in GetClassIMTSize() argument 57 size_t GetClassSize(ClassRoot root) override in GetClassSize() argument 59 …return ClassHelper::ComputeClassSize(GetClassVTableSize(root), GetClassIMTSize(root), 0, 0, 0, 0, … in GetClassSize()
|
/ark/runtime_core/runtime/core/ |
D | core_class_linker_extension.cpp | 141 size_t CoreClassLinkerExtension::GetClassVTableSize(ClassRoot root) in GetClassVTableSize() argument 145 switch (root) { in GetClassVTableSize() 187 size_t CoreClassLinkerExtension::GetClassIMTSize(ClassRoot root) in GetClassIMTSize() argument 191 switch (root) { in GetClassIMTSize() 233 size_t CoreClassLinkerExtension::GetClassSize(ClassRoot root) in GetClassSize() argument 237 switch (root) { in GetClassSize() 250 …return ClassHelper::ComputeClassSize(GetClassVTableSize(root), GetClassIMTSize(root), 0, 0, 0, 0, … in GetClassSize() 269 …return ClassHelper::ComputeClassSize(GetClassVTableSize(root), GetClassIMTSize(root), 0, 0, 0, 0, … in GetClassSize()
|
D | core_class_linker_extension.h | 34 size_t GetClassVTableSize(ClassRoot root) override; 36 size_t GetClassIMTSize(ClassRoot root) override; 38 size_t GetClassSize(ClassRoot root) override;
|
/ark/js_runtime/ecmascript/mem/ |
D | parallel_marker.cpp | 54 …auto visitor = [this, threadId, isFullMark](TaggedObject *root, ObjectSlot start, ObjectSlot end) { in ProcessMarkStack() argument 55 Region *rootRegion = Region::ObjectAddressToRange(root); in ProcessMarkStack() 98 auto visitor = [this, threadId](TaggedObject *root, ObjectSlot start, ObjectSlot end) { in ProcessMarkStack() argument 102 Region *rootRegion = Region::ObjectAddressToRange(root); in ProcessMarkStack() 109 SlotNeedUpdate waitUpdate(reinterpret_cast<TaggedObject *>(root), slot); in ProcessMarkStack() 130 auto visitor = [this, threadId](TaggedObject *root, ObjectSlot start, ObjectSlot end) { in ProcessMarkStack() argument
|
D | object_xray.h | 40 using EcmaObjectVisitor = std::function<void(TaggedObject *root, ObjectSlot p)>; 41 using EcmaObjectRangeVisitor = std::function<void(TaggedObject *root, ObjectSlot start, ObjectSlot …
|
D | verification.cpp | 28 … obj, jsHclass, [this]([[maybe_unused]] TaggedObject *root, ObjectSlot start, ObjectSlot end) { in VisitAllObjects() argument
|
/ark/js_runtime/ecmascript/ |
D | ecma_class_linker_extension.h | 57 size_t GetClassVTableSize([[maybe_unused]] ClassRoot root) override in GetClassVTableSize() argument 62 size_t GetClassIMTSize([[maybe_unused]] ClassRoot root) override in GetClassIMTSize() argument 67 size_t GetClassSize([[maybe_unused]] ClassRoot root) override;
|
/ark/js_runtime/ecmascript/builtins/ |
D | builtins_json.cpp | 65 …JSHandle<JSObject> root = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), con… in Parse() local 69 bool success = JSObject::CreateDataProperty(thread, root, rootName, result); in Parse() 71 … result = base::Internalize::InternalizeJsonProperty(thread, root, rootName, callbackfnHandle); in Parse()
|
/ark/ts2abc/ts2panda/tests/utils/ |
D | base.ts | 222 let root = this.getPandaGenByName("func_main_0"); 223 if (root) { 224 return root.getInsns();
|
/ark/ts2abc/testTs/ |
D | run_testTs.py | 94 for root, dirs, files in os.walk(ts_dir_path): 128 for root, dirs, files in os.walk(args.dir): 142 for root, dirs, files in os.walk(TS_CASES_DIR): 202 for root, dirs, files in os.walk(out_dir_path):
|
/ark/runtime_core/runtime/mem/gc/ |
D | gc_root.cpp | 62 std::ostream &operator<<(std::ostream &os, const GCRoot &root) in operator <<() argument 64 switch (root.GetType()) { in operator <<() 91 os << std::hex << " " << root.GetObjectHeader() << std::endl; in operator <<()
|
D | gc_root.h | 80 friend std::ostream &operator<<(std::ostream &os, const GCRoot &root);
|
/ark/ts2abc/ts2panda/src/ |
D | scope.ts | 503 let root = this.getRootScope(); 505 if (root instanceof GlobalScope || root instanceof ModuleScope) { 506 return root.add(name, declKind, status);
|
/ark/ts2abc/ts2panda/ |
D | webpack.config.js | 24 root: path.resolve(__dirname), property
|
/ark/runtime_core/cmake/ |
D | README.md | 16 …library, create the `third_party/vixl` directory. Add the following command in root CMakeLists.txt: 53 Move compile commands to root directory
|
/ark/js_runtime/ecmascript/compiler/ |
D | verifier.cpp | 176 auto root = Circuit::GetCircuitRoot(OpCode(OpCode::STATE_ENTRY)); in RunCFGIsDAGCheck() local 177 if (!dfs(root)) { in RunCFGIsDAGCheck() 469 size_t root = 0; in Run() local 470 dfs(root, root); in Run()
|