Home
last modified time | relevance | path

Searched refs:compiler (Results 1 – 25 of 674) sorted by relevance

12345678910>>...27

/arkcompiler/ets_runtime/tools/circuit_viewer/examples/
Dlog_loop.txt2 [compiler] AOT compile: a.abc
3 [ecmascript] When the file is empty. Enter full compiler mode.
4 [compiler] Total number of methods in file: a.abc is: 1
5 [compiler] aot method [func_main_0@a.abc] log:
6 [compiler] record: _GLOBAL has no types
7 [compiler] ======================== Build Basic Block ========================
8 [compiler] B0: ;preds=
9 [compiler] BytecodePC: [0, 3)
10 [compiler] Succes: 1,
11 [compiler] Trys:
[all …]
/arkcompiler/runtime_core/bytecode_optimizer/
Dreg_encoder.h73 compiler::Register reg;
74 compiler::DataType::Type type;
76 RegContent() : reg(compiler::INVALID_REG), type(compiler::DataType::NO_TYPE) {} in RegContent()
77 RegContent(compiler::Register r, compiler::DataType::Type t) : reg(r), type(t) {} in RegContent()
89 using RegContentMap = ArenaUnorderedMap<compiler::Register, RegContent>;
90 using RegContentVec = ArenaVector<std::pair<compiler::Register, RegContent>>;
94 using panda::compiler::BasicBlock;
95 using panda::compiler::Inst;
96 using panda::compiler::Opcode;
98 class RegEncoder : public compiler::Optimization, public compiler::GraphVisitor {
[all …]
Dreg_encoder.cpp24 if (inst->GetOpcode() != compiler::Opcode::Intrinsic) { in IsIntrinsicRange()
29 case compiler::RuntimeInterface::IntrinsicId::CALLRANGE_IMM8_IMM8_V8: in IsIntrinsicRange()
30 case compiler::RuntimeInterface::IntrinsicId::WIDE_CALLRANGE_PREF_IMM16_V8: in IsIntrinsicRange()
31 case compiler::RuntimeInterface::IntrinsicId::CALLTHISRANGE_IMM8_IMM8_V8: in IsIntrinsicRange()
32 case compiler::RuntimeInterface::IntrinsicId::WIDE_CALLTHISRANGE_PREF_IMM16_V8: in IsIntrinsicRange()
33 case compiler::RuntimeInterface::IntrinsicId::NEWOBJRANGE_IMM8_IMM8_V8: in IsIntrinsicRange()
34 case compiler::RuntimeInterface::IntrinsicId::NEWOBJRANGE_IMM16_IMM8_V8: in IsIntrinsicRange()
35 case compiler::RuntimeInterface::IntrinsicId::WIDE_NEWOBJRANGE_PREF_IMM16_V8: in IsIntrinsicRange()
36 case compiler::RuntimeInterface::IntrinsicId::SUPERCALLTHISRANGE_IMM8_IMM8_V8: in IsIntrinsicRange()
37 case compiler::RuntimeInterface::IntrinsicId::SUPERCALLARROWRANGE_IMM8_IMM8_V8: in IsIntrinsicRange()
[all …]
Dreg_acc_alloc.cpp26 bool IsAccWriteBetween(compiler::Inst *src_inst, compiler::Inst *dst_inst) in IsAccWriteBetween()
30 compiler::BasicBlock *block = src_inst->GetBasicBlock(); in IsAccWriteBetween()
31 compiler::Inst *inst = src_inst->GetNext(); in IsAccWriteBetween()
59 compiler::Inst *input = inst->GetInput(AccReadIndex(inst)).GetInst(); in IsAccWriteBetween()
61 if (input->GetDstReg() != compiler::ACC_REG_ID) { in IsAccWriteBetween()
76 inline bool RegAccAlloc::IsPhiOptimizable(compiler::Inst *phi) const in IsPhiOptimizable()
78 ASSERT(phi->GetOpcode() == compiler::Opcode::Phi); in IsPhiOptimizable()
85 bool RegAccAlloc::IsAccRead(compiler::Inst *inst) const in IsAccRead()
93 bool RegAccAlloc::IsAccWrite(compiler::Inst *inst) const in IsAccWrite()
104 bool RegAccAlloc::CanUserReadAcc(compiler::Inst *inst, compiler::Inst *user) const in CanUserReadAcc()
[all …]
Dreg_acc_alloc.h25 class RegAccAlloc : public compiler::Optimization {
29 …explicit RegAccAlloc(compiler::Graph *graph) : compiler::Optimization(graph), acc_marker_(graph->N… in RegAccAlloc()
35 return compiler::options.IsCompilerRegAccAlloc(); in IsEnable()
46 bool IsPhiOptimizable(compiler::Inst *phi) const;
47 bool IsAccRead(compiler::Inst *inst) const;
48 bool IsAccWrite(compiler::Inst *inst) const;
50 bool CanUserReadAcc(compiler::Inst *inst, compiler::Inst *user) const;
51 bool IsPhiAccReady(compiler::Inst *phi) const;
52 void SetNeedLda(compiler::Inst *inst, bool need);
54 compiler::Marker acc_marker_ {0};
Dcodegen.h32 using compiler::BasicBlock;
33 using compiler::Inst;
34 using compiler::Opcode;
36 void DoLda(compiler::Register reg, std::vector<pandasm::Ins> &result);
37 void DoSta(compiler::Register reg, std::vector<pandasm::Ins> &result);
39 class BytecodeGen : public compiler::Optimization, public compiler::GraphVisitor {
41 explicit BytecodeGen(compiler::Graph *graph, pandasm::Function *function, in BytecodeGen()
43 : compiler::Optimization(graph), function_(function), ir_interface_(iface), program_(prog) in BytecodeGen()
94 void EncodeSpillFillData(const compiler::SpillFillData &sf);
95 void EncodeSta(compiler::Register reg, compiler::DataType::Type type);
[all …]
Dcommon.h23 const constexpr compiler::Register MIN_REGISTER_NUMBER = 0;
24 const constexpr compiler::Register MAX_NUM_SHORT_CALL_ARGS = 2;
25 const constexpr compiler::Register MAX_NUM_NON_RANGE_ARGS = 4;
26 const constexpr compiler::Register MAX_NUM_INPUTS = MAX_NUM_NON_RANGE_ARGS;
27 const constexpr panda::compiler::Register NUM_COMPACTLY_ENCODED_REGS = 16;
31 uint8_t AccReadIndex(const compiler::Inst *inst);
Dcodegen.cpp24 void DoLda(compiler::Register reg, std::vector<pandasm::Ins> &result) in DoLda()
26 if (reg != compiler::ACC_REG_ID) { in DoLda()
31 void DoSta(compiler::Register reg, std::vector<pandasm::Ins> &result) in DoSta()
33 if (reg != compiler::ACC_REG_ID) { in DoSta()
38 void BytecodeGen::AppendCatchBlock(uint32_t type_id, const compiler::BasicBlock *try_begin, in AppendCatchBlock()
39 … const compiler::BasicBlock *try_end, const compiler::BasicBlock *catch_begin, in AppendCatchBlock()
40 const compiler::BasicBlock *catch_end) in AppendCatchBlock()
54 void BytecodeGen::VisitTryBegin(const compiler::BasicBlock *bb) in VisitTryBegin()
210 ASSERT(bb->GetSuccsBlocks().size() == compiler::MAX_SUCCS_NUM); in EmitJump()
236 void BytecodeGen::EncodeSpillFillData(const compiler::SpillFillData &sf) in EncodeSpillFillData()
[all …]
/arkcompiler/runtime_core/compiler/optimizer/ir/
Dir-dyn-base-types.h24 namespace panda::compiler {
25 inline AnyBaseType NumericDataTypeToAnyType(panda::compiler::DataType::Type type, in NumericDataTypeToAnyType()
26 … [[maybe_unused]] panda::compiler::SourceLanguage language) in NumericDataTypeToAnyType()
29 case panda::compiler::DataType::Type::INT32: in NumericDataTypeToAnyType()
30 return panda::compiler::AnyBaseType::ECMASCRIPT_INT_TYPE; in NumericDataTypeToAnyType()
31 case panda::compiler::DataType::Type::UINT32: in NumericDataTypeToAnyType()
32 case panda::compiler::DataType::Type::INT64: in NumericDataTypeToAnyType()
33 case panda::compiler::DataType::Type::UINT64: in NumericDataTypeToAnyType()
34 return panda::compiler::AnyBaseType::UNDEFINED_TYPE; in NumericDataTypeToAnyType()
35 case panda::compiler::DataType::Type::FLOAT64: in NumericDataTypeToAnyType()
[all …]
/arkcompiler/toolchain/build/third_party_gn/protobuf/
DBUILD.gn152 "$protobuf_src_root/google/protobuf/compiler/importer.cc",
153 "$protobuf_src_root/google/protobuf/compiler/parser.cc",
233 "$protobuf_src_root/google/protobuf/compiler/importer.cc",
234 "$protobuf_src_root/google/protobuf/compiler/parser.cc",
308 "$protobuf_src_root/google/protobuf/compiler/code_generator.cc",
309 "$protobuf_src_root/google/protobuf/compiler/command_line_interface.cc",
310 "$protobuf_src_root/google/protobuf/compiler/cpp/cpp_enum.cc",
311 "$protobuf_src_root/google/protobuf/compiler/cpp/cpp_enum_field.cc",
312 "$protobuf_src_root/google/protobuf/compiler/cpp/cpp_extension.cc",
313 "$protobuf_src_root/google/protobuf/compiler/cpp/cpp_field.cc",
[all …]
/arkcompiler/ets_frontend/ts2panda/src/statement/
DloopStatement.ts35 export function compileDoStatement(stmt: ts.DoStatement, compiler: Compiler): void {
36 compiler.pushScope(stmt);
37 let pandaGen = compiler.getPandaGen();
39 let loopScope = <LoopScope>compiler.getRecorder().getScopeOfNode(stmt);
55 compiler.compileStatement(stmt.statement);
57 compiler.compileCondition(stmt.expression, loopEndLabel);
68 compiler.popEnv();
72 compiler.popScope();
75 export function compileWhileStatement(stmt: ts.WhileStatement, compiler: Compiler): void {
76 compiler.pushScope(stmt);
[all …]
DreturnStatement.ts25 export function compileReturnStatement(stmt: ts.ReturnStatement, compiler: Compiler): void {
26 let pandaGen = compiler.getPandaGen();
30 compileReturnInDerivedCtor(stmt, returnValue, compiler);
32 compileNormalReturn(stmt, returnValue, compiler);
37 function compileReturnInDerivedCtor(stmt: ts.ReturnStatement, returnValue: VReg, compiler: Compiler…
38 let pandaGen = compiler.getPandaGen();
47 compileNormalReturn(stmt, returnValue, compiler);
55 compiler.compileExpression(expr);
68 compiler.getThis(stmt, thisReg);
75 compiler.compileExpression(expr);
[all …]
DclassStatement.ts59 export function compileClassDeclaration(compiler: Compiler, stmt: ts.ClassLikeDeclaration): void {
60 compiler.pushScope(stmt);
62 let pandaGen = compiler.getPandaGen();
70 let baseVreg = compileHeritageClause(compiler, stmt);
83 compiler.compileExpression(<ts.Expression>prop.getValue());
99compiler.getCompilerDriver().getFuncInternalName(<ts.MethodDeclaration>prop.getValue(),
100 compiler.getRecorder()));
107 compiler.compileExpression(<ts.Expression | ts.Identifier>prop.getValue());
124 createClassLiteralBuf(compiler, classBuffer, stmt, [baseVreg, classReg]);
126 compileUnCompiledProperty(compiler, properties, classReg);
[all …]
DswitchStatement.ts30 private compiler: Compiler; property in SwitchBase
34 …constructor(stmt: ts.SwitchStatement, compiler: Compiler, caseNums: number, switchEndLabel: Label)…
36 this.compiler = compiler;
37 this.pandaGen = compiler.getPandaGen();
55 this.compiler.compileExpression(this.stmt.expression);
61 this.compiler.compileStatement(statement);
70 this.compiler.compileExpression(caseTarget.expression);
94 export function compileSwitchStatement(stmt: ts.SwitchStatement, compiler: Compiler) {
95 let pandaGen = compiler.getPandaGen();
98 let switchBuilder = new SwitchBase(stmt, compiler, caseNums, switchEndLabel);
[all …]
/arkcompiler/ets_frontend/ts2panda/src/expression/
DyieldExpression.ts23 export function compileYieldExpression(compiler: Compiler, expr: ts.YieldExpression): void {
24 …if (!(compiler.getFuncBuilder() instanceof GeneratorFunctionBuilder || compiler.getFuncBuilder() i…
28 expr.asteriskToken ? genYieldStarExpr(compiler, expr) : genYieldExpr(compiler, expr);
31 function genYieldExpr(compiler: Compiler, expr: ts.YieldExpression): void {
32 let pandaGen = compiler.getPandaGen();
33 …let funcBuilder = <GeneratorFunctionBuilder | AsyncGeneratorFunctionBuilder> compiler.getFuncBuild…
35 compiler.compileExpression(expr.expression);
43 function genYieldStarExpr(compiler: Compiler, expr: ts.YieldExpression): void {
44 let funcBuilder = <GeneratorFunctionBuilder>compiler.getFuncBuilder();
48 compiler.compileExpression(expr.expression!);
DcallExpression.ts27 export function compileCallExpression(expr: ts.CallExpression, compiler: Compiler, inTailPos?: bool…
28 let pandaGen = compiler.getPandaGen();
33 compiler.compileExpression(expr.arguments[0]);
39 …let processed = compiler.compileFunctionReturnThis(<ts.NewExpression | ts.CallExpression>innerExpr…
47 let hasSpread = emitCallArguments(compiler, expr, args);
48 compileSuperCall(compiler, expr, args, hasSpread);
53 let { arguments: args, passThis: passThis } = getHiddenParameters(innerExpression, compiler);
56 emitCall(expr, args, passThis, compiler);
60 export function getHiddenParameters(expr: ts.Expression, compiler: Compiler) {
61 let pandaGen = compiler.getPandaGen();
[all …]
DobjectLiteralExpression.ts28 export function compileObjectLiteralExpression(compiler: Compiler, expr: ts.ObjectLiteralExpression…
29 let pandaGen = compiler.getPandaGen();
47 hasMethod = compileProperties(compiler, properties, literalBuffer);
49 createObject(expr, pandaGen, objReg, literalBuffer, hasMethod, compiler);
52 setUncompiledProperties(compiler, pandaGen, properties, objReg);
58 function compileProperties(compiler: Compiler, properties: Property[], literalBuffer: LiteralBuffer…
80 let compilerDriver = compiler.getCompilerDriver();
86 …teral(LiteralTag.GENERATOR, compilerDriver.getFuncInternalName(valueNode, compiler.getRecorder()));
88 … Literal(LiteralTag.METHOD, compilerDriver.getFuncInternalName(valueNode, compiler.getRecorder()));
111 literalBuffer: LiteralBuffer, hasMethod: boolean, compiler: Compiler): void {
[all …]
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/privacyFunctionCannotNameReturnTypeDeclFile/
DprivacyFunctionReturnTypeDeclFile_consumer.ts24 AssertType(exporter.createExportedWidget1(), "import("tests/cases/compiler/privacyFunctionReturnTyp…
25 AssertType(exporter.createExportedWidget1, "() => import("tests/cases/compiler/privacyFunctionRetur…
29 AssertType(exporter.createExportedWidget1(), "import("tests/cases/compiler/privacyFunctionReturnTyp…
30 AssertType(exporter.createExportedWidget1, "() => import("tests/cases/compiler/privacyFunctionRetur…
34 AssertType(exporter.createExportedWidget1(), "import("tests/cases/compiler/privacyFunctionReturnTyp…
35 AssertType(exporter.createExportedWidget1, "() => import("tests/cases/compiler/privacyFunctionRetur…
39 AssertType(exporter.createExportedWidget1(), "import("tests/cases/compiler/privacyFunctionReturnTyp…
40 AssertType(exporter.createExportedWidget1, "() => import("tests/cases/compiler/privacyFunctionRetur…
67 AssertType(exporter.createExportedWidget1(), "import("tests/cases/compiler/privacyFunctionReturnTyp…
68 AssertType(exporter.createExportedWidget1, "() => import("tests/cases/compiler/privacyFunctionRetur…
[all …]
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/privacyCannotNameAccessorDeclFile/
DprivacyCannotNameAccessorDeclFile_consumer.ts24 AssertType(exporter.createExportedWidget1(), "import("tests/cases/compiler/privacyCannotNameAccesso…
25 AssertType(exporter.createExportedWidget1, "() => import("tests/cases/compiler/privacyCannotNameAcc…
29 AssertType(exporter.createExportedWidget1(), "import("tests/cases/compiler/privacyCannotNameAccesso…
30 AssertType(exporter.createExportedWidget1, "() => import("tests/cases/compiler/privacyCannotNameAcc…
34 AssertType(exporter.createExportedWidget1(), "import("tests/cases/compiler/privacyCannotNameAccesso…
35 AssertType(exporter.createExportedWidget1, "() => import("tests/cases/compiler/privacyCannotNameAcc…
39 AssertType(exporter.createExportedWidget1(), "import("tests/cases/compiler/privacyCannotNameAccesso…
40 AssertType(exporter.createExportedWidget1, "() => import("tests/cases/compiler/privacyCannotNameAcc…
67 AssertType(exporter.createExportedWidget1(), "import("tests/cases/compiler/privacyCannotNameAccesso…
68 AssertType(exporter.createExportedWidget1, "() => import("tests/cases/compiler/privacyCannotNameAcc…
[all …]
/arkcompiler/runtime_core/compiler/optimizer/templates/
Dir-dyn-base-types.h.erb19 #include "compiler/optimizer/ir/datatype.h"
36 namespace panda::compiler {
37 inline AnyBaseType NumericDataTypeToAnyType([[maybe_unused]] panda::compiler::DataType::Type type,
38 panda::compiler::SourceLanguage language) {
39 …ASSERT(type == panda::compiler::DataType::Type::UINT8 || type == panda::compiler::DataType::Type::…
40 …type == panda::compiler::DataType::Type::UINT16 || type == panda::compiler::DataType::Type::INT16 …
41 …type == panda::compiler::DataType::Type::UINT32 || type == panda::compiler::DataType::Type::INT32 …
42 …type == panda::compiler::DataType::Type::UINT64 || type == panda::compiler::DataType::Type::INT64 …
43 …type == panda::compiler::DataType::Type::FLOAT32 || type == panda::compiler::DataType::Type::FLOAT…
45 case panda::compiler::DataType::Type::INT8:
[all …]
/arkcompiler/ets_frontend/ts2panda/src/base/
Dlreference.ts32 private compiler: Compiler; property in LReference
43 compiler: Compiler,
48 this.compiler = compiler;
57 this.obj = compiler.getPandaGen().getTemp();
58 this.prop = compiler.getPandaGen().getTemp();
63 let pandaGen = this.compiler.getPandaGen();
75 this.compiler.loadTarget(this.node, this.variable!);
85 let pandaGen = this.compiler.getPandaGen();
96 this.compiler.getThis(this.node, thisReg);
106 this.compiler.storeTarget(this.node, this.variable!, this.isDeclaration);
[all …]
/arkcompiler/ets_frontend/es2panda/ir/expressions/
DcallExpression.cpp57 compiler::VReg CallExpression::CreateSpreadArguments(compiler::PandaGen *pg) const in CreateSpreadArguments()
59 compiler::VReg argsObj = pg->AllocReg(); in CreateSpreadArguments()
65 void CallExpression::Compile(compiler::PandaGen *pg) const in Compile()
84 compiler::RegScope rs(pg); in Compile()
89 compiler::RegScope paramScope(pg); in Compile()
90 compiler::VReg argsObj = CreateSpreadArguments(pg); in Compile()
95 compiler::RegScope paramScope(pg); in Compile()
96 compiler::VReg argStart {}; in Compile()
100 pg->LoadConst(this, compiler::Constant::JS_UNDEFINED); in Compile()
107 compiler::VReg arg = pg->AllocReg(); in Compile()
[all …]
/arkcompiler/runtime_core/bytecode_optimizer/templates/
Dcheck_width.cpp.erb22 case compiler::CC_EQ:
23 case compiler::CC_NE:
24 case compiler::CC_LT:
25 case compiler::CC_LE:
26 case compiler::CC_GT:
27 case compiler::CC_GE: {
32 …LOG(DEBUG, BYTECODE_OPTIMIZER) << "CheckWidth for " << compiler::GetOpcodeString(inst->GetOpcode()…
40 case compiler::CC_EQ:
41 case compiler::CC_NE:
42 case compiler::CC_LT:
[all …]
/arkcompiler/ets_frontend/es2panda/ir/base/
DclassDefinition.cpp108 compiler::VReg ClassDefinition::CompileHeritageClause(compiler::PandaGen *pg) const in CompileHeritageClause()
110 compiler::VReg baseReg = pg->AllocReg(); in CompileHeritageClause()
115 pg->LoadConst(this, compiler::Constant::JS_HOLE); in CompileHeritageClause()
122 void ClassDefinition::InitializeClassName(compiler::PandaGen *pg) const in InitializeClassName()
128 compiler::LReference lref = compiler::LReference::CreateLRef(pg, ident_, true); in InitializeClassName()
133 int32_t ClassDefinition::CreateClassStaticProperties(compiler::PandaGen *pg, util::BitSet &compiled… in CreateClassStaticProperties()
136 compiler::LiteralBuffer staticBuf(pg->Allocator()); in CreateClassStaticProperties()
170 compiler::LiteralBuffer *literalBuf = prop->IsStatic() ? &staticBuf : buf; in CreateClassStaticProperties()
229 void ClassDefinition::CompileMissingProperties(compiler::PandaGen *pg, const util::BitSet &compiled, in CompileMissingProperties()
230 compiler::VReg classReg) const in CompileMissingProperties()
[all …]
/arkcompiler/ets_frontend/es2panda/ir/statements/
DtryStatement.cpp48 void TryStatement::CompileFinally(compiler::PandaGen *pg, compiler::TryContext *tryCtx, in CompileFinally()
49 const compiler::TryLabelSet &labelSet) const in CompileFinally()
51 compiler::RegScope rs(pg); in CompileFinally()
52 compiler::VReg exception = pg->AllocReg(); in CompileFinally()
53 pg->StoreConst(this, exception, compiler::Constant::JS_HOLE); in CompileFinally()
61 compiler::Label *label = pg->AllocLabel(); in CompileFinally()
73 void TryStatement::CompileTryCatchFinally(compiler::PandaGen *pg) const in CompileTryCatchFinally()
77 compiler::TryContext tryCtx(pg, this); in CompileTryCatchFinally()
82 compiler::TryContext innerTryCtx(pg, this, false); in CompileTryCatchFinally()
100 void TryStatement::CompileTryFinally(compiler::PandaGen *pg) const in CompileTryFinally()
[all …]

12345678910>>...27