| /arkcompiler/ets_frontend/ets2panda/ir/ |
| H A D | astNode.cpp | 132 [=](AstNode *child) { in TransformChildrenRecursivelyPreorder() 133 auto *res = cb(child); in TransformChildrenRecursivelyPreorder() 143 [=](AstNode *child) { in TransformChildrenRecursivelyPostorder() 144 child->TransformChildrenRecursivelyPostorder(cb, transformationName); in TransformChildrenRecursivelyPostorder() 145 return cb(child); in TransformChildrenRecursivelyPostorder() 157 Iterate([=](AstNode *child) { in IterateRecursivelyPreorder() 158 cb(child); in IterateRecursivelyPreorder() 159 child->IterateRecursivelyPreorder(cb); in IterateRecursivelyPreorder() 165 Iterate([=](AstNode *child) { in IterateRecursivelyPostorder() 166 child in IterateRecursivelyPostorder() [all...] |
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/native/escompat/ |
| H A D | Process.cpp | 58 static void SpawnChildProcess(EtsEnv *env, ets_object child, ets_string cmd, ets_int timeout, ets_int signal) in SpawnChildProcess() argument 62 env->ThrowErrorNew(env->FindClass("std/core/RuntimeException"), "Failed to create a child process"); in SpawnChildProcess() 67 env->ThrowErrorNew(env->FindClass("std/core/RuntimeException"), "Failed to create a child process"); in SpawnChildProcess() 80 auto childKlass = env->GetObjectClass(child); in SpawnChildProcess() 82 env->SetDoubleField(child, env->Getp_field(childKlass, "pid", "D"), result.Value()); in SpawnChildProcess() 86 env->ThrowErrorNew(env->FindClass("std/core/RuntimeException"), "Failed to create a child process"); in SpawnChildProcess() 90 env->SetDoubleField(child, env->Getp_field(childKlass, "ppid", "D"), ark::os::thread::GetPid()); in SpawnChildProcess() 91 env->SetIntField(child, env->Getp_field(childKlass, "outFd", "I"), stdOutFd.first.Release()); in SpawnChildProcess() 92 env->SetIntField(child, env->Getp_field(childKlass, "errorFd", "I"), stdErrFd.first.Release()); in SpawnChildProcess() 98 auto pidToTerminate = env->GetDoubleField(child, en in SpawnChildProcess() 114 ReadFinalizer(EtsEnv *env, ets_object child, bool isStdErr) ReadFinalizer() argument 136 ReadChildProcessStdOut(EtsEnv *env, ets_object child) ReadChildProcessStdOut() argument 176 ReadChildProcessStdErr(EtsEnv *env, ets_object child) ReadChildProcessStdErr() argument 218 WaitChildProcess(EtsEnv *env, ets_object child) WaitChildProcess() argument 245 KillChildProcess(EtsEnv *env, ets_object child, ets_int signal) KillChildProcess() argument 267 CloseChildProcess(EtsEnv *env, ets_object child) CloseChildProcess() argument [all...] |
| /arkcompiler/ets_frontend/ets2panda/ast_verifier/ |
| H A D | helpers.h | 43 bool IsContainedIn(const T *child, const T *parent) in IsContainedIn() argument 45 if (child == nullptr || parent == nullptr) { in IsContainedIn() 50 while (child != nullptr && child != parent) { in IsContainedIn() 51 savedNodes.emplace(child); in IsContainedIn() 52 child = child->Parent(); in IsContainedIn() 53 if (savedNodes.find(child) != savedNodes.end()) { in IsContainedIn() 57 return child == parent; in IsContainedIn()
|
| H A D | arithmeticOperationValid.cpp | 42 ast->Iterate([&result, &ctx, &isBitwise](ir::AstNode *child) { in operator ()() 43 if (!IsValidTypeForBinaryOp(child, isBitwise)) { in operator ()() 44 ctx.AddCheckMessage("Not a numeric type", *child, child->Start()); in operator ()()
|
| H A D | ASTVerifier.h | 103 * I.e. 'HasParent' invariant can be named 'HasParentRecursive' to traverse all child nodes as well 118 aux = [&ctx, func, &aux, &finalDecision](const ir::AstNode *child) -> void { in RecursiveInvariant() 119 const auto [decision, action] = func(ctx, child); in RecursiveInvariant() 126 child->Iterate(aux); in RecursiveInvariant()
|
| H A D | checkInfiniteLoop.cpp | 63 [&hasExit](ir::AstNode *child) { hasExit |= child->IsBreakStatement() || child->IsReturnStatement(); }); in HasBreakOrReturnStatement()
|
| /arkcompiler/ets_frontend/ets2panda/test/unit/public/ |
| H A D | ast_verifier_getter_setter_neg_test.cpp | 57 ast->IterateRecursively([&checker](ark::es2panda::ir::AstNode *child) { in TEST_F() 58 if (child->IsMethodDefinition()) { in TEST_F() 59 auto *const method = child->AsMethodDefinition(); in TEST_F() 104 ast->IterateRecursively([](ark::es2panda::ir::AstNode *child) { in TEST_F() 105 if (child->IsMethodDefinition()) { in TEST_F() 106 auto *const method = child->AsMethodDefinition(); in TEST_F() 151 ast->IterateRecursively([&checker](ark::es2panda::ir::AstNode *child) { in TEST_F() 152 if (child->IsMethodDefinition()) { in TEST_F() 153 auto *const method = child->AsMethodDefinition(); in TEST_F() 205 ast->IterateRecursively([param](ark::es2panda::ir::AstNode *child) { in TEST_F() [all...] |
| H A D | ast_verifier_check_abstract_call_test.cpp | 60 ast->IterateRecursively([&checker, this](ark::es2panda::ir::AstNode *child) { in TEST_F() 61 if (child->IsCallExpression()) { in TEST_F() 62 auto *const call = child->AsCallExpression(); in TEST_F()
|
| /arkcompiler/ets_runtime/ecmascript/ |
| H A D | tagged_tree.h | 160 JSTaggedValue child = GetLeftChild(entry); in GetMinimum() local 161 while (!child.IsHole()) { in GetMinimum() 162 entry = child.GetInt(); in GetMinimum() 163 child = GetLeftChild(entry); in GetMinimum() 170 JSTaggedValue child = GetRightChild(entry); in GetMaximum() local 171 while (!child.IsHole()) { in GetMaximum() 172 entry = child.GetInt(); in GetMaximum() 173 child = GetRightChild(entry); in GetMaximum() 209 JSTaggedValue child = Get(index); in GetLeftChildIndex() local 210 return child in GetLeftChildIndex() 219 JSTaggedValue child = Get(index); GetRightChildIndex() local 303 JSTaggedValue child = GetRightChild(GetParent(entry)); GetLeftBrother() local 309 JSTaggedValue child = GetLeftChild(GetParent(entry)); GetRightBrother() local 315 JSTaggedValue child = GetLeftChild(GetParent(entry)); IsLeft() local 321 JSTaggedValue child = GetRightChild(GetParent(entry)); IsRight() local [all...] |
| H A D | tagged_tree.cpp | 154 int child = 1; in AdjustTaggedTree() local 160 newTree->SetLeftChild(thread, index, JSTaggedValue(child)); in AdjustTaggedTree() 161 newTree->SetParent(thread, child++, JSTaggedValue(index)); in AdjustTaggedTree() 166 newTree->SetRightChild(thread, index, JSTaggedValue(child)); in AdjustTaggedTree() 167 newTree->SetParent(thread, child++, JSTaggedValue(index)); in AdjustTaggedTree() 183 JSTaggedValue child = src < 0 ? JSTaggedValue::Hole() : JSTaggedValue(src); in Transplant() local 184 SetLeftChild(thread, parent, child); in Transplant() 186 JSTaggedValue child = src < 0 ? JSTaggedValue::Hole() : JSTaggedValue(src); in Transplant() 187 SetRightChild(thread, parent, child); in Transplant() 202 int child local 283 int child = GetLeftChildIndex(entry); GetPreDecessor() local 298 int child = GetRightChildIndex(entry); GetSuccessor() local 322 JSTaggedValue child = tree->GetLeftChild(parentIndex); FindEntry() local 328 JSTaggedValue child = tree->GetRightChild(parentIndex); FindEntry() local 438 JSTaggedValue child = newTree->GetLeftChild(parentIndex); Insert() local 444 JSTaggedValue child = newTree->GetRightChild(parentIndex); Insert() local [all...] |
| H A D | js_hclass-inl.h | 46 void JSHClass::AddTransitions(const JSThread *thread, const JSHandle<JSHClass> &parent, const JSHandle<JSHClass> &child, in AddTransitions() argument 49 UpdateRootHClass(thread, parent, child); in AddTransitions() 52 JSTaggedValue weakChild = JSTaggedValue(child.GetTaggedValue().CreateAndGetWeakRef()); in AddTransitions() 73 transitions = TransitionsDictionary::PutIfAbsent(thread, dict, key, JSHandle<JSTaggedValue>(child), in AddTransitions() 79 const JSHandle<JSHClass> &child, const JSHandle<JSTaggedValue> &key) in AddExtensionTransitions() 82 AddProtoTransitions(thread, parent, child, key, attr); in AddExtensionTransitions() 86 const JSHandle<JSHClass> &child, const JSHandle<JSTaggedValue> &key, in AddProtoTransitions() 90 UpdateRootHClass(thread, parent, child); in AddProtoTransitions() 111 TransitionsDictionary::PutIfAbsent(thread, dict, key, JSHandle<JSTaggedValue>(child), proto).GetTaggedValue(); in AddProtoTransitions() 337 const JSHandle<JSHClass> &child) in UpdateRootHClass() 78 AddExtensionTransitions(const JSThread *thread, const JSHandle<JSHClass> &parent, const JSHandle<JSHClass> &child, const JSHandle<JSTaggedValue> &key) AddExtensionTransitions() argument 85 AddProtoTransitions(const JSThread *thread, const JSHandle<JSHClass> &parent, const JSHandle<JSHClass> &child, const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &proto) AddProtoTransitions() argument 336 UpdateRootHClass(const JSThread *thread, const JSHandle<JSHClass> &parent, const JSHandle<JSHClass> &child) UpdateRootHClass() argument [all...] |
| H A D | tagged_dictionary.cpp | 543 bool FunctionProtoTransitionTable::TryInsertFakeParentItem(JSTaggedType child, JSTaggedType parent) in TryInsertFakeParentItem() argument 550 auto iter1 = fakeParentMap_.find(child); in TryInsertFakeParentItem() 551 if (child == parent && iter1 != fakeParentMap_.end()) { in TryInsertFakeParentItem() 556 if (iter2->second != child) { in TryInsertFakeParentItem() 563 fakeParentMap_[child] = parent; in TryInsertFakeParentItem() 564 fakeChildMap_[parent] = child; in TryInsertFakeParentItem() 570 LOG_ECMA(ERROR) << "Conflict mapping for the same child"; in TryInsertFakeParentItem() 574 JSTaggedType FunctionProtoTransitionTable::GetFakeParent(JSTaggedType child) in GetFakeParent() argument 577 auto iter = fakeParentMap_.find(child); in GetFakeParent()
|
| /arkcompiler/toolchain/tooling/test/testcases/js/ |
| H A D | variable_second.js | 149 let child = new Child("child", 15, "1234"); 151 child.print(); 153 function customClass(a, b, child) { 156 this.child = child; 161 let class1 = new customClass(1, 2, child);
|
| /arkcompiler/toolchain/tooling/client/manager/ |
| H A D | variable_manager.cpp | 34 void TreeNode::AddChild(std::unique_ptr<TreeNode> child) in AddChild() argument 36 children.push_back(std::move(child)); in AddChild() 77 for (const auto &child : children) { in Print() 78 child->Print(depth + 1); in Print() 103 for (const auto& child : root_->children) { in PrintRootAndImmediateChildren() 104 if (std::holds_alternative<std::map<int32_t, std::map<int32_t, std::string>>>(child->data)) { in PrintRootAndImmediateChildren() 105 const auto& outerMap = std::get<std::map<int32_t, std::map<int32_t, std::string>>>(child->data); in PrintRootAndImmediateChildren() 181 for (const auto& child : node->children) { in FindNodeWithObjectIdRecursive() 182 TreeNode* foundNode = FindNodeWithObjectIdRecursive(child.get(), objectId); in FindNodeWithObjectIdRecursive() 206 for (const auto &child in FindNodeWithInnerKeyZero() [all...] |
| /arkcompiler/ets_runtime/ecmascript/pgo_profiler/types/ |
| H A D | pgo_type_generator.h | 29 static ProfileType GenerateProfileType(JSTaggedType child, ProfileType rootType) in GenerateProfileType() argument 31 CString result = JSHClass::DumpToString(child); in GenerateProfileType()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/pgo_type/ |
| H A D | pgo_type_manager.cpp | 68 for (auto& child: root.second) { in GetSymbolCountFromHClassData() 69 if (!JSTaggedValue(child.second).IsJSHClass()) { in GetSymbolCountFromHClassData() 72 JSHClass* hclass = JSHClass::Cast(JSTaggedValue(child.second).GetTaggedObject()); in GetSymbolCountFromHClassData() 97 for (auto& child: root.second) { in GenSymbolInfo() 98 if (!JSTaggedValue(child.second).IsJSHClass()) { in GenSymbolInfo() 101 ProfileType childType = child.first; in GenSymbolInfo() 102 JSHClass* hclass = JSHClass::Cast(JSTaggedValue(child.second).GetTaggedObject()); in GenSymbolInfo() 142 for (auto& child: root.second) { in GenHClassInfo() 143 ProfileType childType = child.first; in GenHClassInfo() 144 JSTaggedType hclass = child in GenHClassInfo() [all...] |
| H A D | pgo_type_manager.h | 149 for (const auto& child: root.second) { in DumpHClassData() 151 os << "ChildType: " << child.first << std::endl; in DumpHClassData() 152 os << "HClass: " << JSTaggedValue(child.second) << std::endl; in DumpHClassData()
|
| /arkcompiler/ets_frontend/ets2panda/ir/visitor/ |
| H A D | IterateAstVisitor.h | 83 node->Iterate([this](ir::AstNode *child) { child->Accept(this); }); in Iterate()
|
| /arkcompiler/ets_frontend/ets2panda/compiler/lowering/ |
| H A D | util.cpp | 71 node->Iterate([doNode](ir::AstNode *child) -> void { 72 doNode(child); 73 ClearTypesVariablesAndScopes(child);
|
| /arkcompiler/ets_runtime/ecmascript/pgo_profiler/ |
| H A D | pgo_profiler_layout.cpp | 124 bool PGOHClassTreeDesc::DumpForChild(JSTaggedType child, ProfileType childType) in DumpForChild() argument 127 auto childHClass = JSHClass::Cast(JSTaggedValue(child).GetTaggedObject()); in DumpForChild() 156 JSTaggedType parent, ProfileType parentType, JSTaggedType child, ProfileType childType) in UpdateForTransition() 167 bool ret = DumpForChild(child, childType); in UpdateForTransition() 155 UpdateForTransition( JSTaggedType parent, ProfileType parentType, JSTaggedType child, ProfileType childType) UpdateForTransition() argument
|
| /arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/astchecker/ |
| H A D | util_astchecker.py | 241 for child in root.values(): 242 if isinstance(child, dict): 243 nodes.extend(self.find_nodes_by_start_location(child, line, col)) 244 if isinstance(child, list): 245 for item in child:
|
| /arkcompiler/ets_frontend/ets2panda/util/ |
| H A D | helpers.h | 83 ret->Iterate([ret](ir::AstNode *child) { child->SetParent(ret); }); in ForceSetParent() 94 ret->Iterate([ret](ir::AstNode *child) { in Alloc() 95 ASSERT(child->Parent() == nullptr); in Alloc() 96 child->SetParent(ret); in Alloc()
|
| /arkcompiler/ets_frontend/es2panda/util/ |
| H A D | helpers.cpp | 602 bool Helpers::IsChild(const ir::AstNode *parent, const ir::AstNode *child) in IsChild() argument 604 while (child) { in IsChild() 605 if (child == parent) { in IsChild() 609 child = child->Parent(); in IsChild() 615 bool Helpers::IsChildScope(const binder::Scope *parent, const binder::Scope *child) in IsChildScope() argument 617 while (child) { in IsChildScope() 618 if (child == parent) { in IsChildScope() 622 child = child in IsChildScope() [all...] |
| /arkcompiler/ets_runtime/test/moduletest/stubbuilder/ |
| H A D | stubbuilder.js | 151 const child = new Parent('echo', 26); 152 child.sayName(); //echo 802 var child = new Child(); 803 child.myMethod(2);
|
| /arkcompiler/ets_runtime/ecmascript/extractortool/src/ |
| H A D | zip_file.cpp | 270 for (const auto &child : root->children) { in GetTreeFileList() 271 GetTreeFileList(child.second, rootPath + "/" + child.first, assetList); in GetTreeFileList() 334 for (const auto &child : parent->children) { in GetChildNames() 335 fileSet.insert(child.first); in GetChildNames()
|