Lines Matching refs:option

457 static void ParseDouble(const std::string& option, char after_char, double min, double max,  in ParseDouble()  argument
460 ParseStringAfterChar(option, after_char, &substring); in ParseDouble()
475 Usage("Invalid double value %s for option %s\n", substring.c_str(), option.c_str()); in ParseDouble()
588 const StringPiece option(argv[i]); in ParseArgs() local
593 if (option.starts_with("--dex-file=")) { in ParseArgs()
594 dex_filenames_.push_back(option.substr(strlen("--dex-file=")).data()); in ParseArgs()
595 } else if (option.starts_with("--dex-location=")) { in ParseArgs()
596 dex_locations_.push_back(option.substr(strlen("--dex-location=")).data()); in ParseArgs()
597 } else if (option.starts_with("--zip-fd=")) { in ParseArgs()
598 const char* zip_fd_str = option.substr(strlen("--zip-fd=")).data(); in ParseArgs()
605 } else if (option.starts_with("--zip-location=")) { in ParseArgs()
606 zip_location_ = option.substr(strlen("--zip-location=")).data(); in ParseArgs()
607 } else if (option.starts_with("--oat-file=")) { in ParseArgs()
608 oat_filename_ = option.substr(strlen("--oat-file=")).data(); in ParseArgs()
609 } else if (option.starts_with("--oat-symbols=")) { in ParseArgs()
610 oat_symbols = option.substr(strlen("--oat-symbols=")).data(); in ParseArgs()
611 } else if (option.starts_with("--oat-fd=")) { in ParseArgs()
612 const char* oat_fd_str = option.substr(strlen("--oat-fd=")).data(); in ParseArgs()
619 } else if (option == "--watch-dog") { in ParseArgs()
621 } else if (option == "--no-watch-dog") { in ParseArgs()
623 } else if (option.starts_with("-j")) { in ParseArgs()
624 const char* thread_count_str = option.substr(strlen("-j")).data(); in ParseArgs()
628 } else if (option.starts_with("--oat-location=")) { in ParseArgs()
629 oat_location_ = option.substr(strlen("--oat-location=")).data(); in ParseArgs()
630 } else if (option.starts_with("--image=")) { in ParseArgs()
631 image_filename_ = option.substr(strlen("--image=")).data(); in ParseArgs()
632 } else if (option.starts_with("--image-classes=")) { in ParseArgs()
633 image_classes_filename_ = option.substr(strlen("--image-classes=")).data(); in ParseArgs()
634 } else if (option.starts_with("--image-classes-zip=")) { in ParseArgs()
635 image_classes_zip_filename_ = option.substr(strlen("--image-classes-zip=")).data(); in ParseArgs()
636 } else if (option.starts_with("--compiled-classes=")) { in ParseArgs()
637 compiled_classes_filename_ = option.substr(strlen("--compiled-classes=")).data(); in ParseArgs()
638 } else if (option.starts_with("--compiled-classes-zip=")) { in ParseArgs()
639 compiled_classes_zip_filename_ = option.substr(strlen("--compiled-classes-zip=")).data(); in ParseArgs()
640 } else if (option.starts_with("--compiled-methods=")) { in ParseArgs()
641 compiled_methods_filename_ = option.substr(strlen("--compiled-methods=")).data(); in ParseArgs()
642 } else if (option.starts_with("--compiled-methods-zip=")) { in ParseArgs()
643 compiled_methods_zip_filename_ = option.substr(strlen("--compiled-methods-zip=")).data(); in ParseArgs()
644 } else if (option.starts_with("--base=")) { in ParseArgs()
645 const char* image_base_str = option.substr(strlen("--base=")).data(); in ParseArgs()
649 Usage("Failed to parse hexadecimal value for option %s", option.data()); in ParseArgs()
651 } else if (option.starts_with("--boot-image=")) { in ParseArgs()
652 boot_image_filename = option.substr(strlen("--boot-image=")).data(); in ParseArgs()
653 } else if (option.starts_with("--android-root=")) { in ParseArgs()
654 android_root_ = option.substr(strlen("--android-root=")).data(); in ParseArgs()
655 } else if (option.starts_with("--instruction-set=")) { in ParseArgs()
656 StringPiece instruction_set_str = option.substr(strlen("--instruction-set=")).data(); in ParseArgs()
666 } else if (option.starts_with("--instruction-set-variant=")) { in ParseArgs()
667 StringPiece str = option.substr(strlen("--instruction-set-variant=")).data(); in ParseArgs()
673 } else if (option.starts_with("--instruction-set-features=")) { in ParseArgs()
674 StringPiece str = option.substr(strlen("--instruction-set-features=")).data(); in ParseArgs()
686 Usage("Error parsing '%s': %s", option.data(), error_msg.c_str()); in ParseArgs()
688 } else if (option.starts_with("--compiler-backend=")) { in ParseArgs()
690 StringPiece backend_str = option.substr(strlen("--compiler-backend=")).data(); in ParseArgs()
698 } else if (option.starts_with("--compiler-filter=")) { in ParseArgs()
699 compiler_filter_string = option.substr(strlen("--compiler-filter=")).data(); in ParseArgs()
700 } else if (option == "--compile-pic") { in ParseArgs()
702 } else if (option.starts_with("--huge-method-max=")) { in ParseArgs()
703 const char* threshold = option.substr(strlen("--huge-method-max=")).data(); in ParseArgs()
710 } else if (option.starts_with("--large-method-max=")) { in ParseArgs()
711 const char* threshold = option.substr(strlen("--large-method-max=")).data(); in ParseArgs()
718 } else if (option.starts_with("--small-method-max=")) { in ParseArgs()
719 const char* threshold = option.substr(strlen("--small-method-max=")).data(); in ParseArgs()
726 } else if (option.starts_with("--tiny-method-max=")) { in ParseArgs()
727 const char* threshold = option.substr(strlen("--tiny-method-max=")).data(); in ParseArgs()
734 } else if (option.starts_with("--num-dex-methods=")) { in ParseArgs()
735 const char* threshold = option.substr(strlen("--num-dex-methods=")).data(); in ParseArgs()
742 } else if (option.starts_with("--inline-depth-limit=")) { in ParseArgs()
743 const char* limit = option.substr(strlen("--inline-depth-limit=")).data(); in ParseArgs()
750 } else if (option.starts_with("--inline-max-code-units=")) { in ParseArgs()
751 const char* code_units = option.substr(strlen("--inline-max-code-units=")).data(); in ParseArgs()
758 } else if (option == "--host") { in ParseArgs()
760 } else if (option == "--runtime-arg") { in ParseArgs()
768 } else if (option == "--dump-timing") { in ParseArgs()
770 } else if (option == "--dump-passes") { in ParseArgs()
772 } else if (option.starts_with("--dump-cfg=")) { in ParseArgs()
773 dump_cfg_file_name_ = option.substr(strlen("--dump-cfg=")).data(); in ParseArgs()
774 } else if (option == "--dump-stats") { in ParseArgs()
776 } else if (option == "--generate-debug-info" || option == "-g") { in ParseArgs()
778 } else if (option == "--no-generate-debug-info") { in ParseArgs()
780 } else if (option == "--debuggable") { in ParseArgs()
783 } else if (option.starts_with("--profile-file=")) { in ParseArgs()
784 profile_file_ = option.substr(strlen("--profile-file=")).data(); in ParseArgs()
786 } else if (option == "--no-profile-file") { in ParseArgs()
788 } else if (option.starts_with("--top-k-profile-threshold=")) { in ParseArgs()
789 ParseDouble(option.data(), '=', 0.0, 100.0, &top_k_profile_threshold); in ParseArgs()
790 } else if (option == "--print-pass-names") { in ParseArgs()
792 } else if (option.starts_with("--disable-passes=")) { in ParseArgs()
793 const std::string disable_passes = option.substr(strlen("--disable-passes=")).data(); in ParseArgs()
795 } else if (option.starts_with("--print-passes=")) { in ParseArgs()
796 const std::string print_passes = option.substr(strlen("--print-passes=")).data(); in ParseArgs()
798 } else if (option == "--print-all-passes") { in ParseArgs()
800 } else if (option.starts_with("--dump-cfg-passes=")) { in ParseArgs()
801 const std::string dump_passes_string = option.substr(strlen("--dump-cfg-passes=")).data(); in ParseArgs()
803 } else if (option == "--print-pass-options") { in ParseArgs()
805 } else if (option.starts_with("--pass-options=")) { in ParseArgs()
806 const std::string options = option.substr(strlen("--pass-options=")).data(); in ParseArgs()
808 } else if (option == "--include-patch-information") { in ParseArgs()
810 } else if (option == "--no-include-patch-information") { in ParseArgs()
812 } else if (option.starts_with("--verbose-methods=")) { in ParseArgs()
816 Split(option.substr(strlen("--verbose-methods=")).ToString(), ',', &verbose_methods_); in ParseArgs()
817 } else if (option.starts_with("--dump-init-failures=")) { in ParseArgs()
818 std::string file_name = option.substr(strlen("--dump-init-failures=")).data(); in ParseArgs()
827 } else if (option.starts_with("--swap-file=")) { in ParseArgs()
828 swap_file_name_ = option.substr(strlen("--swap-file=")).data(); in ParseArgs()
829 } else if (option.starts_with("--swap-fd=")) { in ParseArgs()
830 const char* swap_fd_str = option.substr(strlen("--swap-fd=")).data(); in ParseArgs()
837 } else if (option == "--abort-on-hard-verifier-error") { in ParseArgs()
840 Usage("Unknown argument %s", option.data()); in ParseArgs()