Lines Matching full:ark
22 namespace ark::es2panda::util { namespace
26 ark::Logger::ComponentMask componentMask; in InitializeLogging()
27 componentMask.set(ark::Logger::Component::ASSEMBLER); in InitializeLogging()
28 componentMask.set(ark::Logger::Component::COMPILER); in InitializeLogging()
29 componentMask.set(ark::Logger::Component::BYTECODE_OPTIMIZER); in InitializeLogging()
31 if (!ark::Logger::IsInitialized()) { in InitializeLogging()
32 … ark::Logger::InitializeStdLogging(Logger::LevelFromString(options->LogLevel()), componentMask); in InitializeLogging()
34 ark::Logger::EnableComponent(componentMask); in InitializeLogging()
39 static int OptimizeBytecode(ark::pandasm::Program *prog, const util::Options *options, const Report… in OptimizeBytecode()
41 ark::pandasm::AsmEmitter::PandaFileToPandaAsmMaps *mapsp) in OptimizeBytecode()
45 if (!ark::pandasm::AsmEmitter::Emit(options->CompilerOutput(), *prog, statp, mapsp, true)) { in OptimizeBytecode()
46 reporter("Failed to emit binary data: " + ark::pandasm::AsmEmitter::GetLastError()); in OptimizeBytecode()
50 ark::bytecodeopt::g_options.SetOptLevel(options->OptLevel()); in OptimizeBytecode()
51 // Set default value instead of maximum set in ark::bytecodeopt::SetCompilerOptions() in OptimizeBytecode()
52 ark::compiler::CompilerLogger::Init({"all"}); in OptimizeBytecode()
53 …ark::compiler::g_options.SetCompilerMaxBytecodeSize(ark::compiler::g_options.GetCompilerMaxBytecod… in OptimizeBytecode()
54 …ark::bytecodeopt::OptimizeBytecode(prog, mapsp, options->CompilerOutput(), options->IsDynamic(), t… in OptimizeBytecode()
61 static int GenerateProgramImpl(ark::pandasm::Program *prog, const util::Options *options, const Rep… in GenerateProgramImpl()
63 ark::pandasm::AsmEmitter::PandaFileToPandaAsmMaps *mapsp) in GenerateProgramImpl()
69 if (!ark::pandasm::AsmEmitter::AssignProfileInfo(prog)) { in GenerateProgramImpl()
74 if (!ark::pandasm::AsmEmitter::Emit(options->CompilerOutput(), *prog, statp, mapsp, true)) { in GenerateProgramImpl()
75 reporter("Failed to emit binary data: " + ark::pandasm::AsmEmitter::GetLastError()); in GenerateProgramImpl()
103 int GenerateProgram(ark::pandasm::Program *prog, const util::Options *options, const ReporterFun &r… in GenerateProgram()
107 ark::pandasm::AsmEmitter::PandaFileToPandaAsmMaps maps {}; in GenerateProgram()
108 …ark::pandasm::AsmEmitter::PandaFileToPandaAsmMaps *mapsp = options->OptLevel() != 0 ? &maps : null… in GenerateProgram()
122 } // namespace ark::es2panda::util