Home
last modified time | relevance | path

Searched refs:root (Results 1 – 25 of 40) sorted by relevance

12

/ark/js_runtime/ecmascript/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 …]
/ark/runtime_core/runtime/mem/
Dheap_verifier.cpp53 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()
Dheap_verifier.h46 void operator()(const GCRoot &root);
/ark/runtime_core/runtime/include/
Dclass_linker_extension.h48 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 …]
Dclass_linker-inl.h44 inline void ClassLinker::AddClassRoot(ClassRoot root, Class *klass) in AddClassRoot() argument
49 ext->SetClassRoot(root, klass); in AddClassRoot()
/ark/runtime_core/runtime/
Dclass_linker_context.h137 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()
Ddyn_class_linker_extension.cpp86 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()
Dclass_linker_extension.cpp75 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()
Ddyn_class_linker_extension.h43 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/
Dclass_linker_test_extension.h47 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/
Dcore_class_linker_extension.cpp141 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()
Dcore_class_linker_extension.h34 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/
Dparallel_marker.cpp54 …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
Dobject_xray.h40 using EcmaObjectVisitor = std::function<void(TaggedObject *root, ObjectSlot p)>;
41 using EcmaObjectRangeVisitor = std::function<void(TaggedObject *root, ObjectSlot start, ObjectSlot …
Dverification.cpp28 … obj, jsHclass, [this]([[maybe_unused]] TaggedObject *root, ObjectSlot start, ObjectSlot end) { in VisitAllObjects() argument
/ark/js_runtime/ecmascript/
Decma_class_linker_extension.h57 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/
Dbuiltins_json.cpp65 …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/
Dbase.ts222 let root = this.getPandaGenByName("func_main_0");
223 if (root) {
224 return root.getInsns();
/ark/ts2abc/testTs/
Drun_testTs.py94 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/
Dgc_root.cpp62 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 <<()
Dgc_root.h80 friend std::ostream &operator<<(std::ostream &os, const GCRoot &root);
/ark/ts2abc/ts2panda/src/
Dscope.ts503 let root = this.getRootScope();
505 if (root instanceof GlobalScope || root instanceof ModuleScope) {
506 return root.add(name, declKind, status);
/ark/ts2abc/ts2panda/
Dwebpack.config.js24 root: path.resolve(__dirname), property
/ark/runtime_core/cmake/
DREADME.md16 …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/
Dverifier.cpp176 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()

12