Lines Matching refs:panda

36 namespace panda::es2panda::aot {
58 static void GenerateBase64Output(panda::pandasm::Program *prog,
59 const std::unique_ptr<panda::es2panda::aot::Options> &options)
61 auto pandaFile = panda::pandasm::AsmEmitter::Emit(*prog, nullptr, options->CompilerOptions().targetApiVersion,
120 static bool GenerateProgramsByWorkers(const std::map<std::string, panda::es2panda::util::ProgramCache*> &programsInfo,
121 const std::unique_ptr<panda::es2panda::aot::Options> &options, std::map<std::string, size_t> *statp)
123 auto queue = new panda::es2panda::aot::EmitFileQueue(options, statp, programsInfo);
141 static void DumpProgramInfos(const std::map<std::string, panda::es2panda::util::ProgramCache*> &programsInfo,
142 const std::unique_ptr<panda::es2panda::aot::Options> &options)
149 panda::abc2program::PandasmProgramDumper dumper(compilerOptions.dumpNormalizedAsmProgram,
159 panda::es2panda::util::Dumper::DumpLiterals(progInfo.second->program.literalarray_table);
163 panda::es2panda::util::Dumper::DumpStrings(progInfo.second->program.strings);
169 static bool GenerateProgram(std::map<std::string, panda::es2panda::util::ProgramCache*> &programsInfo,
170 const std::unique_ptr<panda::es2panda::aot::Options> &options,
185 panda::proto::ProtobufSnapshotGenerator::GenerateSnapshot(*prog, options->compilerProtoOutput());
216 std::map<std::string, panda::es2panda::util::ProgramCache*> programsInfo)
258 static bool GenerateAbcFiles(std::map<std::string, panda::es2panda::util::ProgramCache*> &programsInfo,
259 const std::unique_ptr<panda::es2panda::aot::Options> &options, size_t expectedProgsCount,
276 static bool ResolveDepsRelations(const std::map<std::string, panda::es2panda::util::ProgramCache *> &programsInfo,
277 const std::unique_ptr<panda::es2panda::aot::Options> &options,
280 panda::es2panda::aot::DepsRelationResolver depsRelationResolver(programsInfo, options, resolvedDepsRelation);
284 static bool ResolveAndGenerate(std::map<std::string, panda::es2panda::util::ProgramCache*> &programsInfo,
285 const std::unique_ptr<panda::es2panda::aot::Options> &options)
287 panda::Timer::timerStart(panda::EVENT_RESOLVE_DEPS, "");
295 panda::Timer::timerEnd(panda::EVENT_RESOLVE_DEPS, "");
297 panda::Timer::timerStart(panda::EVENT_EMIT_ABC, "");
301 panda::Timer::timerEnd(panda::EVENT_EMIT_ABC, "");
315 auto bcVersionByApi = panda::panda_file::GetVersionByApi(options->CompilerOptions().targetApiVersion,
317 std::cout << panda::panda_file::GetVersion(bcVersionByApi.value());
321 panda::Timer::timerStart(panda::EVENT_TOTAL, "");
324 panda::panda_file::GetVersion(panda::panda_file::version) :
325 panda::panda_file::GetVersion(panda::panda_file::minVersion);
330 std::map<std::string, panda::es2panda::util::ProgramCache*> programsInfo;
331 panda::ArenaAllocator allocator(panda::SpaceType::SPACE_TYPE_COMPILER, nullptr, true);
334 panda::Timer::timerStart(panda::EVENT_COMPILE, "");
350 panda::Timer::timerEnd(panda::EVENT_COMPILE, "");
355 panda::Timer::timerEnd(panda::EVENT_TOTAL, "");
357 panda::Timer::PrintTimers();
361 } // namespace panda::es2panda::aot
365 panda::es2panda::aot::MemManager mm;
366 return panda::es2panda::aot::Run(argc, argv);