Lines Matching refs:option
771 void ParseDouble(const std::string& option, char after_char, in ParseDouble() argument
774 ParseStringAfterChar(option, after_char, &substring); in ParseDouble()
789 Usage("Invalid double value %s for option %s\n", substring.c_str(), option.c_str()); in ParseDouble()
912 const StringPiece option(argv[i]); in dex2oat() local
917 if (option.starts_with("--dex-file=")) { in dex2oat()
918 dex_filenames.push_back(option.substr(strlen("--dex-file=")).data()); in dex2oat()
919 } else if (option.starts_with("--dex-location=")) { in dex2oat()
920 dex_locations.push_back(option.substr(strlen("--dex-location=")).data()); in dex2oat()
921 } else if (option.starts_with("--zip-fd=")) { in dex2oat()
922 const char* zip_fd_str = option.substr(strlen("--zip-fd=")).data(); in dex2oat()
929 } else if (option.starts_with("--zip-location=")) { in dex2oat()
930 zip_location = option.substr(strlen("--zip-location=")).data(); in dex2oat()
931 } else if (option.starts_with("--oat-file=")) { in dex2oat()
932 oat_filename = option.substr(strlen("--oat-file=")).data(); in dex2oat()
933 } else if (option.starts_with("--oat-symbols=")) { in dex2oat()
934 oat_symbols = option.substr(strlen("--oat-symbols=")).data(); in dex2oat()
935 } else if (option.starts_with("--oat-fd=")) { in dex2oat()
936 const char* oat_fd_str = option.substr(strlen("--oat-fd=")).data(); in dex2oat()
943 } else if (option == "--watch-dog") { in dex2oat()
945 } else if (option == "--no-watch-dog") { in dex2oat()
947 } else if (option == "--gen-gdb-info") { in dex2oat()
951 } else if (option == "--no-gen-gdb-info") { in dex2oat()
953 } else if (option.starts_with("-j")) { in dex2oat()
954 const char* thread_count_str = option.substr(strlen("-j")).data(); in dex2oat()
958 } else if (option.starts_with("--oat-location=")) { in dex2oat()
959 oat_location = option.substr(strlen("--oat-location=")).data(); in dex2oat()
960 } else if (option.starts_with("--bitcode=")) { in dex2oat()
961 bitcode_filename = option.substr(strlen("--bitcode=")).data(); in dex2oat()
962 } else if (option.starts_with("--image=")) { in dex2oat()
963 image_filename = option.substr(strlen("--image=")).data(); in dex2oat()
964 } else if (option.starts_with("--image-classes=")) { in dex2oat()
965 image_classes_filename = option.substr(strlen("--image-classes=")).data(); in dex2oat()
966 } else if (option.starts_with("--image-classes-zip=")) { in dex2oat()
967 image_classes_zip_filename = option.substr(strlen("--image-classes-zip=")).data(); in dex2oat()
968 } else if (option.starts_with("--compiled-classes=")) { in dex2oat()
969 compiled_classes_filename = option.substr(strlen("--compiled-classes=")).data(); in dex2oat()
970 } else if (option.starts_with("--compiled-classes-zip=")) { in dex2oat()
971 compiled_classes_zip_filename = option.substr(strlen("--compiled-classes-zip=")).data(); in dex2oat()
972 } else if (option.starts_with("--base=")) { in dex2oat()
973 const char* image_base_str = option.substr(strlen("--base=")).data(); in dex2oat()
977 Usage("Failed to parse hexadecimal value for option %s", option.data()); in dex2oat()
979 } else if (option.starts_with("--boot-image=")) { in dex2oat()
980 boot_image_filename = option.substr(strlen("--boot-image=")).data(); in dex2oat()
981 } else if (option.starts_with("--android-root=")) { in dex2oat()
982 android_root = option.substr(strlen("--android-root=")).data(); in dex2oat()
983 } else if (option.starts_with("--instruction-set=")) { in dex2oat()
984 StringPiece instruction_set_str = option.substr(strlen("--instruction-set=")).data(); in dex2oat()
996 } else if (option.starts_with("--instruction-set-features=")) { in dex2oat()
997 StringPiece str = option.substr(strlen("--instruction-set-features=")).data(); in dex2oat()
999 } else if (option.starts_with("--compiler-backend=")) { in dex2oat()
1000 StringPiece backend_str = option.substr(strlen("--compiler-backend=")).data(); in dex2oat()
1008 } else if (option.starts_with("--compiler-filter=")) { in dex2oat()
1009 compiler_filter_string = option.substr(strlen("--compiler-filter=")).data(); in dex2oat()
1010 } else if (option == "--compile-pic") { in dex2oat()
1012 } else if (option.starts_with("--huge-method-max=")) { in dex2oat()
1013 const char* threshold = option.substr(strlen("--huge-method-max=")).data(); in dex2oat()
1020 } else if (option.starts_with("--large-method-max=")) { in dex2oat()
1021 const char* threshold = option.substr(strlen("--large-method-max=")).data(); in dex2oat()
1028 } else if (option.starts_with("--small-method-max=")) { in dex2oat()
1029 const char* threshold = option.substr(strlen("--small-method-max=")).data(); in dex2oat()
1036 } else if (option.starts_with("--tiny-method-max=")) { in dex2oat()
1037 const char* threshold = option.substr(strlen("--tiny-method-max=")).data(); in dex2oat()
1044 } else if (option.starts_with("--num-dex-methods=")) { in dex2oat()
1045 const char* threshold = option.substr(strlen("--num-dex-methods=")).data(); in dex2oat()
1052 } else if (option == "--host") { in dex2oat()
1054 } else if (option == "--runtime-arg") { in dex2oat()
1062 } else if (option == "--dump-timing") { in dex2oat()
1064 } else if (option == "--dump-passes") { in dex2oat()
1066 } else if (option == "--dump-stats") { in dex2oat()
1068 } else if (option == "--include-debug-symbols" || option == "--no-strip-symbols") { in dex2oat()
1070 } else if (option == "--no-include-debug-symbols" || option == "--strip-symbols") { in dex2oat()
1073 } else if (option.starts_with("--profile-file=")) { in dex2oat()
1074 profile_file = option.substr(strlen("--profile-file=")).data(); in dex2oat()
1076 } else if (option == "--no-profile-file") { in dex2oat()
1078 } else if (option.starts_with("--top-k-profile-threshold=")) { in dex2oat()
1079 ParseDouble(option.data(), '=', 0.0, 100.0, &top_k_profile_threshold); in dex2oat()
1080 } else if (option == "--print-pass-names") { in dex2oat()
1082 } else if (option.starts_with("--disable-passes=")) { in dex2oat()
1083 std::string disable_passes = option.substr(strlen("--disable-passes=")).data(); in dex2oat()
1085 } else if (option.starts_with("--print-passes=")) { in dex2oat()
1086 std::string print_passes = option.substr(strlen("--print-passes=")).data(); in dex2oat()
1088 } else if (option == "--print-all-passes") { in dex2oat()
1090 } else if (option.starts_with("--dump-cfg-passes=")) { in dex2oat()
1091 std::string dump_passes = option.substr(strlen("--dump-cfg-passes=")).data(); in dex2oat()
1093 } else if (option == "--include-patch-information") { in dex2oat()
1095 } else if (option == "--no-include-patch-information") { in dex2oat()
1097 } else if (option.starts_with("--swap-file=")) { in dex2oat()
1098 swap_file_name = option.substr(strlen("--swap-file=")).data(); in dex2oat()
1099 } else if (option.starts_with("--swap-fd=")) { in dex2oat()
1100 const char* swap_fd_str = option.substr(strlen("--swap-fd=")).data(); in dex2oat()
1108 Usage("Unknown argument %s", option.data()); in dex2oat()