Home
last modified time | relevance | path

Searched defs:node (Results 1 – 25 of 92) sorted by relevance

1234

/arkcompiler/ets_frontend/es2panda/compiler/core/
Dpandagen.cpp216 void PandaGen::InitializeLexEnv(const ir::AstNode *node) in InitializeLexEnv()
225 void PandaGen::CopyFunctionArguments(const ir::AstNode *node) in CopyFunctionArguments()
238 auto fn = [this](const ir::AstNode *node) { in CopyFunctionArguments()
283 void PandaGen::GetFunctionObject(const ir::AstNode *node) in GetFunctionObject()
288 void PandaGen::GetNewTarget(const ir::AstNode *node) in GetNewTarget()
293 void PandaGen::GetThis(const ir::AstNode *node) in GetThis()
298 void PandaGen::SetThis(const ir::AstNode *node) in SetThis()
303 void PandaGen::LoadVar(const ir::Identifier *node, const binder::ScopeFindResult &result) in LoadVar()
336 void PandaGen::StoreVar(const ir::AstNode *node, const binder::ScopeFindResult &result, bool isDecl… in StoreVar()
387 void PandaGen::StoreAccumulator(const ir::AstNode *node, VReg vreg) in StoreAccumulator()
[all …]
DregAllocator.h63 void Emit(const ir::AstNode *node, Args &&... args) in Emit()
70 void EmitWithType(const ir::AstNode *node, int64_t typeIndex, Args &&... args) in EmitWithType()
77 void EmitRange(const ir::AstNode *node, size_t argCount, Args &&... args) in EmitRange()
129 T *Alloc(const ir::AstNode *node, Args &&... args) in Alloc()
139 void Add(ArenaList<IRNode *> &insns, const ir::AstNode *node, Args &&... args) in Add()
DdynamicContext.cpp65 const auto *node = envScope_->Scope()->Node(); in LexEnvContext() local
77 const auto *node = envScope_->Scope()->Node(); in ~LexEnvContext() local
101 const auto *node = envScope_->Scope()->Node(); in AbortContext() local
119 const auto *node = iterator_.Node(); in ~IteratorContext() local
149 const auto *node = iterator_.Node(); in ~DestructuringIteratorContext() local
/arkcompiler/ets_frontend/ts2panda/src/
Djshelpers.js18 function getSymbol(node) { argument
26 function getTextOfIdentifierOrLiteral(node) { argument
46 function createDiagnosticForNode(node, message, ...args) { argument
58 function isEffectiveStrictModeSourceFile(node, compilerOptions) { argument
62 function getErrorSpanForNode(sourceFile, node) { argument
70 function getContainingClass(node) { argument
74 function declarationNameToString(node) { argument
78 function getContainingFunction(node) { argument
82 function isPrologueDirective(node) { argument
86 function getSourceTextOfNodeFromSourceFile(sourceFile, node, includeTrivia) { argument
[all …]
/arkcompiler/ets_frontend/ts2panda/tests/strictmode/
Dstrictmode.test.ts46 let node = createSourceFile("tests/strictmode/global.js"); variable
53 let node = createSourceFile("tests/strictmode/function.js"); variable
72 let node = createSourceFile("tests/strictmode/function_nest1.js"); variable
85 let node = createSourceFile("tests/strictmode/function_nest2.js"); variable
/arkcompiler/ets_runtime/ecmascript/mem/
Decma_list.h30 explicit EcmaList(T *node) : first_(node), last_(node) in EcmaList()
38 void AddNode(T *node) in AddNode()
59 void AddNodeToFront(T *node) in AddNodeToFront()
77 T *node = last_; in PopBack() local
82 void RemoveNode(T *node) in RemoveNode()
110 bool HasNode(T *node) in HasNode()
/arkcompiler/ets_frontend/ts2panda/tests/expression/
DnumericLiteral.test.ts33 let node: ts.NumericLiteral = ts.createNumericLiteral("NaN"); variable
42 let node: ts.NumericLiteral = ts.createNumericLiteral("10e10000"); variable
50 let node: ts.NumericLiteral = ts.createNumericLiteral("1"); variable
58 let node: ts.NumericLiteral = ts.createNumericLiteral("2147483648"); variable
66 let node: ts.NumericLiteral = ts.createNumericLiteral("1.1"); variable
DstringLiteral.test.ts29 let node: ts.StringLiteral = ts.createStringLiteral("i am a string"); variable
/arkcompiler/ets_frontend/es2panda/compiler/base/
Dlexenv.cpp29 static bool CheckTdz(const ir::AstNode *node) in CheckTdz()
34 static void CheckConstAssignment(PandaGen *pg, const ir::AstNode *node, binder::Variable *variable) in CheckConstAssignment()
45 static void ExpandLoadLexVar(PandaGen *pg, const ir::AstNode *node, const binder::ScopeFindResult &… in ExpandLoadLexVar()
54 static void ExpandLoadNormalVar(PandaGen *pg, const ir::AstNode *node, const binder::ScopeFindResul… in ExpandLoadNormalVar()
66 void VirtualLoadVar::Expand(PandaGen *pg, const ir::AstNode *node, const binder::ScopeFindResult &r… in Expand()
77 static void ExpandStoreLexVar(PandaGen *pg, const ir::AstNode *node, const binder::ScopeFindResult … in ExpandStoreLexVar()
101 static void ExpandStoreNormalVar(PandaGen *pg, const ir::AstNode *node, const binder::ScopeFindResu… in ExpandStoreNormalVar()
139 void VirtualStoreVar::Expand(PandaGen *pg, const ir::AstNode *node, const binder::ScopeFindResult &… in Expand()
Dlreference.cpp34 LReference::LReference(const ir::AstNode *node, PandaGen *pg, bool isDeclaration, ReferenceKind ref… in LReference()
99 LReference LReference::CreateLRef(PandaGen *pg, const ir::AstNode *node, bool isDeclaration) in CreateLRef()
/arkcompiler/runtime_core/libpandabase/tests/
Dlist_test.cpp80 TestNode *node; in TEST_F() local
178 auto *node = reinterpret_cast<const DTestNode *>(&(*it1)); in IsEqual() local
186 auto *node = reinterpret_cast<const DTestNode *>(&(*it1)); in IsEqual() local
195 auto *node = reinterpret_cast<const DTestNode *>(&(*it3)); in IsEqual() local
203 auto *node = reinterpret_cast<const DTestNode *>(&(*it3)); in IsEqual() local
220 auto *node = NewNode(i); in TEST_F() local
244 auto *node = NewNode(i); in TEST_F() local
250 …list1.remove_if([](DListNode *node) { return reinterpret_cast<const DTestNode *>(node)->value < 41… in TEST_F()
251 list2.remove_if([](DTestNode &node) { return node.value < 41; }); in TEST_F()
/arkcompiler/ets_runtime/ecmascript/compiler/base/
Ddepend_chain_helper.cpp66 for (Node* node = head_; node != nullptr; node = node->next) { in FoundIndexCheckedForLength() local
77 for (Node* node = head_; node != nullptr; node = node->next) { in FoundIndexCheckedForIndex() local
88 for (Node* node = head_; node != nullptr; node = node->next) { in LookupNode() local
99 Node* node = chunk_->New<Node>(gate, head_); in UpdateNode() local
/arkcompiler/ets_runtime/ecmascript/
Decma_global_storage.h45 void SetNext(Node *node) in SetNext()
55 void SetPrev(Node *node) in SetPrev()
233 inline static NodeList<T> *NodeToNodeList(T *node) in NodeToNodeList()
244 T *node = &nodeList_[index_++]; in NewNode() local
256 T *node = freeList_; in GetFreeNode() local
268 inline void FreeNode(JSThread *thread, T *node) in FreeNode()
437 T *node = reinterpret_cast<T *>(nodeAddr); in DisposeGlobalHandle() local
455 WeakNode *node = reinterpret_cast<WeakNode *>(addr); variable
471 T *node = reinterpret_cast<T *>(addr); in IsWeak() local
506 inline void DisposeGlobalHandleInner(S *node, NodeList<S> **freeList, NodeList<S> **topNodes, in DisposeGlobalHandleInner()
[all …]
Dwaiter_list.cpp22 void WaiterList::AddNode(WaiterListNode *node) in AddNode()
36 void WaiterList::DeleteNode(WaiterListNode *node) in DeleteNode()
/arkcompiler/ets_frontend/es2panda/compiler/function/
DfunctionBuilder.cpp75 void FunctionBuilder::AsyncYield(const ir::AstNode *node, VReg value, VReg completionType, VReg com… in AsyncYield() argument
92 void FunctionBuilder::SuspendResumeExecution(const ir::AstNode *node, VReg completionType, VReg com… in SuspendResumeExecution() argument
101 void FunctionBuilder::resumeGenerator(const ir::AstNode *node, VReg completionType, VReg completion… in resumeGenerator() argument
120 void FunctionBuilder::Await(const ir::AstNode *node) in Await()
139 void FunctionBuilder::HandleCompletion(const ir::AstNode *node, VReg completionType, VReg completio… in HandleCompletion()
172 void FunctionBuilder::YieldStar(const ir::AstNode *node) in YieldStar()
DfunctionBuilder.h52 virtual void Prepare([[maybe_unused]] const ir::ScriptFunction *node) {}; in Prepare()
53 virtual void CleanUp([[maybe_unused]] const ir::ScriptFunction *node) const {}; in CleanUp()
62 virtual void Yield([[maybe_unused]] const ir::AstNode *node) in Yield()
/arkcompiler/ets_frontend/es2panda/typescript/extractor/
DtypeExtractor.h64 bool AddSearchingTypeRefNodes(const ir::Expression * node) in AddSearchingTypeRefNodes()
73 void RemoveSearchingTypeRefNodes(const ir::Expression * node) in RemoveSearchingTypeRefNodes()
80 bool IsInSearchingTypeRefNodes(const ir::Expression * node) in IsInSearchingTypeRefNodes()
DtypeExtractor.cpp365 int64_t TypeExtractor::GetTypeIndexFromDeclNode(const ir::AstNode *node, bool isNewInstance) in GetTypeIndexFromDeclNode()
374 int64_t TypeExtractor::GetTypeIndexFromIdentifierNode(const ir::AstNode *node, bool isNewInstance) in GetTypeIndexFromIdentifierNode()
381 int64_t TypeExtractor::GetTypeIndexFromClassExpression(const ir::AstNode *node, bool isNewInstance) in GetTypeIndexFromClassExpression()
389 int64_t TypeExtractor::GetTypeIndexFromClassDefinition(const ir::AstNode *node, bool isNewInstance) in GetTypeIndexFromClassDefinition()
413 int64_t TypeExtractor::GetTypeIndexFromInterfaceNode(const ir::AstNode *node, [[maybe_unused]] bool… in GetTypeIndexFromInterfaceNode()
433 int64_t TypeExtractor::GetTypeIndexFromFunctionNode(const ir::AstNode *node, [[maybe_unused]] bool … in GetTypeIndexFromFunctionNode()
457 int64_t TypeExtractor::GetTypeIndexFromImportNode(const ir::AstNode *node, [[maybe_unused]] bool is… in GetTypeIndexFromImportNode()
464 int64_t TypeExtractor::GetTypeIndexFromTypeAliasNode(const ir::AstNode *node, [[maybe_unused]] bool… in GetTypeIndexFromTypeAliasNode()
477 int64_t TypeExtractor::GetTypeIndexFromAsNode(const ir::AstNode *node, [[maybe_unused]] bool isNewI… in GetTypeIndexFromAsNode()
484 int64_t TypeExtractor::GetTypeIndexFromAssertionNode(const ir::AstNode *node, [[maybe_unused]] bool… in GetTypeIndexFromAssertionNode()
[all …]
/arkcompiler/ets_frontend/es2panda/parser/transformer/
Dtransformer.cpp111 auto node = currentScope->Node(); in AddVariableToNearestStatements() local
118 auto node = currentScope->Node(); in AddVariableToNearestStatements() local
222 auto *node = childNode->AsTSModuleDeclaration(); in VisitTSNode() local
231 auto *node = childNode->AsTSEnumDeclaration(); in VisitTSNode() local
240 auto *node = childNode->AsExportNamedDeclaration(); in VisitTSNode() local
278 auto *node = childNode->AsExportDefaultDeclaration(); in VisitTSNode() local
293 auto *node = childNode->AsTSImportEqualsDeclaration(); in VisitTSNode() local
303 auto *node = childNode->AsClassDeclaration(); in VisitTSNode() local
314 auto *node = childNode->AsClassExpression(); in VisitTSNode() local
322 auto *node = childNode->AsClassDefinition(); in VisitTSNode() local
[all …]
/arkcompiler/ets_runtime/ecmascript/js_api/
Djs_api_hashmap.cpp48 JSTaggedValue node(array[index]); in HasValue() local
65 bool JSAPIHashMap::HasValueLinkedNode(JSTaggedValue node, JSTaggedValue value) in HasValueLinkedNode()
78 bool JSAPIHashMap::HasValueRBTreeNode(JSTaggedValue node, JSTaggedValue value) in HasValueRBTreeNode()
140 JSTaggedValue node = hashArray->GetNode(thread, hash, key); in Get() local
154 JSMutableHandle<JSTaggedValue> node(thread, JSTaggedValue::Hole()); in SetAll() local
168 …etAllLinkedNode(JSThread *thread, JSHandle<JSAPIHashMap> hashMap, JSMutableHandle<LinkedNode> node) in SetAllLinkedNode()
183 …hMap::SetAllRBTreeNode(JSThread *thread, JSHandle<JSAPIHashMap> hashMap, JSHandle<RBTreeNode> node) in SetAllRBTreeNode()
/arkcompiler/toolchain/tooling/base/
Dpt_json.cpp65 cJSON *node = cJSON_CreateBool(value); in Add() local
98 cJSON *node = cJSON_CreateNumber(value); in Add() local
116 cJSON *node = cJSON_CreateString(value); in Add() local
134 cJSON *node = value->GetJson(); in Add() local
149 cJSON *node = cJSON_CreateBool(value); in Push() local
180 cJSON *node = cJSON_CreateNumber(value); in Push() local
196 cJSON *node = cJSON_CreateString(value); in Push() local
216 cJSON *node = value->GetJson(); in Push() local
239 cJSON *node = cJSON_GetObjectItemCaseSensitive(object_, key); in Contains() local
/arkcompiler/ets_frontend/es2panda/util/
Dconcurrent.cpp30 void Concurrent::SetConcurrent(ir::ScriptFunction *func, const ir::AstNode * node, const lexer::Lin… in SetConcurrent()
63 …t::VerifyImportVarForConcurrentFunction(const lexer::LineIndex &lineIndex, const ir::AstNode *node, in VerifyImportVarForConcurrentFunction()
/arkcompiler/ets_frontend/es2panda/test/parser/ts/
Dtest-type-template-literal2.ts20 type node = `${axis1 | axis2}_${num}`; alias
/arkcompiler/ets_frontend/es2panda/typescript/core/
Dutil.cpp48 bool Checker::InAssignment(const ir::AstNode *node) in InAssignment()
113 const ir::AstNode *Checker::FindAncestorGivenByType(const ir::AstNode *node, ir::AstNodeType type) in FindAncestorGivenByType()
129 const ir::AstNode *Checker::FindAncestorUntilGivenType(const ir::AstNode *node, ir::AstNodeType sto… in FindAncestorUntilGivenType()
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/
Dheap_sampling.cpp50 SamplingNode *node = PushAndGetNode(); in ImplementSampling() local
172 SamplingNode *node = &(samplingInfo_->head_); in PushAndGetNode() local
190 struct SamplingNode *HeapSampling::FindOrAddNode(struct SamplingNode *node, const MethodKey &method… in FindOrAddNode()
227 void HeapSampling::CalNodeSelfSize(SamplingNode *node) in CalNodeSelfSize()

1234