• Home
  • Raw
  • Download

Lines Matching full:options

63 … Compiler::CheckOptionsAndFileForAbcInput(const std::string &fname, const CompilerOptions &options)  in CheckOptionsAndFileForAbcInput()  argument
65 if (!options.enableAbcInput) { in CheckOptionsAndFileForAbcInput()
69 if (options.targetApiVersion < util::Helpers::ABC_TO_PROGRAM_MIN_SUPPORTED_API_VERSION) { in CheckOptionsAndFileForAbcInput()
70 …throw Error(ErrorType::GENERIC, "Target api version '" + std::to_string(options.targetApiVersion) + in CheckOptionsAndFileForAbcInput()
74 if (!options.mergeAbc && options.sourceFiles.size() != 1) { in CheckOptionsAndFileForAbcInput()
82options.targetApiVersion, options.targetApiSubVersion)) { in CheckOptionsAndFileForAbcInput()
88 …andasm::Program *Compiler::CompileAbcFile(const std::string &fname, const CompilerOptions &options) in CompileAbcFile() argument
91 CheckOptionsAndFileForAbcInput(fname, options); in CompileAbcFile()
100 void Compiler::CompileAbcFileInParallel(SourceFile *src, const CompilerOptions &options, in CompileAbcFileInParallel() argument
105 CheckOptionsAndFileForAbcInput(src->fileName, options); in CompileAbcFileInParallel()
112 auto *compileAbcClassQueue = new compiler::CompileAbcClassQueue(options.abcClassThreadCount, in CompileAbcFileInParallel()
113 options, in CompileAbcFileInParallel()
130 panda::pandasm::Program *Compiler::Compile(const SourceFile &input, const CompilerOptions &options, in Compile() argument
141 auto *patchFixHelper = InitPatchFixHelper(input, options, symbolTable); in Compile()
148 auto ast = parser_->Parse(input, options); in Compile()
151 if (options.dumpAst) { in Compile()
155 if (ast.Extension() == ScriptExtension::TS && options.enableTypeCheck) { in Compile()
164 if (options.dumpTransformedAst) { in Compile()
167 if (options.checkTransformedAstStructure) { in Compile()
172 if (options.parseOnly) { in Compile()
176 std::string debugInfoSourceFile = options.debugInfoSourceFile.empty() ? in Compile()
177 sourcefile : options.debugInfoSourceFile; in Compile()
178 auto *prog = compiler_->Compile(&ast, options, debugInfoSourceFile, pkgName); in Compile()
190 …il::PatchFix *Compiler::InitPatchFixHelper(const SourceFile &input, const CompilerOptions &options, in InitPatchFixHelper() argument
194 bool needDumpSymbolFile = !options.patchFixOptions.dumpSymbolTable.empty(); in InitPatchFixHelper()
195 …bool needGeneratePatch = options.patchFixOptions.generatePatch && !options.patchFixOptions.symbolT… in InitPatchFixHelper()
196 bool isHotReload = options.patchFixOptions.hotReload; in InitPatchFixHelper()
197 bool isColdReload = options.patchFixOptions.coldReload; in InitPatchFixHelper()
198 bool isColdFix = options.patchFixOptions.coldFix; in InitPatchFixHelper()
231 int Compiler::CompileFiles(CompilerOptions &options, in CompileFiles() argument
235 …if (!options.patchFixOptions.symbolTable.empty() || !options.patchFixOptions.dumpSymbolTable.empty… in CompileFiles()
236 symbolTable = new util::SymbolTable(options.patchFixOptions.symbolTable, in CompileFiles()
237 options.patchFixOptions.dumpSymbolTable); in CompileFiles()
238 if (!symbolTable->Initialize(options.targetApiVersion, options.targetApiSubVersion)) { in CompileFiles()
246 auto queue = new compiler::CompileFileQueue(options.fileThreadCount, &options, progsInfo, in CompileFiles()
264 if (!options.patchFixOptions.dumpSymbolTable.empty()) { in CompileFiles()
271 if (options.requireGlobalOptimization) { in CompileFiles()
272 …auto postAnalysisOptimizeQueue = new compiler::PostAnalysisOptimizeFileQueue(options.fileThreadCou… in CompileFiles()
288 panda::pandasm::Program *Compiler::CompileFile(const CompilerOptions &options, SourceFile *src, in CompileFile() argument
291 auto *program = Compile(*src, options, symbolTable); in CompileFile()
294 if (err.Message().empty() && options.parseOnly) { in CompileFile()