/arkcompiler/ets_frontend/es2panda/compiler/base/ |
H A D | iterators.cpp | 27 : pg_(pg), node_(node), closed_(pg->AllocReg()), method_(pg->AllocReg()), iterator_(pg->AllocReg()), in Iterator() 37 pg_->LoadObjByName(node_, iterator_, "next"); in Iterator() 38 pg_->StoreAccumulator(node_, method_); in Iterator() 39 pg_->StoreConst(node_, closed_, Constant::JS_FALSE); in Iterator() 44 pg_->LoadObjByName(node_, iterator_, name); in GetMethod() 45 pg_->StoreAccumulator(node_, method_); in GetMethod() 50 pg_->CallThis(node_, method_, 2); in CallMethodWithValue() 55 pg_->CallThis(node_, method_, 1); in CallMethod() 63 pg_->FuncBuilder()->Await(node_); in Next() 66 pg_->StoreAccumulator(node_, nextResult in Next() [all...] |
H A D | optionalChain.cpp | 22 OptionalChain::OptionalChain(PandaGen *pg, const ir::AstNode *node) : pg_(pg), node_(node), prev_(pg->optionalChain_) in OptionalChain() 30 pg_->SetLabel(node_, label_); in ~OptionalChain() 50 pg_->LoadConst(node_, Constant::JS_NULL); in CheckNullish() 51 pg_->Condition(node_, lexer::TokenType::PUNCTUATOR_NOT_STRICT_EQUAL, obj, nullish); in CheckNullish() 52 pg_->LoadConst(node_, Constant::JS_UNDEFINED); in CheckNullish() 53 pg_->Condition(node_, lexer::TokenType::PUNCTUATOR_NOT_STRICT_EQUAL, obj, nullish); in CheckNullish() 54 pg_->Branch(node_, notNullish); in CheckNullish() 55 pg_->SetLabel(node_, nullish); in CheckNullish() 57 pg_->LoadConst(node_, compiler::Constant::JS_UNDEFINED); in CheckNullish() 59 pg_->Branch(node_, label in CheckNullish() [all...] |
H A D | lreference.cpp | 39 : node_(node), pg_(pg), refKind_(refKind), res_(res), isDeclaration_(isDeclaration) in LReference() 44 node_->AsMemberExpression()->CompileObject(pg_, obj_); in LReference() 45 if (!node_->AsMemberExpression()->AccessPrivateProperty()) { in LReference() 55 pg_->LoadVar(node_->AsIdentifier(), res_); in GetValue() 59 if (node_->AsMemberExpression()->AccessPrivateProperty()) { in GetValue() 60 auto name = node_->AsMemberExpression()->Property()->AsPrivateIdentifier()->Name(); in GetValue() 63 pg_->LoadAccumulator(node_, obj_); in GetValue() 64 pg_->LoadPrivateProperty(node_, result.lexLevel, result.result.slot); in GetValue() 69 pg_->LoadLexicalVar(node_, result.lexLevel, result.result.validateMethodSlot); in GetValue() 70 pg_->Equal(node_, obj in GetValue() [all...] |
H A D | iterators.h | 55 return node_; in Node() 69 const ir::AstNode *node_; member in panda::es2panda::panda::es2panda::compiler::Iterator
|
H A D | optionalChain.h | 40 const ir::AstNode *node_ {};
|
H A D | lreference.h | 57 const ir::AstNode *node_; member in panda::es2panda::panda::es2panda::compiler::LReference
|
/arkcompiler/ets_frontend/ets2panda/compiler/base/ |
H A D | iterators.cpp | 26 : pg_(pg), node_(node), method_(pg->AllocReg()), iterator_(pg->AllocReg()), nextResult_(pg->AllocReg()), type_(type) in Iterator() 35 pg_->LoadObjByName(node_, "next"); in Iterator() 36 pg_->StoreAccumulator(node_, method_); in Iterator() 38 pg_->ThrowIfNotObject(node_); in Iterator() 43 pg_->GetMethod(node_, iterator_, name); in GetMethod() 44 pg_->StoreAccumulator(node_, method_); in GetMethod() 49 pg_->Call1This(node_, method_, iterator_, nextResult_); in CallMethodWithValue() 54 pg_->Call0This(node_, method_, iterator_); in CallMethod() 62 pg_->FuncBuilder()->Await(node_); in Next() 65 pg_->ThrowIfNotObject(node_); in Next() [all...] |
H A D | optionalChain.cpp | 21 OptionalChain::OptionalChain(PandaGen *pg, const ir::AstNode *node) : pg_(pg), node_(node), prev_(pg->optionalChain_) in OptionalChain() 29 pg_->SetLabel(node_, label_); in ~OptionalChain() 45 pg_->StoreAccumulator(node_, obj); in Check() 50 pg_->BranchIfCoercible(node_, coercibleLabel); in Check() 52 pg_->LoadConst(node_, compiler::Constant::JS_UNDEFINED); in Check() 53 pg_->Branch(node_, label_); in Check() 55 pg_->SetLabel(node_, coercibleLabel); in Check() 56 pg_->LoadAccumulator(node_, obj); in Check()
|
H A D | lreference.h | 73 return node_; in Node() 98 : node_(node), refKind_(refKind), res_(res), isDeclaration_(isDeclaration) in LReference() 103 const ir::AstNode *node_; member in ark::es2panda::ark::es2panda::ark::es2panda::compiler::LReference
|
H A D | iterators.h | 54 return node_; in Node() 70 const ir::AstNode *node_; member in ark::es2panda::ark::es2panda::compiler::Iterator
|
H A D | optionalChain.h | 38 const ir::AstNode *node_ {};
|
/arkcompiler/runtime_core/libpandabase/utils/ |
H A D | list.h | 71 explicit ListIterator(const ListNode *node) : node_(node) {} in ListIterator() 75 : node_(src.node_) in ListIterator() 81 ASSERT(node_); in operator ++() 82 node_ = node_->next_; in operator ++() 88 ASSERT(node_); in operator ++() 90 node_ = node_->next_; in operator ++() 96 ASSERT(node_); in operator +() 421 T *node_ = nullptr; global() member in DListIterator 483 T *node_ = nullptr; global() member in DListReverseIterator [all...] |
/arkcompiler/runtime_core/static_core/libpandabase/utils/ |
H A D | list.h | 69 explicit ListIterator(const ListNode *node) : node_(node) {} in ListIterator() 73 : node_(src.node_) in ListIterator() 79 ASSERT(node_); in operator ++() 80 node_ = node_->next_; in operator ++() 86 ASSERT(node_); in operator ++() 88 node_ = node_->next_; in operator ++() 94 ASSERT(node_); in operator +() 405 T *node_ = nullptr; global() member in DListIterator 465 T *node_ = nullptr; global() member in DListReverseIterator [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/base/ |
H A D | depend_chain_helper.h | 34 DependChainIterator(Node* node) : node_(node) {} in DependChainIterator() 38 ASSERT(node_ != nullptr); in operator ++() 39 node_ = node_->next; in operator ++() 45 return node_ != that.node_; in operator !=() 50 return node_->gate; in GetCurrentGate() 53 Node* node_; member
|
/arkcompiler/ets_frontend/es2panda/binder/ |
H A D | declaration.cpp | 28 return node_ && node_->IsClassDefinition() && node_->AsClassDefinition()->IsSendable(); in IsSendableClassDecl() 33 return node_ && node_->IsScriptFunction() && node_->AsScriptFunction()->IsSendable(); in IsSendableFunctionDecl()
|
H A D | scope.cpp | 196 return !node_->AsClassDefinition()->IsSendable(); in IsVariableScope() 286 if (node_ && node_->IsClassDefinition() && node_->AsClassDefinition()->Ident()) { in GetSelfScopeName() 287 util::StringView selfName = node_->AsClassDefinition()->Ident()->Name(); in GetSelfScopeName() 292 if (node_ && node_->Parent() && node_->Parent()->Parent()) { in GetSelfScopeName() 293 scopeName << util::Helpers::GetName(allocator_, node_->Parent()->Parent()); in GetSelfScopeName() 623 if (IsFunctionScope() && (node_ in GetScopeTag() [all...] |
H A D | declaration.h | 57 return node_; in Node() 80 node_ = node; in BindNode() 139 const ir::AstNode *node_ {}; 321 node_ = node; in FunctionDecl()
|
/arkcompiler/ets_frontend/ets2panda/checker/ets/ |
H A D | baseAnalyzer.h | 40 : node_(node), jumpResolver_(std::move(jumpResolver)) 55 return node_; in Node() 59 const ir::AstNode *node_; member in ark::es2panda::ark::es2panda::checker::PendingExit
|
/arkcompiler/ets_frontend/ets2panda/ir/ |
H A D | irnode.h | 115 explicit IRNode(const ir::AstNode *node) : node_(node) {}; in IRNode() 123 return node_; in Node() 156 const ir::AstNode *node_; member in ark::es2panda::ark::es2panda::compiler::IRNode
|
H A D | astDump.h | 33 explicit Nullish(const ir::AstNode *node) : node_(node) {} in Nullish() 37 return node_; in Node() 41 const ir::AstNode *node_; member in ark::es2panda::ir::AstDumper::Nullish
|
/arkcompiler/ets_frontend/es2panda/ir/ |
H A D | irnode.h | 107 explicit IRNode(const ir::AstNode *node) : node_(node) {}; in IRNode() 115 return node_; in Node() 141 const ir::AstNode *node_; member in panda::es2panda::panda::panda::es2panda::compiler::IRNode
|
H A D | astDump.h | 33 explicit Nullable(const ir::AstNode *node) : node_(node) {} in Nullable() 37 return node_; in Node() 41 const ir::AstNode *node_; member in panda::es2panda::ir::AstDumper::Nullable
|
/arkcompiler/ets_frontend/es2panda/typescript/types/ |
H A D | signature.h | 102 node_ = node; in SetNode() 107 return node_; in Node() 124 const ir::AstNode *node_ {nullptr};
|
/arkcompiler/ets_frontend/ets2panda/varbinder/ |
H A D | declaration.h | 55 return node_; in Node() 60 return node_; in Node() 84 node_ = node; in BindNode() 99 explicit Decl(util::StringView name, ir::AstNode *declNode) : name_(name), node_(declNode) {} in Decl() 103 ir::AstNode *node_ {}; 197 node_ = node; in FunctionDecl()
|
/arkcompiler/ets_frontend/ets2panda/checker/types/ |
H A D | typeRelation.h | 249 return node_; in GetNode() 329 node_ = node; in SetNode() 353 ir::Expression *node_ {};
|