| /arkcompiler/ets_frontend/es2panda/parser/context/ |
| D | parserContext.h | 71 explicit ParserContext(const Program *program) : program_(program) {} in DEFINE_BITOPS() 73 : program_(current->program_), prev_(current), label_(label) in DEFINE_BITOPS() 87 return program_; in DEFINE_BITOPS() 138 const Program *program_; in DEFINE_BITOPS()
|
| /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/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()
|
| D | file_items.h | 674 explicit DebugInfoItem(LineNumberProgramItem *item) : program_(item) {} in DebugInfoItem() 693 return program_; in GetLineNumberProgram() 699 program_ = program; in SetLineNumberProgram() 725 LineNumberProgramItem *program_; variable
|
| /arkcompiler/ets_frontend/es2panda/binder/ |
| D | binder.cpp | 63 if (program_->Kind() == parser::ScriptKind::MODULE) { in InitTopScope() 86 lexer::LineIndex index(program_->SourceCode()); in ThrowRedeclaration() 96 lexer::LineIndex index(program_->SourceCode()); in ThrowUndeclaredExport() 106 lexer::LineIndex index(program_->SourceCode()); in ThrowInvalidDstrTarget() 172 ASSERT(program_->ModuleRecord()); in AssignIndexToModuleVariable() 173 program_->ModuleRecord()->AssignIndexToModuleVariable(topScope_->AsModuleScope()); in AssignIndexToModuleVariable() 178 ASSERT(program_->Ast()); in IdentifierAnalysis() 183 ResolveReferences(program_->Ast()); in IdentifierAnalysis() 186 ResolveReferences(program_->Ast()); in IdentifierAnalysis() 240 res.variable->SetLexical(res.scope, program_->PatchFixHelper()); in LookupReference() [all …]
|
| D | binder.h | 47 : program_(program), in Binder() 106 return program_->Allocator(); in Allocator() 121 return program_; in Program() 126 program_ = program; in SetProgram() 221 parser::Program *program_ {}; 284 if (scope_->AddTsDecl(Allocator(), decl, program_->Extension())) { in AddTsDecl() 299 if (scope_->AddTsDecl(Allocator(), decl, program_->Extension())) { in AddTsDecl() 313 if (scope_->AddDecl(Allocator(), decl, program_->Extension())) { in AddDecl() 328 if (scope_->AddDecl(Allocator(), decl, program_->Extension())) { in AddDecl()
|
| /arkcompiler/ets_frontend/es2panda/parser/transformer/ |
| D | transformer.h | 72 : program_(nullptr), in Transformer() 227 auto ret = program_->Allocator()->New<T>(std::forward<Args>(args)...); in AllocNode() 236 return program_->Allocator(); in Allocator() 241 return program_->Binder(); in Binder() 276 return program_->Extension(); in Extension() 281 return program_->ModuleRecord(); in GetSourceTextModuleRecord() 286 return program_->RecordName(); in RecordName() 317 Program *program_; variable
|
| D | transformer.cpp | 79 program_ = program; in Transform() 88 VisitTSNodes(program_->Ast()); in TransformFromTS() 89 PushVariablesToNearestStatements(program_->Ast()); in TransformFromTS()
|
| /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/ |
| D | commonjs.cpp | 90 … AllocNode<ir::ScriptFunction>(functionScope, std::move(params), nullptr, program_.Ast(), nullptr, in ParseCommonjs() 117 program_.SetAst(blockStmt); in ParseCommonjs()
|
| D | parserImpl.h | 190 return program_.Allocator(); 195 program_.SetDebug(isDebug); 215 auto ret = program_.Allocator()->New<T>(std::forward<Args>(args)...); 550 return program_.Binder(); 582 Program program_; local
|
| D | parserImpl.cpp | 110 ParserImpl::ParserImpl(ScriptExtension extension) : program_(extension), context_(&program_) {} in ParserImpl() 118 program_.SetSource(source, fileName, isDtsFile); in InitLexer() 128 program_.SetKind(kind); in Parse() 129 program_.SetRecordName(recordName); in Parse() 157 return std::move(program_); in Parse() 186 program_.SetAst(blockStmt); in ParseProgram() 3802 lexer::LineIndex index(program_.SourceCode()); in ThrowSyntaxError() 3810 return program_.Extension(); in Extension() 3825 program_.AddPatchFixHelper(patchFixHelper); in AddPatchFixHelper() 3830 return program_.IsDtsFile(); in IsDtsFile() [all …]
|