Home
last modified time | relevance | path

Searched refs:etsg (Results 1 - 25 of 313) sorted by relevance

12345678910>>...13

/arkcompiler/ets_frontend/ets2panda/compiler/core/
H A DETSCompiler.cpp37 ETSGen *etsg = GetETSGen(); in Compile() local
38 compiler::LocalRegScope lrs(etsg, st->Scope()->ParamScope()); in Compile()
39 etsg->SetAccumulatorType(st->TsType()); in Compile()
40 auto lref = compiler::ETSLReference::Create(etsg, st->Param(), true); in Compile()
42 st->Body()->Compile(etsg); in Compile()
47 ETSGen *etsg = GetETSGen(); in Compile() local
52 auto ttctx = compiler::TargetTypeContext(etsg, st->TsType()); in Compile()
53 compiler::RegScope rs(etsg); in Compile()
56 etsg->LoadDefaultValue(st, st->TsType()); in Compile()
57 } else if (!etsg in Compile()
71 ETSGen *etsg = GetETSGen(); Compile() local
79 ETSGen *etsg = GetETSGen(); Compile() local
98 ETSGen *etsg = GetETSGen(); Compile() local
106 ETSGen *etsg = GetETSGen(); Compile() local
138 ETSGen *etsg = GetETSGen(); Compile() local
188 LoadDynamicName(compiler::ETSGen *etsg, const ir::AstNode *node, const ArenaVector<util::StringView> &dynName, bool isConstructor) LoadDynamicName() argument
205 CreateDynamicObject(const ir::AstNode *node, compiler::ETSGen *etsg, const ir::Expression *typeRef, checker::Signature *signature, const ArenaVector<ir::Expression *> &arguments) CreateDynamicObject() argument
251 HandleUnionTypeInForOf(compiler::ETSGen *etsg, checker::Type const *const exprType, const ir::ForOfStatement *st, VReg objReg, VReg *countReg) HandleUnionTypeInForOf() argument
299 GetSizeInForOf(compiler::ETSGen *etsg, checker::Type const *const exprType, const ir::ForOfStatement *st, VReg objReg) GetSizeInForOf() argument
310 MaybeCastUnionTypeToFunctionType(compiler::ETSGen *etsg, const ir::CallExpression *expr, checker::Signature *signature) MaybeCastUnionTypeToFunctionType() argument
323 ETSGen *etsg = GetETSGen(); Compile() local
338 ETSGen *etsg = GetETSGen(); Compile() local
345 ETSGen *etsg = GetETSGen(); Compile() local
358 ETSGen *etsg = GetETSGen(); Compile() local
365 ETSGen *etsg = GetETSGen(); Compile() local
372 ETSGen *etsg = GetETSGen(); Compile() local
378 ETSGen *etsg = GetETSGen(); Compile() local
416 ETSGen *etsg = GetETSGen(); Compile() local
448 ETSGen *etsg = GetETSGen(); Compile() local
459 CompileNullishCoalescing(compiler::ETSGen *etsg, ir::BinaryExpression const *const node) CompileNullishCoalescing() argument
490 CompileLogical(compiler::ETSGen *etsg, const ir::BinaryExpression *expr) CompileLogical() argument
537 CompileInstanceof(compiler::ETSGen *etsg, const ir::BinaryExpression *expr) CompileInstanceof() argument
581 CompileBigInt(compiler::ETSGen *etsg, const ir::BinaryExpression *expr) CompileBigInt() argument
630 ETSGen *etsg = GetETSGen(); Compile() local
732 ETSGen *etsg = GetETSGen(); Compile() local
749 ETSGen *etsg = GetETSGen(); IsSucceedCompilationProxyMemberExpr() local
802 ETSGen *etsg = GetETSGen(); CompileDynamic() local
835 ETSGen *etsg = GetETSGen(); EmitCall() local
851 ConvertArgumentsForFunctionReference(ETSGen *etsg, const ir::CallExpression *expr) ConvertArgumentsForFunctionReference() argument
875 ETSGen *etsg = GetETSGen(); Compile() local
932 ETSGen *etsg = GetETSGen(); Compile() local
953 ETSGen *etsg = GetETSGen(); Compile() local
973 CompileComputed(compiler::ETSGen *etsg, const ir::MemberExpression *expr) CompileComputed() argument
1008 ETSGen *etsg = GetETSGen(); Compile() local
1123 ETSGen *etsg = GetETSGen(); Compile() local
1170 ETSGen *etsg = GetETSGen(); Compile() local
1178 ETSGen *etsg = GetETSGen(); Compile() local
1186 ETSGen *etsg = GetETSGen(); Compile() local
1193 ETSGen *etsg = GetETSGen(); Compile() local
1200 ETSGen *etsg = GetETSGen(); Compile() local
1215 ETSGen *etsg = GetETSGen(); Compile() local
1232 ETSGen *etsg = GetETSGen(); Compile() local
1244 ETSGen *etsg = GetETSGen(); Compile() local
1251 ETSGen *etsg = GetETSGen(); Compile() local
1258 ETSGen *etsg = GetETSGen(); Compile() local
1265 ETSGen *etsg = GetETSGen(); Compile() local
1291 ETSGen *etsg = GetETSGen(); Compile() local
1296 ThrowError(compiler::ETSGen *const etsg, const ir::AssertStatement *st) ThrowError() argument
1317 ETSGen *etsg = GetETSGen(); Compile() local
1342 ETSGen *etsg = GetETSGen(); Compile() local
1357 ETSGen *etsg = GetETSGen(); Compile() local
1366 CompileImpl(const ir::ContinueStatement *self, ETSGen *etsg) CompileImpl() argument
1374 ETSGen *etsg = GetETSGen(); Compile() local
1381 CompileImpl(const ir::DoWhileStatement *self, ETSGen *etsg) CompileImpl() argument
1403 ETSGen *etsg = GetETSGen(); Compile() local
1411 ETSGen *etsg = GetETSGen(); Compile() local
1417 ETSGen *etsg = GetETSGen(); Compile() local
1468 ETSGen *etsg = GetETSGen(); Compile() local
1502 ETSGen *etsg = GetETSGen(); Compile() local
1544 ETSGen *etsg = GetETSGen(); Compile() local
1550 ETSGen *etsg = GetETSGen(); Compile() local
1597 CompileImpl(const ir::SwitchStatement *self, ETSGen *etsg) CompileImpl() argument
1631 ETSGen *etsg = GetETSGen(); Compile() local
1637 ETSGen *etsg = GetETSGen(); Compile() local
1643 ETSGen *etsg = GetETSGen(); Compile() local
1680 ETSGen *etsg = GetETSGen(); Compile() local
1699 ETSGen *etsg = GetETSGen(); Compile() local
1725 ETSGen *etsg = GetETSGen(); Compile() local
1731 ETSGen *etsg = GetETSGen(); Compile() local
1737 ETSGen *etsg = GetETSGen(); CompileCastUnboxable() local
1782 ETSGen *etsg = GetETSGen(); CompileCastPrimitives() local
1826 ETSGen *etsg = GetETSGen(); CompileCast() local
1868 ETSGen *etsg = GetETSGen(); Compile() local
1901 ETSGen *etsg = GetETSGen(); Compile() local
[all...]
H A DETSfunction.cpp38 void ETSFunction::CallImplicitCtor(ETSGen *etsg) in CallImplicitCtor() argument
40 RegScope rs(etsg); in CallImplicitCtor()
41 auto *superType = etsg->ContainingObjectType()->SuperType(); in CallImplicitCtor()
44 etsg->CallExact(etsg->RootNode(), Signatures::BUILTIN_OBJECT_CTOR, etsg->GetThisReg()); in CallImplicitCtor()
55 etsg->CallExact(etsg->RootNode(), (*res)->InternalName(), etsg->GetThisReg()); in CallImplicitCtor()
58 void ETSFunction::CompileSourceBlock(ETSGen *etsg, cons argument
87 ExtendWithDefaultReturn(ETSGen *etsg, const ir::AstNode *node, const ir::ScriptFunction *scriptFunc) ExtendWithDefaultReturn() argument
103 CompileAsStaticBlock(ETSGen *etsg) CompileAsStaticBlock() argument
134 CompileAsConstructor(ETSGen *etsg, const ir::ScriptFunction *scriptFunc) CompileAsConstructor() argument
149 CompileFunction(ETSGen *etsg) CompileFunction() argument
158 Compile(ETSGen *etsg) Compile() argument
[all...]
H A DdynamicContext.cpp219 auto *etsg = static_cast<ETSGen *>(Cg()); in EmitFinalizer() local
223 tryStmt_->FinallyBlock()->Compile(etsg); in EmitFinalizer()
225 etsg->Branch(tryStmt_, finalizerTable->LabelSet().CatchEnd()); in EmitFinalizer()
228 EmitFinalizerInsertion(etsg, insertion.first, insertion.second); in EmitFinalizer()
231 etsg->SetLabel(tryStmt_, finalizerTable->LabelSet().CatchBegin()); in EmitFinalizer()
233 compiler::VReg exception = etsg->StoreException(tryStmt_); in EmitFinalizer()
235 tryStmt_->FinallyBlock()->Compile(etsg); in EmitFinalizer()
237 etsg->LoadAccumulator(tryStmt_, exception); in EmitFinalizer()
238 etsg->EmitThrow(tryStmt_, exception); in EmitFinalizer()
240 etsg in EmitFinalizer()
243 EmitFinalizerInsertion(ETSGen *etsg, compiler::LabelPair labelPair, const ir::Statement *statement) EmitFinalizerInsertion() argument
[all...]
H A DETSfunction.h33 static void Compile(ETSGen *etsg);
36 static void GenerateEnumMembers(ETSGen *etsg, const ir::AstNode *node, VReg arrayObj,
38 static void CompileSourceBlock(ETSGen *etsg, const ir::BlockStatement *block);
39 static void CompileAsStaticBlock(ETSGen *etsg);
40 static void CompileAsConstructor(ETSGen *etsg, const ir::ScriptFunction *scriptFunc);
41 static void CompileFunction(ETSGen *etsg);
42 static void CallImplicitCtor(ETSGen *etsg);
43 static void ExtendWithDefaultReturn(ETSGen *etsg, const ir::AstNode *node, const ir::ScriptFunction *scriptFunc);
H A DtargetTypeContext.cpp21 TargetTypeContext::TargetTypeContext(ETSGen *etsg, const checker::Type *targetType) in TargetTypeContext() argument
22 : etsg_(etsg), prev_(etsg->targetType_) in TargetTypeContext()
24 etsg->targetType_ = targetType; in TargetTypeContext()
H A DETSCompiler.h44 bool HandleArrayTypeLengthProperty(const ir::MemberExpression *expr, ETSGen *etsg) const;
45 bool HandleEnumTypes(const ir::MemberExpression *expr, ETSGen *etsg) const;
46 bool HandleStaticProperties(const ir::MemberExpression *expr, ETSGen *etsg) const;
48 static bool CompileComputed(compiler::ETSGen *etsg, const ir::MemberExpression *expr);
/arkcompiler/ets_frontend/ets2panda/compiler/base/
H A Dcondition.cpp102 Condition::Result Condition::CheckConstantExpr(ETSGen *etsg, const ir::Expression *expr) in CheckConstantExpr() argument
117 if (etsg->Checker()->IsNullLikeOrVoidExpression(resultingExpression)) { in CheckConstantExpr()
129 void Condition::CompileLogicalOrExpr(ETSGen *etsg, const ir::BinaryExpression *binExpr, Label *falseLabel) in CompileLogicalOrExpr() argument
131 auto ttctx = TargetTypeContext(etsg, binExpr->OperationType()); in CompileLogicalOrExpr()
132 RegScope rs(etsg); in CompileLogicalOrExpr()
133 VReg lhs = etsg->AllocReg(); in CompileLogicalOrExpr()
134 VReg rhs = etsg->AllocReg(); in CompileLogicalOrExpr()
135 auto *returnLeftLabel = etsg->AllocLabel(); in CompileLogicalOrExpr()
136 auto *returnRightTrueLabel = etsg->AllocLabel(); in CompileLogicalOrExpr()
137 auto *returnRightFalseLabel = etsg in CompileLogicalOrExpr()
159 CompileLogicalAndExpr(ETSGen *etsg, const ir::BinaryExpression *binExpr, Label *falseLabel) CompileLogicalAndExpr() argument
190 CompileBinaryExprForBigInt(ETSGen *etsg, const ir::BinaryExpression *expr, Label *falseLabel) CompileBinaryExprForBigInt() argument
238 CompileInstanceofExpr(ETSGen *etsg, const ir::BinaryExpression *binExpr, Label *falseLabel) CompileInstanceofExpr() argument
245 CompileBinaryExpr(ETSGen *etsg, const ir::BinaryExpression *binExpr, Label *falseLabel) CompileBinaryExpr() argument
286 Compile(ETSGen *etsg, const ir::Expression *expr, Label *falseLabel) Compile() argument
[all...]
H A Dcondition.h37 static void Compile(ETSGen *etsg, const ir::Expression *expr, Label *falseLabel);
38 static Result CheckConstantExpr(ETSGen *etsg, const ir::Expression *expr);
42 static bool CompileBinaryExpr(ETSGen *etsg, const ir::BinaryExpression *binExpr, Label *falseLabel);
43 static void CompileLogicalAndExpr(ETSGen *etsg, const ir::BinaryExpression *binExpr, Label *falseLabel);
44 static void CompileLogicalOrExpr(ETSGen *etsg, const ir::BinaryExpression *binExpr, Label *falseLabel);
45 static bool CompileBinaryExprForBigInt(ETSGen *etsg, const ir::BinaryExpression *binExpr, Label *falseLabel);
46 static void CompileInstanceofExpr(ETSGen *etsg, const ir::BinaryExpression *binExpr, Label *falseLabel);
/arkcompiler/ets_frontend/ets2panda/ir/expressions/
H A DbinaryExpression.cpp72 void BinaryExpression::Compile(compiler::ETSGen *etsg) const in Compile()
74 etsg->GetAstCompiler()->Compile(this); in Compile()
77 void BinaryExpression::CompileOperands(compiler::ETSGen *etsg, compiler::VReg lhs) const in CompileOperands() argument
79 left_->Compile(etsg); in CompileOperands()
82 etsg->StoreAccumulator(left_, lhs); in CompileOperands()
84 etsg->ApplyConversionAndStoreAccumulator(left_, lhs, operationType_); in CompileOperands()
87 right_->Compile(etsg); in CompileOperands()
88 etsg->ApplyConversion(right_, operationType_); in CompileOperands()
H A DdirectEvalExpression.cpp30 void DirectEvalExpression::Compile(compiler::ETSGen *etsg) const in Compile()
32 etsg->GetAstCompiler()->Compile(this); in Compile()
H A DdummyNode.cpp51 void DummyNode::Compile(compiler::ETSGen *etsg) const in Compile()
53 etsg->GetAstCompiler()->Compile(this); in Compile()
/arkcompiler/ets_frontend/ets2panda/ir/module/
H A DexportDefaultDeclaration.cpp54 void ExportDefaultDeclaration::Compile(compiler::ETSGen *etsg) const in Compile()
56 etsg->GetAstCompiler()->Compile(this); in Compile()
H A DimportNamespaceSpecifier.cpp54 void ImportNamespaceSpecifier::Compile(compiler::ETSGen *etsg) const in Compile()
56 etsg->GetAstCompiler()->Compile(this); in Compile()
H A DimportDefaultSpecifier.cpp53 void ImportDefaultSpecifier::Compile(compiler::ETSGen *etsg) const in Compile()
55 etsg->GetAstCompiler()->Compile(this); in Compile()
/arkcompiler/ets_frontend/ets2panda/ir/statements/
H A DdebuggerStatement.cpp47 void DebuggerStatement::Compile(compiler::ETSGen *etsg) const in Compile()
49 etsg->GetAstCompiler()->Compile(this); in Compile()
H A DemptyStatement.cpp47 void EmptyStatement::Compile(compiler::ETSGen *etsg) const in Compile()
49 etsg->GetAstCompiler()->Compile(this); in Compile()
/arkcompiler/ets_frontend/ets2panda/ir/ts/
H A DtsExternalModuleReference.cpp53 void TSExternalModuleReference::Compile(compiler::ETSGen *etsg) const in Compile()
55 etsg->GetAstCompiler()->Compile(this); in Compile()
H A DtsObjectKeyword.cpp47 void TSObjectKeyword::Compile([[maybe_unused]] compiler::ETSGen *etsg) const in Compile()
49 etsg->GetAstCompiler()->Compile(this); in Compile()
H A DtsNumberKeyword.cpp47 void TSNumberKeyword::Compile(compiler::ETSGen *etsg) const in Compile()
49 etsg->GetAstCompiler()->Compile(this); in Compile()
H A DtsNullKeyword.cpp46 void TSNullKeyword::Compile(compiler::ETSGen *etsg) const in Compile()
48 etsg->GetAstCompiler()->Compile(this); in Compile()
H A DtsStringKeyword.cpp47 void TSStringKeyword::Compile(compiler::ETSGen *etsg) const in Compile()
49 etsg->GetAstCompiler()->Compile(this); in Compile()
H A DtsUndefinedKeyword.cpp47 void TSUndefinedKeyword::Compile(compiler::ETSGen *etsg) const in Compile()
49 etsg->GetAstCompiler()->Compile(this); in Compile()
H A DtsUnknownKeyword.cpp47 void TSUnknownKeyword::Compile(compiler::ETSGen *etsg) const in Compile()
49 etsg->GetAstCompiler()->Compile(this); in Compile()
H A DtsVoidKeyword.cpp47 void TSVoidKeyword::Compile(compiler::ETSGen *etsg) const in Compile()
49 etsg->GetAstCompiler()->Compile(this); in Compile()
/arkcompiler/ets_frontend/ets2panda/ir/base/
H A DtsSignatureDeclaration.cpp56 void TSSignatureDeclaration::Compile(compiler::ETSGen *etsg) const in Compile()
58 etsg->GetAstCompiler()->Compile(this); in Compile()

Completed in 8 milliseconds

12345678910>>...13