| /arkcompiler/ets_frontend/ets2panda/ir/ets/ |
| D | etsScript.h | 30 : BlockStatement(allocator, std::move(statementList)), program_(program) in ETSScript() 37 return program_; in Program() 42 return program_; in Program() 46 parser::Program *program_;
|
| /arkcompiler/ets_frontend/es2panda/parser/context/ |
| D | parserContext.h | 74 explicit ParserContext(const Program *program) : program_(program) {} in DEFINE_BITOPS() 76 : program_(current->program_), prev_(current), label_(label) in DEFINE_BITOPS() 90 return program_; in DEFINE_BITOPS() 151 const Program *program_; in DEFINE_BITOPS()
|
| /arkcompiler/ets_frontend/ets2panda/parser/context/ |
| D | parserContext.h | 78 : program_(current->program_), prev_(current), label_(label), lang_(current->lang_) in DEFINE_BITOPS() 93 return program_; in DEFINE_BITOPS() 98 program_ = program; in DEFINE_BITOPS() 156 const Program *program_; in DEFINE_BITOPS()
|
| D | parserContext.cpp | 24 : program_(program), status_(status), lang_(ToLanguage(program->Extension())) in ParserContext()
|
| /arkcompiler/runtime_core/static_core/assembler/ |
| D | assembly-parser.cpp | 60 currRecord_->fieldList.emplace_back(program_.lang); in ParseRecordFields() 138 program_.arrayTypes.insert(*type); in ParseType() 404 if (program_.arrayTypes.find(type) == program_.arrayTypes.end()) { in ParseArrayElementType() 405 program_.arrayTypes.emplace(type, 1); in ParseArrayElementType() 407 } else if (panda::pandasm::Type::IsStringType(typeWithSlash.GetName(), program_.lang)) { in ParseArrayElementType() 414 if (program_.arrayTypes.find(typeWithSlash) == program_.arrayTypes.end()) { in ParseArrayElementType() 415 program_.arrayTypes.emplace(typeWithSlash, 1); in ParseArrayElementType() 644 auto dummyRecord = program_.recordTable.find(panda_file::GetDummyClassName()); in ParseAsUnionField() 645 if (dummyRecord == program_.recordTable.end()) { in ParseAsUnionField() 648 currRecord_->fieldList.emplace_back(program_.lang); in ParseAsUnionField() [all …]
|
| D | assembly-parser.h | 88 panda::pandasm::Program program_; 232 … return item.try_emplace(cid, cid, program_.lang, context_.tokens[context_.number - 1].boundLeft, in TryEmplaceInTable()
|
| /arkcompiler/runtime_core/assembler/ |
| D | assembly-parser.cpp | 59 curr_record_->field_list.emplace_back(program_.lang); in ParseRecordFields() 137 program_.array_types.insert(*type); in ParseType() 394 if (program_.array_types.find(type) == program_.array_types.end()) { in ParseArrayElementType() 395 program_.array_types.emplace(type, 1); in ParseArrayElementType() 397 } else if (panda::pandasm::Type::IsStringType(type_with_slash.GetName(), program_.lang)) { in ParseArrayElementType() 399 if (program_.array_types.find(type_with_slash) == program_.array_types.end()) { in ParseArrayElementType() 400 program_.array_types.emplace(type_with_slash, 1); in ParseArrayElementType() 658 for (const auto &f : program_.function_table) { in ParseResetFunctionLabelsAndParams() 670 curr_func_ = &(program_.function_table.at(t.first)); in ParseResetFunctionLabelsAndParams() 694 for (auto &k : program_.function_table) { in ParseResetFunctionTable() [all …]
|
| D | assembly-parser.h | 88 panda::pandasm::Program program_; 229 … std::string(context_.GiveToken().data(), context_.GiveToken().length()), program_.lang, in TryEmplaceInTable()
|
| /arkcompiler/runtime_core/static_core/libpandafile/ |
| D | line_number_program.h | 122 : state_(handler->GetState()), program_(program), handler_(handler) in LineNumberProgramProcessor() 199 auto opcode = static_cast<Opcode>(*program_); in ReadOpcode() 200 ++program_; // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in ReadOpcode() 206 auto [regiser_number, n, is_full] = leb128::DecodeSigned<int32_t>(program_); in ReadRegisterNumber() 208 program_ += n; // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in ReadRegisterNumber() 284 const uint8_t *program_; variable
|
| D | file_items.cpp | 1582 n += leb128::UnsignedEncodingSize(program_->GetIndex(this)); in CalculateSize() 1615 ASSERT(program_ != nullptr); in Write() 1616 ASSERT(program_->HasIndex(this)); in Write() 1618 return writer->WriteUleb128(program_->GetIndex(this)); in Write() 1645 if (program_ != nullptr && program_->HasIndex(this)) { in Dump() 1646 os << program_->GetIndex(this); in Dump()
|
| /arkcompiler/runtime_core/libpandafile/ |
| D | line_number_program.h | 125 : state_(handler->GetState()), program_(program), handler_(handler) in LineNumberProgramProcessor() 202 auto opcode = static_cast<Opcode>(*program_); in ReadOpcode() 203 ++program_; // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in ReadOpcode() 209 auto [regiser_number, n, is_full] = leb128::DecodeSigned<int32_t>(program_); in ReadRegisterNumber() 211 program_ += n; // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in ReadRegisterNumber() 287 const uint8_t *program_; variable
|
| D | file_items.cpp | 1626 n += leb128::UnsignedEncodingSize(program_->GetIndex(this)); in CalculateSize() 1659 ASSERT(program_ != nullptr); in Write() 1660 ASSERT(program_->HasIndex(this)); in Write() 1662 return writer->WriteUleb128(program_->GetIndex(this)); in Write() 1689 if (program_ != nullptr && program_->HasIndex(this)) { in Dump() 1690 os << program_->GetIndex(this); in Dump()
|
| /arkcompiler/ets_frontend/ets2panda/varbinder/ |
| D | recordTable.h | 55 program_(program), in DEFINE_BITOPS() 138 program_ = program; in DEFINE_BITOPS() 143 return program_; in DEFINE_BITOPS() 148 return program_; in DEFINE_BITOPS() 161 parser::Program *program_ {}; in DEFINE_BITOPS()
|
| D | recordTable.cpp | 60 const auto &packageName = recordTable_->program_->GetPackageName(); in FormRecordName() 66 util::UString recordName(recordTable_->program_->Allocator()); in FormRecordName() 73 util::UString recordName(recordTable_->program_->Allocator()); in FormRecordName()
|
| D | varbinder.h | 73 program_ = program; in SetProgram() 78 return program_; in Program() 83 ASSERT(program_); in Program() 84 return program_; in Program() 248 parser::Program *program_ {};
|
| D | varbinder.cpp | 65 if (program_->Kind() == parser::ScriptKind::MODULE) { in InitTopScope() 132 lexer::LineIndex index(program_->SourceCode()); in ThrowError() 135 throw Error(ErrorType::SYNTAX, program_->SourceFilePath().Utf8(), msg, loc.line, loc.col); in ThrowError() 140 ASSERT(program_->Ast()); in IdentifierAnalysis() 150 ResolveReferences(program_->Ast()); in IdentifierAnalysis()
|
| /arkcompiler/ets_frontend/ets2panda/checker/ |
| D | checker.cpp | 48 program_ = varbinder_->Program(); in Initialize() 85 lexer::LineIndex index(program_->SourceCode()); in ThrowTypeError() 88 throw Error {ErrorType::TYPE, program_->SourceFilePath().Utf8(), message, loc.line, loc.col}; in ThrowTypeError() 93 lexer::LineIndex index(program_->SourceCode()); in Warning() 97 auto fileName = program_->SourceFilePath().Utf8(); in Warning() 206 return program_; in Program() 211 program_ = program; in SetProgram()
|
| /arkcompiler/ets_frontend/es2panda/binder/ |
| D | binder.cpp | 65 if (program_->Kind() == parser::ScriptKind::MODULE) { in InitTopScope() 88 lexer::LineIndex index(program_->SourceCode()); in ThrowRedeclaration() 98 lexer::LineIndex index(program_->SourceCode()); in ThrowUndeclaredExport() 108 lexer::LineIndex index(program_->SourceCode()); in ThrowInvalidDstrTarget() 174 ASSERT(program_->ModuleRecord()); in AssignIndexToModuleVariable() 175 program_->ModuleRecord()->AssignIndexToModuleVariable(topScope_->AsModuleScope()); in AssignIndexToModuleVariable() 180 ASSERT(program_->Ast()); in IdentifierAnalysis() 187 ResolveReferences(program_->Ast()); in IdentifierAnalysis() 190 ResolveReferences(program_->Ast()); in IdentifierAnalysis() 197 ResolveReferences(program_->Ast()); in IdentifierAnalysis() [all …]
|
| D | binder.h | 48 : program_(program), in Binder() 107 return program_->Allocator(); in Allocator() 122 return program_; in Program() 127 program_ = program; in SetProgram() 223 parser::Program *program_ {}; 286 if (scope_->AddTsDecl(Allocator(), decl, program_->Extension())) { in AddTsDecl() 301 if (scope_->AddTsDecl(Allocator(), decl, program_->Extension())) { in AddTsDecl() 315 if (scope_->AddDecl(Allocator(), decl, program_->Extension())) { in AddDecl() 330 if (scope_->AddDecl(Allocator(), decl, program_->Extension())) { in AddDecl()
|
| /arkcompiler/runtime_core/bytecode_optimizer/ |
| D | codegen.h | 43 : compiler::Optimization(graph), function_(function), ir_interface_(iface), program_(prog) in BytecodeGen() 146 return program_; in GetProgram() 152 pandasm::Program *program_; variable
|
| /arkcompiler/ets_frontend/es2panda/parser/transformer/ |
| D | transformer.h | 85 : program_(nullptr), in Transformer() 271 auto ret = program_->Allocator()->New<T>(std::forward<Args>(args)...); in AllocNode() 280 return program_->Allocator(); in Allocator() 285 return program_->Binder(); in Binder() 320 return program_->Extension(); in Extension() 325 return program_->ModuleRecord(); in GetSourceTextModuleRecord() 330 return program_->RecordName(); in RecordName() 380 Program *program_; variable
|
| /arkcompiler/ets_frontend/ets2panda/util/ |
| D | declgenEts2Ts.h | 32 : checker_(checker), program_(program) in TSDeclGen() 98 const panda::es2panda::parser::Program *program_ {};
|
| /arkcompiler/ets_frontend/es2panda/parser/ |
| D | commonjs.cpp | 90 … AllocNode<ir::ScriptFunction>(functionScope, std::move(params), nullptr, program_.Ast(), nullptr, in ParseCommonjs() 117 program_.SetAst(blockStmt); in ParseCommonjs()
|
| /arkcompiler/ets_frontend/ets2panda/compiler/lowering/scopesInit/ |
| D | scopesInitPhase.h | 126 return program_->Allocator(); in Allocator() 131 return program_; in Program() 141 return program_->VarBinder(); in VarBinder() 188 parser::Program *program_ {};
|
| /arkcompiler/ets_frontend/ets2panda/parser/ |
| D | parserImpl.cpp | 59 : program_(program), context_(program_, status), options_(options) in ParserImpl() 65 program_->SetSource(sourceFile); in InitLexer() 89 program_->SetKind(kind); in ParseProgram() 90 program_->VarBinder()->InitTopScope(); in ParseProgram() 97 program_->SetAst(blockStmt); in ParseProgram() 1144 lexer::LineIndex index(program_->SourceCode()); in ThrowSyntaxError() 1147 …throw Error {ErrorType::SYNTAX, program_->SourceFilePath().Utf8(), errorMessage, loc.line, loc.col… in ThrowSyntaxError() 1152 throw Error(ErrorType::GENERIC, program_->SourceFilePath().Utf8(), message); in ThrowAllocationError() 1157 return program_->Extension(); in Extension()
|