/arkcompiler/ets_frontend/es2panda/compiler/base/ |
H A D | iterators.cpp | 39 pg_->StoreConst(node_, closed_, Constant::JS_FALSE); in Iterator() 92 pg_->StoreConst(node_, closed_, Constant::JS_TRUE); in Close() 93 pg_->StoreConst(node_, innerResult, Constant::JS_UNDEFINED); in Close() 94 pg_->StoreConst(node_, innerException, Constant::JS_HOLE); in Close() 149 pg_->StoreConst(node, done_, Constant::JS_FALSE); in DestructuringIterator() 150 pg_->StoreConst(node, result_, Constant::JS_UNDEFINED); in DestructuringIterator() 166 pg_->StoreConst(node_, done_, Constant::JS_TRUE); in Step() 167 pg_->LoadConst(node_, Constant::JS_UNDEFINED); in Step() 182 pg_->StoreConst(node_, done_, Constant::JS_TRUE); in Step() 190 pg_->LoadConst(node_, Constant in OnIterDone() [all...] |
H A D | optionalChain.cpp | 50 pg_->LoadConst(node_, Constant::JS_NULL); in CheckNullish() 52 pg_->LoadConst(node_, Constant::JS_UNDEFINED); in CheckNullish() 57 pg_->LoadConst(node_, compiler::Constant::JS_UNDEFINED); in CheckNullish()
|
/arkcompiler/ets_frontend/es2panda/ir/expressions/ |
H A D | identifier.cpp | 56 pg->LoadConst(this, compiler::Constant::JS_NAN); in Compile() 61 pg->LoadConst(this, compiler::Constant::JS_INFINITY); in Compile() 66 pg->LoadConst(this, compiler::Constant::JS_GLOBAL); in Compile() 71 pg->LoadConst(this, compiler::Constant::JS_UNDEFINED); in Compile()
|
H A D | unaryExpression.cpp | 50 pg->LoadConst(this, compiler::Constant::JS_GLOBAL); in Compile() 60 pg->LoadConst(this, compiler::Constant::JS_FALSE); in Compile() 74 pg->LoadConst(this, compiler::Constant::JS_TRUE); in Compile() 87 pg->LoadConst(this, compiler::Constant::JS_GLOBAL); in Compile() 105 pg->LoadConst(this, compiler::Constant::JS_UNDEFINED); in Compile()
|
H A D | awaitExpression.cpp | 44 pg->LoadConst(this, compiler::Constant::JS_UNDEFINED); in Compile()
|
/arkcompiler/ets_frontend/ets2panda/compiler/base/ |
H A D | iterators.cpp | 124 pg_->LoadConst(node_, Constant::JS_HOLE); in Close() 136 pg_->StoreConst(node_, innerResultType, Constant::JS_HOLE); in Close() 178 pg_->StoreConst(node, done_, Constant::JS_FALSE); in DestructuringIterator() 179 pg_->StoreConst(node, result_, Constant::JS_UNDEFINED); in DestructuringIterator() 194 pg_->StoreConst(node_, done_, Constant::JS_TRUE); in Step() 195 pg_->LoadConst(node_, Constant::JS_UNDEFINED); in Step() 209 pg_->StoreConst(node_, done_, Constant::JS_TRUE); in Step() 217 pg_->LoadConst(node_, Constant::JS_UNDEFINED); in OnIterDone()
|
H A D | hoisting.cpp | 28 pg->LoadConst(decl->Node(), Constant::JS_UNDEFINED); in HoistVar() 35 pg->LoadConst(decl->Node(), Constant::JS_UNDEFINED); in HoistVar()
|
H A D | optionalChain.cpp | 52 pg_->LoadConst(node_, compiler::Constant::JS_UNDEFINED); in Check()
|
/arkcompiler/ets_frontend/ets2panda/ir/ |
H A D | astDump.cpp | 102 } else if (std::holds_alternative<Property::Constant>(value)) { in Serialize() 103 SerializeConstant(std::get<Property::Constant>(value)); in Serialize() 166 void AstDumper::SerializeConstant(Property::Constant constant) in SerializeConstant() 169 case Property::Constant::PROP_NULL: { in SerializeConstant() 173 case Property::Constant::PROP_UNDEFINED: { in SerializeConstant() 177 case Property::Constant::EMPTY_ARRAY: { in SerializeConstant()
|
H A D | astDump.h | 80 enum class Constant { class in ark::es2panda::ir::AstDumper::Property 88 Constant, Nullish, Ignore>; 99 Property(const char *key, Constant constant) : key_(key), value_(constant) {} in Property() 105 value_ = Property::Constant::PROP_NULL; in Property() 143 value_ = Constant::EMPTY_ARRAY; in Property() 170 value_ = Constant::EMPTY_ARRAY; in Property() 237 void SerializeConstant(Property::Constant constant);
|
/arkcompiler/ets_frontend/es2panda/ir/ |
H A D | astDump.h | 67 enum class Constant { class in panda::es2panda::ir::AstDumper::Property 74 double, const ir::AstNode *, std::vector<const ir::AstNode *>, Constant, Nullable, Ignore>; 84 Property(const char *key, Constant constant) : key_(key), value_(constant) {} in Property() 90 value_ = Property::Constant::PROP_NULL; in Property() 119 value_ = Constant::EMPTY_ARRAY; in Property() 195 void SerializeConstant(Property::Constant constant);
|
H A D | astDump.cpp | 111 } else if (std::holds_alternative<Property::Constant>(value)) { in Serialize() 112 SerializeConstant(std::get<Property::Constant>(value)); in Serialize() 161 void AstDumper::SerializeConstant(Property::Constant constant) in SerializeConstant() 164 case Property::Constant::PROP_NULL: { in SerializeConstant() 168 case Property::Constant::EMPTY_ARRAY: { in SerializeConstant()
|
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/passes/inline_ir/ |
H A D | inline_ir_utils.cpp | 21 using llvm::Constant; 42 const Constant *aliasee = alias.getAliasee(); in RemoveDanglingAliases()
|
/arkcompiler/ets_frontend/es2panda/ir/expressions/literals/ |
H A D | booleanLiteral.cpp | 33 pg->LoadConst(this, boolean_ ? compiler::Constant::JS_TRUE : compiler::Constant::JS_FALSE); in Compile()
|
H A D | nullLiteral.cpp | 28 dumper->Add({{"type", "NullLiteral"}, {"value", AstDumper::Property::Constant::PROP_NULL}}); in Dump() 33 pg->LoadConst(this, compiler::Constant::JS_NULL); in Compile()
|
H A D | numberLiteral.cpp | 40 pg->LoadConst(this, compiler::Constant::JS_NAN); in Compile() 42 pg->LoadConst(this, compiler::Constant::JS_INFINITY); in Compile()
|
/arkcompiler/ets_frontend/ets2panda/ir/expressions/literals/ |
H A D | undefinedLiteral.cpp | 35 dumper->Add({{"type", "UndefinedLiteral"}, {"value", AstDumper::Property::Constant::PROP_UNDEFINED}}); in Dump() 45 pg->LoadConst(this, compiler::Constant::JS_UNDEFINED); in Compile()
|
/arkcompiler/ets_frontend/es2panda/compiler/function/ |
H A D | generatorFunctionBuilder.cpp | 32 pg_->LoadConst(node, Constant::JS_UNDEFINED); in Prepare() 55 pg_->LoadConst(node, Constant::JS_UNDEFINED); in ImplicitReturn() 74 pg_->LoadConst(node, Constant::JS_FALSE); in Yield()
|
H A D | asyncGeneratorFunctionBuilder.cpp | 35 pg_->LoadConst(node, Constant::JS_UNDEFINED); in Prepare() 63 pg_->StoreConst(node, canSuspend, Constant::JS_TRUE); in DirectReturn() 76 pg_->LoadConst(node, Constant::JS_UNDEFINED); in ImplicitReturn() 90 pg_->StoreConst(node, canSuspend, Constant::JS_TRUE); in ExplicitReturn()
|
H A D | functionBuilder.cpp | 55 pg_->LoadConst(node, Constant::JS_UNDEFINED); in ImplicitReturn() 89 pg_->StoreConst(node, done, Constant::JS_FALSE); in AsyncYield() 197 pg_->StoreConst(node, receivedValue, Constant::JS_UNDEFINED); in YieldStar() 204 pg_->StoreConst(node, exitReturn, Constant::JS_FALSE); in YieldStar() 238 pg_->StoreConst(node, exitReturn, Constant::JS_TRUE); in YieldStar()
|
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/ |
H A D | gc_utils.h | 65 auto op0 = llvm::dyn_cast<llvm::Constant>(cmp->getOperand(0)); in IsNullCmp() 66 auto op1 = llvm::dyn_cast<llvm::Constant>(cmp->getOperand(1)); in IsNullCmp()
|
/arkcompiler/ets_frontend/es2panda/compiler/core/ |
H A D | pandagen.cpp | 511 LoadConst(node, compiler::Constant::JS_GLOBAL); in LoadObjByNameViaDebugger() 521 LoadConst(node, compiler::Constant::JS_TRUE); in LoadObjByNameViaDebugger() 523 LoadConst(node, compiler::Constant::JS_FALSE); in LoadObjByNameViaDebugger() 545 LoadConst(node, compiler::Constant::JS_GLOBAL); in StoreObjByNameViaDebugger() 725 void PandaGen::StoreConst(const ir::AstNode *node, VReg reg, Constant id) in StoreConst() 731 void PandaGen::LoadConst(const ir::AstNode *node, Constant id) in LoadConst() 734 case Constant::JS_HOLE: { in LoadConst() 738 case Constant::JS_NAN: { in LoadConst() 742 case Constant::JS_INFINITY: { in LoadConst() 746 case Constant in LoadConst() [all...] |
/arkcompiler/ets_frontend/ets2panda/compiler/core/ |
H A D | JSCompiler.cpp | 56 pg->LoadConst(node, compiler::Constant::JS_HOLE); in CompileHeritageClause() 242 pg->LoadConst(prop, compiler::Constant::JS_UNDEFINED); in CompileStaticFieldInitializers() 276 pg->LoadConst(node, compiler::Constant::JS_UNDEFINED); in CompilePropertyKind() 474 pg->LoadConst(expr, compiler::Constant::JS_UNDEFINED); in Compile() 560 pg->StoreConst(expr, argStart, compiler::Constant::JS_UNDEFINED); in CompileSuperExprWithoutSpread() 628 pg->StoreConst(expr, thisReg, compiler::Constant::JS_UNDEFINED); in Compile() 675 pg->LoadConst(expr, compiler::Constant::JS_UNDEFINED); in Compile() 721 pg->LoadConst(expr, compiler::Constant::JS_NAN); in Compile() 726 pg->LoadConst(expr, compiler::Constant::JS_INFINITY); in Compile() 731 pg->LoadConst(expr, compiler::Constant in Compile() [all...] |
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/passes/ |
H A D | fixup_poisons.cpp | 43 auto replacement = llvm::Constant::getNullValue(poison->getType()); in FixupInstructionOperands()
|
/arkcompiler/ets_frontend/ets2panda/compiler/function/ |
H A D | asyncFunctionBuilder.cpp | 31 pg_->LoadConst(node, Constant::JS_UNDEFINED); in ImplicitReturn()
|