Home
last modified time | relevance | path

Searched refs:Constant (Results 1 - 25 of 99) sorted by relevance

1234

/arkcompiler/ets_frontend/es2panda/compiler/base/
H A Diterators.cpp39 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 DoptionalChain.cpp50 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 Didentifier.cpp56 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 DunaryExpression.cpp50 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 DawaitExpression.cpp44 pg->LoadConst(this, compiler::Constant::JS_UNDEFINED); in Compile()
/arkcompiler/ets_frontend/ets2panda/compiler/base/
H A Diterators.cpp124 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 Dhoisting.cpp28 pg->LoadConst(decl->Node(), Constant::JS_UNDEFINED); in HoistVar()
35 pg->LoadConst(decl->Node(), Constant::JS_UNDEFINED); in HoistVar()
H A DoptionalChain.cpp52 pg_->LoadConst(node_, compiler::Constant::JS_UNDEFINED); in Check()
/arkcompiler/ets_frontend/ets2panda/ir/
H A DastDump.cpp102 } 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 DastDump.h80 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 DastDump.h67 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 DastDump.cpp111 } 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 Dinline_ir_utils.cpp21 using llvm::Constant;
42 const Constant *aliasee = alias.getAliasee(); in RemoveDanglingAliases()
/arkcompiler/ets_frontend/es2panda/ir/expressions/literals/
H A DbooleanLiteral.cpp33 pg->LoadConst(this, boolean_ ? compiler::Constant::JS_TRUE : compiler::Constant::JS_FALSE); in Compile()
H A DnullLiteral.cpp28 dumper->Add({{"type", "NullLiteral"}, {"value", AstDumper::Property::Constant::PROP_NULL}}); in Dump()
33 pg->LoadConst(this, compiler::Constant::JS_NULL); in Compile()
H A DnumberLiteral.cpp40 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 DundefinedLiteral.cpp35 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 DgeneratorFunctionBuilder.cpp32 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 DasyncGeneratorFunctionBuilder.cpp35 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 DfunctionBuilder.cpp55 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 Dgc_utils.h65 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 Dpandagen.cpp511 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 DJSCompiler.cpp56 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 Dfixup_poisons.cpp43 auto replacement = llvm::Constant::getNullValue(poison->getType()); in FixupInstructionOperands()
/arkcompiler/ets_frontend/ets2panda/compiler/function/
H A DasyncFunctionBuilder.cpp31 pg_->LoadConst(node, Constant::JS_UNDEFINED); in ImplicitReturn()

Completed in 15 milliseconds

1234