Lines Matching full:data
227 explicit PassRunner(T1* data) : data_(data) {} in PassRunner() argument
242 bool Run(PassData* data) in Run() argument
244 …TimeScope timescope("PreCompileCheckPass", data->GetMethodName(), data->GetMethodOffset(), data->G… in Run()
245 bool enableLog = data->GetLog()->GetEnableMethodLog() && data->GetLog()->OutputType(); in Run()
246 … PreCompileChecker preCompileChecker(data, data->GetCircuit(), data->GetMethodName(), enableLog); in Run()
248 data->AbortCompilation(); in Run()
257 bool Run(PassData* data) in Run() argument
259 …TimeScope timescope("PGOTypeInferPass", data->GetMethodName(), data->GetMethodOffset(), data->GetL… in Run()
260 bool enableLog = data->GetLog()->GetEnableMethodLog() && data->GetLog()->OutputType(); in Run()
261 Chunk chunk(data->GetNativeAreaAllocator()); in Run()
262 …PGOTypeInfer pgoTypeInfer(data->GetCircuit(), data->GetBuilder(), data->GetMethodName(), &chunk, e… in Run()
270 bool Run(PassData *data) in Run() argument
272 PassOptions *passOptions = data->GetPassOptions(); in Run()
276 …TimeScope timescope("EscapeAnalysisPass", data->GetMethodName(), data->GetMethodOffset(), data->Ge… in Run()
277 bool enableLog = data->GetLog()->EnableMethodCIRLog(); in Run()
278 … JSRuntimeOptions runtimeOption = data->GetPassContext()->GetCompilationEnv()->GetJSOptions(); in Run()
279 Chunk chunk(data->GetNativeAreaAllocator()); in Run()
280 CombinedPassVisitor visitor(data->GetCircuit(), enableLog, data->GetMethodName(), &chunk); in Run()
281 …EscapeAnalysis escapeAnalysis(data->GetCircuit(), &visitor, &chunk, runtimeOption.GetTraceEscapeAn… in Run()
284 … CombinedPassVisitor Editvisitor(data->GetCircuit(), enableLog, data->GetMethodName(), &chunk); in Run()
285 EscapeAnalysisEditor escapeAnalysisEditor(data->GetCircuit(), &visitor, &chunk, in Run()
296 bool Run(PassData *data) in Run() argument
298 PassOptions *passOptions = data->GetPassOptions(); in Run()
302 TimeScope timescope("InductionVariableAnalysisPass", data->GetMethodName(), in Run()
303 data->GetMethodOffset(), data->GetLog()); in Run()
304 bool enableLog = data->GetLog()->EnableMethodCIRLog(); in Run()
305 … JSRuntimeOptions runtimeOption = data->GetPassContext()->GetCompilationEnv()->GetJSOptions(); in Run()
306 Chunk chunk(data->GetNativeAreaAllocator()); in Run()
307 …InductionVariableAnalysis inductionVariableAnalysis(data->GetCircuit(), data->GetPassContext(), en… in Run()
308 data->GetMethodName(), &chunk, in Run()
317 bool Run(PassData* data) in Run() argument
319 PassOptions *passOptions = data->GetPassOptions(); in Run()
323 TimeScope timescope("TypeBytecodeLoweringPass", data->GetMethodName(), in Run()
324 data->GetMethodOffset(), data->GetLog()); in Run()
325 bool enableLog = data->GetLog()->EnableMethodCIRLog(); in Run()
326 bool enableTypeLog = data->GetLog()->GetEnableMethodLog() && data->GetLog()->OutputType(); in Run()
327 Chunk chunk(data->GetNativeAreaAllocator()); in Run()
328 TypedBytecodeLowering lowering(data->GetCircuit(), data->GetPassContext(), &chunk, in Run()
331 data->GetMethodName(), in Run()
335 data->GetRecordName(), in Run()
336 data->GetCallMethodFlagMap(), in Run()
337 data->GetPGOProfilerDecoder(), in Run()
338 data->GetOptBCRange(), in Run()
339 data->GetMethodLiteral()); in Run()
341 CombinedPassVisitor visitor(data->GetCircuit(), enableLog, data->GetMethodName(), &chunk); in Run()
342 DeadCodeElimination deadCodeElimination(data->GetCircuit(), &visitor, &chunk); in Run()
343 … TSHCROptPass optimization(data->GetCircuit(), &visitor, &chunk, data->GetPassContext(), enableLog, in Run()
344 data->GetMethodName()); in Run()
356 bool Run(PassData* data) in Run() argument
358 PassOptions *passOptions = data->GetPassOptions(); in Run()
362 TimeScope timescope("NTypeBytecodeLoweringPass", data->GetMethodName(), in Run()
363 data->GetMethodOffset(), data->GetLog()); in Run()
364 bool enableLog = data->GetLog()->EnableMethodCIRLog(); in Run()
365 NTypeBytecodeLowering lowering(data->GetCircuit(), data->GetPassContext(), enableLog, in Run()
366 … passOptions->EnableLazyDeopt(), data->GetMethodName(), data->GetRecordName()); in Run()
368 Chunk chunk(data->GetNativeAreaAllocator()); in Run()
369 CombinedPassVisitor visitor(data->GetCircuit(), enableLog, data->GetMethodName(), &chunk); in Run()
370 DeadCodeElimination deadCodeElimination(data->GetCircuit(), &visitor, &chunk); in Run()
379 bool Run(PassData* data) in Run() argument
381 PassOptions *passOptions = data->GetPassOptions(); in Run()
385 …TimeScope timescope("StringOptimizationPass", data->GetMethodName(), data->GetMethodOffset(), data… in Run()
386 bool enableLog = data->GetLog()->EnableMethodCIRLog(); in Run()
387 Chunk chunk(data->GetNativeAreaAllocator()); in Run()
388 StringBuilderOptimizer stringBuilder(data->GetCircuit(), in Run()
390 data->GetMethodName(), in Run()
391 data->GetCompilerConfig(), in Run()
400 bool Run(PassData* data) in Run() argument
402 PassOptions *passOptions = data->GetPassOptions(); in Run()
407 …TimeScope timescope("TypeHCRLoweringPass", data->GetMethodName(), data->GetMethodOffset(), data->G… in Run()
408 bool enableLog = data->GetLog()->EnableMethodCIRLog(); in Run()
409 Chunk chunk(data->GetNativeAreaAllocator()); in Run()
410 … CombinedPassVisitor visitor(data->GetCircuit(), enableLog, data->GetMethodName(), &chunk); in Run()
411 TypedHCRLowering lowering(data->GetCircuit(), in Run()
412 data->GetPassContext()->GetCompilationEnv(), in Run()
414 data->GetCompilerConfig(), in Run()
423 …TimeScope timescope("TypedNativeInlineLoweringPass", data->GetMethodName(), data->GetMethodOffset(… in Run()
424 data->GetLog()); in Run()
425 bool enableLog = data->GetLog()->EnableMethodCIRLog(); in Run()
426 Chunk chunk(data->GetNativeAreaAllocator()); in Run()
427 … CombinedPassVisitor visitor(data->GetCircuit(), enableLog, data->GetMethodName(), &chunk); in Run()
428 TypedNativeInlineLowering lowering(data->GetCircuit(), in Run()
430 data->GetPassContext(), in Run()
431 data->GetCompilerConfig(), in Run()
444 bool Run(PassData* data) in Run() argument
446 PassOptions *passOptions = data->GetPassOptions(); in Run()
450 …TimeScope timescope("NTypeHCRLoweringPass", data->GetMethodName(), data->GetMethodOffset(), data->… in Run()
451 bool enableLog = data->GetLog()->EnableMethodCIRLog(); in Run()
452 Chunk chunk(data->GetNativeAreaAllocator()); in Run()
453 CombinedPassVisitor visitor(data->GetCircuit(), enableLog, data->GetMethodName(), &chunk); in Run()
454 … JSRuntimeOptions runtimeOption = data->GetPassContext()->GetCompilationEnv()->GetJSOptions(); in Run()
455 NTypeHCRLowering lowering(data->GetCircuit(), &visitor, data->GetPassContext(), in Run()
456 …data->GetRecordName(), data->GetMethodLiteral(), runtimeOption.IsCompilerEnablePgoSpace(), &chunk); in Run()
466 bool Run(PassData* data) in Run() argument
468 PassOptions *passOptions = data->GetPassOptions(); in Run()
472 …TimeScope timescope("LCRLoweringPass", data->GetMethodName(), data->GetMethodOffset(), data->GetLo… in Run()
473 bool enableLog = data->GetLog()->EnableMethodCIRLog(); in Run()
474 Chunk chunk(data->GetNativeAreaAllocator()); in Run()
475 CombinedPassVisitor visitor(data->GetCircuit(), enableLog, data->GetMethodName(), &chunk); in Run()
476 … MCRLowering lowering(data->GetPassContext()->GetCompilationEnv(), data->GetCircuit(), &visitor, in Run()
477 data->GetCompilerConfig(), &chunk); in Run()
487 bool Run(PassData* data) in Run() argument
489 PassOptions *passOptions = data->GetPassOptions(); in Run()
493 …TimeScope timescope("TSInlineLoweringPass", data->GetMethodName(), data->GetMethodOffset(), data->… in Run()
494 bool enableLog = data->GetLog()->EnableMethodCIRLog(); in Run()
495 …TSInlineLowering inlining(data->GetCircuit(), data->GetPassContext(), enableLog, data->GetMethodNa… in Run()
496 … data->GetNativeAreaAllocator(), passOptions, data->GetMethodOffset(), in Run()
497 data->GetCallMethodFlagMap()); in Run()
499 Chunk chunk(data->GetNativeAreaAllocator()); in Run()
502 … CombinedPassVisitor visitor(data->GetCircuit(), enableLog, data->GetMethodName(), &chunk); in Run()
503 … GetEnvSpecializationPass getEnvSpecializationPass(data->GetCircuit(), &visitor, &chunk); in Run()
509 … CombinedPassVisitor visitor(data->GetCircuit(), enableLog, data->GetMethodName(), &chunk); in Run()
510 … LexicalEnvSpecializationPass lexicalEnvSpecializationPass(data->GetCircuit(), &visitor, &chunk, in Run()
520 …NativeInlineLowering nativeInline(data->GetCircuit(), data->GetCompilerConfig(), data->GetPassCont… in Run()
521 enableLog, data->GetMethodName(), &chunk); in Run()
523 … CombinedPassVisitor visitor(data->GetCircuit(), enableLog, data->GetMethodName(), &chunk); in Run()
524 DeadCodeElimination deadCodeElimination(data->GetCircuit(), &visitor, &chunk); in Run()
525 … TSHCROptPass optimization(data->GetCircuit(), &visitor, &chunk, data->GetPassContext(), enableLog, in Run()
526 data->GetMethodName()); in Run()
539 bool Run(PassData* data) in Run() argument
541 …TimeScope timescope("SlowPathLoweringPass", data->GetMethodName(), data->GetMethodOffset(), data->… in Run()
542 bool enableLog = data->GetLog()->EnableMethodCIRLog(); in Run()
543 … SlowPathLowering lowering(data->GetCircuit(), data->GetCompilerConfig(), data->GetPassContext(), in Run()
544 … data->GetMethodLiteral(), enableLog, data->GetMethodName(), data->GetRecordName()); in Run()
552 bool Run(PassData* data) in Run() argument
554 …TimeScope timescope("FlowCyclesVerifierPass", data->GetMethodName(), data->GetMethodOffset(), data… in Run()
555 bool hasFlowCycle = Verifier::RunFlowCyclesFind(data->GetCircuit()); in Run()
566 bool Run(PassData* data) in Run() argument
568 …TimeScope timescope("VerifierPass", data->GetMethodName(), data->GetMethodOffset(), data->GetLog()… in Run()
569 bool enableLog = data->GetLog()->EnableMethodCIRLog(); in Run()
570 bool isQualified = Verifier::Run(data->GetCircuit(), data->GetMethodName(), enableLog); in Run()
581 bool Run(PassData* data) in Run() argument
583 PassOptions *passOptions = data->GetPassOptions(); in Run()
587 …TimeScope timescope("NumberSpeculativePass", data->GetMethodName(), data->GetMethodOffset(), data-… in Run()
588 Chunk chunk(data->GetNativeAreaAllocator()); in Run()
589 bool enableLog = data->GetLog()->EnableMethodCIRLog(); in Run()
591 CombinedPassVisitor visitor(data->GetCircuit(), enableLog, data->GetMethodName(), &chunk); in Run()
592 NumberSpeculativeRunner(data->GetCircuit(), data->GetCompilerConfig(), enableLog, in Run()
593 … enableArrayBoundsCheckElimination, data->GetMethodName(), &chunk).Run(); in Run()
600 bool Run(PassData* data) in Run() argument
602 PassOptions *passOptions = data->GetPassOptions(); in Run()
606 …TimeScope timescope("ConstantFoldingPass", data->GetMethodName(), data->GetMethodOffset(), data->G… in Run()
607 Chunk chunk(data->GetNativeAreaAllocator()); in Run()
608 bool enableLog = data->GetLog()->EnableMethodCIRLog(); in Run()
609 CombinedPassVisitor visitor(data->GetCircuit(), enableLog, data->GetMethodName(), &chunk); in Run()
610 …ConstantFolding constantFolding(data->GetCircuit(), &visitor, data->GetCompilerConfig(), enableLog, in Run()
611 data->GetMethodName(), &chunk); in Run()
621 bool Run(PassData* data) in Run() argument
623 …TimeScope timescope("LoopOptimizationPass", data->GetMethodName(), data->GetMethodOffset(), data->… in Run()
624 Chunk chunk(data->GetNativeAreaAllocator()); in Run()
625 LoopAnalysis loopAnalysis(data->GetBuilder(), data->GetCircuit(), &chunk); in Run()
627 bool enableLog = data->GetLog()->EnableMethodCIRLog(); in Run()
633 if (data->GetPassOptions()->EnableOptLoopPeeling()) { in Run()
634 LoopPeeling(data->GetBuilder(), data->GetCircuit(), enableLog, in Run()
635 data->GetMethodName(), &chunk, loopInfo).Peel(); in Run()
645 bool Run(PassData* data) in Run() argument
647 TimeScope timescope("RedundantPhiEliminationPass", data->GetMethodName(), in Run()
648 data->GetMethodOffset(), data->GetLog()); in Run()
649 bool enableLog = data->GetLog()->EnableMethodCIRLog(); in Run()
650 GraphEditor::EliminateRedundantPhi(data->GetCircuit(), enableLog, data->GetMethodName()); in Run()
657 bool Run(PassData* data) in Run() argument
659 PassOptions *passOptions = data->GetPassOptions(); in Run()
663 TimeScope timescope("EarlyEliminationPass", data->GetMethodName(), in Run()
664 data->GetMethodOffset(), data->GetLog()); in Run()
665 … bool enableLog = data->GetLog()->EnableMethodCIRLog() || data->GetLog()->EnableMethodASMLog(); in Run()
666 Chunk chunk(data->GetNativeAreaAllocator()); in Run()
667 CombinedPassVisitor visitor(data->GetCircuit(), enableLog, data->GetMethodName(), &chunk); in Run()
668 … JSRuntimeOptions runtimeOption = data->GetPassContext()->GetCompilationEnv()->GetJSOptions(); in Run()
669 EarlyElimination earlyElimination(data->GetCircuit(), &visitor, &chunk, in Run()
680 bool Run(PassData* data) in Run() argument
682 PassOptions *passOptions = data->GetPassOptions(); in Run()
686 TimeScope timescope("LaterEliminationPass", data->GetMethodName(), in Run()
687 data->GetMethodOffset(), data->GetLog()); in Run()
688 … bool enableLog = data->GetLog()->EnableMethodCIRLog() || data->GetLog()->EnableMethodASMLog(); in Run()
689 Chunk chunk(data->GetNativeAreaAllocator()); in Run()
690 CombinedPassVisitor visitor(data->GetCircuit(), enableLog, data->GetMethodName(), &chunk); in Run()
691 LaterElimination laterElimination(data->GetCircuit(), &visitor, &chunk); in Run()
701 bool Run(PassData* data) in Run() argument
703 TimeScope timescope("UselessGateEliminationPass", data->GetMethodName(), in Run()
704 data->GetMethodOffset(), data->GetLog()); in Run()
705 bool enableLog = data->GetLog()->EnableMethodCIRLog(); in Run()
706 …UselessGateElimination uselessGateElimination(data->GetCircuit(), enableLog, data->GetMethodName()… in Run()
714 bool Run(PassData* data) in Run() argument
716 PassOptions *passOptions = data->GetPassOptions(); in Run()
720 … JSRuntimeOptions runtimeOption = data->GetPassContext()->GetCompilationEnv()->GetJSOptions(); in Run()
721 …TimeScope timescope("ValueNumberingPass", data->GetMethodName(), data->GetMethodOffset(), data->Ge… in Run()
722 Chunk chunk(data->GetNativeAreaAllocator()); in Run()
723 bool enableLog = data->GetLog()->EnableMethodCIRLog(); in Run()
724 CombinedPassVisitor visitor(data->GetCircuit(), enableLog, data->GetMethodName(), &chunk); in Run()
725 ValueNumbering valueNumbering(data->GetCircuit(), &visitor, &chunk, in Run()
737 bool Run(PassData *data) in Run() argument
739 … JSRuntimeOptions runtimeOption = data->GetPassContext()->GetCompilationEnv()->GetJSOptions(); in Run()
741 … TimeScope timescope("InstructionCombinePass", data->GetMethodName(), data->GetMethodOffset(), in Run()
742 data->GetLog()); in Run()
743 Chunk chunk(data->GetNativeAreaAllocator()); in Run()
744 bool enableLog = data->GetLog()->EnableMethodCIRLog(); in Run()
745 … CombinedPassVisitor visitor(data->GetCircuit(), enableLog, data->GetMethodName(), &chunk); in Run()
746 InstructionCombine instructionCombine(data->GetCircuit(), &visitor, &chunk, in Run()
758 bool Run(PassData* data, bool isStwCopyStub) in Run() argument
760 …TimeScope timescope("SchedulingPass", data->GetMethodName(), data->GetMethodOffset(), data->GetLog… in Run()
761 bool enableLog = data->GetLog()->EnableMethodCIRLog(); in Run()
762 Scheduler::Run(data->GetCircuit(), data->GetCfg(), data->GetMethodName(), enableLog); in Run()
763 Chunk chunk(data->GetNativeAreaAllocator()); in Run()
765 if (data->GetPassContext() != nullptr) { in Run()
766 env = data->GetPassContext()->GetCompilationEnv(); in Run()
770 …PostSchedule(data->GetCircuit(), enableLog, data->GetMethodName(), &chunk, env, true, isStwCopyStu… in Run()
771 .Run(data->GetCfg()); in Run()
773 …PostSchedule(data->GetCircuit(), enableLog, data->GetMethodName(), &chunk, env, false, isStwCopySt… in Run()
774 .Run(data->GetCfg()); in Run()
777 …PostSchedule(data->GetCircuit(), enableLog, data->GetMethodName(), &chunk, env, false, isStwCopySt… in Run()
778 .Run(data->GetCfg()); in Run()
786 bool Run(PassData* data) in Run() argument
788 PassOptions *passOptions = data->GetPassOptions(); in Run()
792 TimeScope timescope("StateSplitLinearizerPass", data->GetMethodName(), in Run()
793 data->GetMethodOffset(), data->GetLog()); in Run()
794 Chunk chunk(data->GetNativeAreaAllocator()); in Run()
795 bool enableLog = data->GetLog()->EnableMethodCIRLog(); in Run()
796 … StateSplitLinearizer(data->GetPassContext()->GetCompilationEnv(), data->GetCircuit(), nullptr, in Run()
797 data->GetCompilerConfig(), enableLog, data->GetMethodName(), &chunk) in Run()
805 bool Run(PassData* data, bool isStwCopyStub) in Run() argument
807 …TimeScope timescope("GraphLinearizerPass", data->GetMethodName(), data->GetMethodOffset(), data->G… in Run()
808 Chunk chunk(data->GetNativeAreaAllocator()); in Run()
809 bool enableLog = data->GetLog()->EnableMethodCIRLog(); in Run()
810 bool licm = data->GetPassOptions()->EnableOptLoopInvariantCodeMotion(); in Run()
811 …bool liteCG = data->GetPassContext()->GetCompilationEnv()->GetJSOptions().IsCompilerEnableLiteCG(); in Run()
812 …bool enableStoreBarrier = data->GetPassContext()->GetCompilationEnv()->GetJSOptions().IsStoreBarri… in Run()
813 … GraphLinearizer(data->GetCircuit(), enableLog, data->GetMethodName(), &chunk, false, licm, liteCG) in Run()
814 .Run(data->GetCfg()); in Run()
815 PostSchedule(data->GetCircuit(), enableLog, data->GetMethodName(), &chunk, in Run()
816 data->GetPassContext()->GetCompilationEnv(), enableStoreBarrier, isStwCopyStub) in Run()
817 .Run(data->GetCfg()); in Run()
836 bool Run(PassData *data) in Run() argument
838 auto module = data->GetAotModule(); in Run()
839 …TimeScope timescope("CGIRGenPass", data->GetMethodName(), data->GetMethodOffset(), data->GetLog()); in Run()
840 … bool enableLog = data->GetLog()->EnableMethodCIRLog() || data->GetLog()->EnableMethodASMLog(); in Run()
841 PassOptions *passOptions = data->GetPassOptions(); in Run()
845 CodeGenerator codegen(cgImpl_, data->GetMethodName()); in Run()
846 codegen.Run(data->GetCircuit(), data->GetConstScheduleResult(), data->GetCompilerConfig(), in Run()
847 … data->GetMethodLiteral(), data->GetJSPandaFile(), data->GetCircuit()->GetFrameType(), in Run()
857 bool Run(PassData* data) in Run() argument
859 TimeScope timescope("AsyncFunctionLoweringPass", data->GetMethodName(), in Run()
860 data->GetMethodOffset(), data->GetLog()); in Run()
861 … bool enableLog = data->GetLog()->EnableMethodCIRLog() || data->GetLog()->EnableMethodASMLog(); in Run()
862 … AsyncFunctionLowering lowering(data->GetBuilder(), data->GetCircuit(), data->GetCompilerConfig(), in Run()
863 enableLog, data->GetMethodName()); in Run()
871 bool IsFunctionMain(PassData* data) in IsFunctionMain() argument
873 auto methodName = data->GetMethodName(); in IsFunctionMain()