• Home
  • Raw
  • Download

Lines Matching refs:option

662   void ParseZipFd(const StringPiece& option) {  in ParseZipFd()  argument
663 ParseUintOption(option, "--zip-fd", &zip_fd_, Usage); in ParseZipFd()
666 void ParseInputVdexFd(const StringPiece& option) { in ParseInputVdexFd() argument
668 ParseIntOption(option, "--input-vdex-fd", &input_vdex_fd_, Usage); in ParseInputVdexFd()
671 void ParseOutputVdexFd(const StringPiece& option) { in ParseOutputVdexFd() argument
672 ParseUintOption(option, "--output-vdex-fd", &output_vdex_fd_, Usage); in ParseOutputVdexFd()
675 void ParseOatFd(const StringPiece& option) { in ParseOatFd() argument
676 ParseUintOption(option, "--oat-fd", &oat_fd_, Usage); in ParseOatFd()
679 void ParseFdForCollection(const StringPiece& option, in ParseFdForCollection() argument
683 ParseUintOption(option, arg_name, &fd, Usage); in ParseFdForCollection()
687 void ParseJ(const StringPiece& option) { in ParseJ() argument
688 ParseUintOption(option, "-j", &thread_count_, Usage, /* is_long_option */ false); in ParseJ()
691 void ParseBase(const StringPiece& option) { in ParseBase() argument
692 DCHECK(option.starts_with("--base=")); in ParseBase()
693 const char* image_base_str = option.substr(strlen("--base=")).data(); in ParseBase()
697 Usage("Failed to parse hexadecimal value for option %s", option.data()); in ParseBase()
701 void ParseInstructionSet(const StringPiece& option) { in ParseInstructionSet() argument
702 DCHECK(option.starts_with("--instruction-set=")); in ParseInstructionSet()
703 StringPiece instruction_set_str = option.substr(strlen("--instruction-set=")).data(); in ParseInstructionSet()
715 void ParseInstructionSetVariant(const StringPiece& option, ParserOptions* parser_options) { in ParseInstructionSetVariant() argument
716 DCHECK(option.starts_with("--instruction-set-variant=")); in ParseInstructionSetVariant()
717 StringPiece str = option.substr(strlen("--instruction-set-variant=")).data(); in ParseInstructionSetVariant()
725 void ParseInstructionSetFeatures(const StringPiece& option, ParserOptions* parser_options) { in ParseInstructionSetFeatures() argument
726 DCHECK(option.starts_with("--instruction-set-features=")); in ParseInstructionSetFeatures()
727 StringPiece str = option.substr(strlen("--instruction-set-features=")).data(); in ParseInstructionSetFeatures()
740 Usage("Error parsing '%s': %s", option.data(), parser_options->error_msg.c_str()); in ParseInstructionSetFeatures()
744 void ParseCompilerBackend(const StringPiece& option, ParserOptions* parser_options) { in ParseCompilerBackend() argument
745 DCHECK(option.starts_with("--compiler-backend=")); in ParseCompilerBackend()
747 StringPiece backend_str = option.substr(strlen("--compiler-backend=")).data(); in ParseCompilerBackend()
757 void ParseImageFormat(const StringPiece& option) { in ParseImageFormat() argument
759 DCHECK(option.starts_with(substr)); in ParseImageFormat()
760 const StringPiece format_str = option.substr(substr.length()); in ParseImageFormat()
1188 const StringPiece option(argv[i]); in ParseArgs() local
1193 if (option.starts_with("--dex-file=")) { in ParseArgs()
1194 dex_filenames_.push_back(option.substr(strlen("--dex-file=")).data()); in ParseArgs()
1195 } else if (option.starts_with("--dex-location=")) { in ParseArgs()
1196 dex_locations_.push_back(option.substr(strlen("--dex-location=")).data()); in ParseArgs()
1197 } else if (option.starts_with("--zip-fd=")) { in ParseArgs()
1198 ParseZipFd(option); in ParseArgs()
1199 } else if (option.starts_with("--zip-location=")) { in ParseArgs()
1200 zip_location_ = option.substr(strlen("--zip-location=")).data(); in ParseArgs()
1201 } else if (option.starts_with("--input-vdex-fd=")) { in ParseArgs()
1202 ParseInputVdexFd(option); in ParseArgs()
1203 } else if (option.starts_with("--input-vdex=")) { in ParseArgs()
1204 input_vdex_ = option.substr(strlen("--input-vdex=")).data(); in ParseArgs()
1205 } else if (option.starts_with("--output-vdex=")) { in ParseArgs()
1206 output_vdex_ = option.substr(strlen("--output-vdex=")).data(); in ParseArgs()
1207 } else if (option.starts_with("--output-vdex-fd=")) { in ParseArgs()
1208 ParseOutputVdexFd(option); in ParseArgs()
1209 } else if (option.starts_with("--oat-file=")) { in ParseArgs()
1210 oat_filenames_.push_back(option.substr(strlen("--oat-file=")).data()); in ParseArgs()
1211 } else if (option.starts_with("--oat-symbols=")) { in ParseArgs()
1212 parser_options->oat_symbols.push_back(option.substr(strlen("--oat-symbols=")).data()); in ParseArgs()
1213 } else if (option.starts_with("--oat-fd=")) { in ParseArgs()
1214 ParseOatFd(option); in ParseArgs()
1215 } else if (option.starts_with("--oat-location=")) { in ParseArgs()
1216 oat_location_ = option.substr(strlen("--oat-location=")).data(); in ParseArgs()
1217 } else if (option == "--watch-dog") { in ParseArgs()
1219 } else if (option == "--no-watch-dog") { in ParseArgs()
1221 } else if (option.starts_with("--watchdog-timeout=")) { in ParseArgs()
1222 ParseIntOption(option, in ParseArgs()
1226 } else if (option.starts_with("-j")) { in ParseArgs()
1227 ParseJ(option); in ParseArgs()
1228 } else if (option.starts_with("--image=")) { in ParseArgs()
1229 image_filenames_.push_back(option.substr(strlen("--image=")).data()); in ParseArgs()
1230 } else if (option.starts_with("--image-classes=")) { in ParseArgs()
1231 image_classes_filename_ = option.substr(strlen("--image-classes=")).data(); in ParseArgs()
1232 } else if (option.starts_with("--image-classes-zip=")) { in ParseArgs()
1233 image_classes_zip_filename_ = option.substr(strlen("--image-classes-zip=")).data(); in ParseArgs()
1234 } else if (option.starts_with("--image-format=")) { in ParseArgs()
1235 ParseImageFormat(option); in ParseArgs()
1236 } else if (option.starts_with("--compiled-classes=")) { in ParseArgs()
1237 compiled_classes_filename_ = option.substr(strlen("--compiled-classes=")).data(); in ParseArgs()
1238 } else if (option.starts_with("--compiled-classes-zip=")) { in ParseArgs()
1239 compiled_classes_zip_filename_ = option.substr(strlen("--compiled-classes-zip=")).data(); in ParseArgs()
1240 } else if (option.starts_with("--compiled-methods=")) { in ParseArgs()
1241 compiled_methods_filename_ = option.substr(strlen("--compiled-methods=")).data(); in ParseArgs()
1242 } else if (option.starts_with("--compiled-methods-zip=")) { in ParseArgs()
1243 compiled_methods_zip_filename_ = option.substr(strlen("--compiled-methods-zip=")).data(); in ParseArgs()
1244 } else if (option.starts_with("--run-passes=")) { in ParseArgs()
1245 passes_to_run_filename_ = option.substr(strlen("--run-passes=")).data(); in ParseArgs()
1246 } else if (option.starts_with("--base=")) { in ParseArgs()
1247 ParseBase(option); in ParseArgs()
1248 } else if (option.starts_with("--boot-image=")) { in ParseArgs()
1249 parser_options->boot_image_filename = option.substr(strlen("--boot-image=")).data(); in ParseArgs()
1250 } else if (option.starts_with("--android-root=")) { in ParseArgs()
1251 android_root_ = option.substr(strlen("--android-root=")).data(); in ParseArgs()
1252 } else if (option.starts_with("--instruction-set=")) { in ParseArgs()
1253 ParseInstructionSet(option); in ParseArgs()
1254 } else if (option.starts_with("--instruction-set-variant=")) { in ParseArgs()
1255 ParseInstructionSetVariant(option, parser_options.get()); in ParseArgs()
1256 } else if (option.starts_with("--instruction-set-features=")) { in ParseArgs()
1257 ParseInstructionSetFeatures(option, parser_options.get()); in ParseArgs()
1258 } else if (option.starts_with("--compiler-backend=")) { in ParseArgs()
1259 ParseCompilerBackend(option, parser_options.get()); in ParseArgs()
1260 } else if (option.starts_with("--profile-file=")) { in ParseArgs()
1261 profile_file_ = option.substr(strlen("--profile-file=")).ToString(); in ParseArgs()
1262 } else if (option.starts_with("--profile-file-fd=")) { in ParseArgs()
1263 ParseUintOption(option, "--profile-file-fd", &profile_file_fd_, Usage); in ParseArgs()
1264 } else if (option == "--host") { in ParseArgs()
1266 } else if (option == "--runtime-arg") { in ParseArgs()
1274 } else if (option == "--dump-timing") { in ParseArgs()
1276 } else if (option == "--dump-passes") { in ParseArgs()
1278 } else if (option == "--dump-stats") { in ParseArgs()
1280 } else if (option == "--avoid-storing-invocation") { in ParseArgs()
1282 } else if (option.starts_with("--swap-file=")) { in ParseArgs()
1283 swap_file_name_ = option.substr(strlen("--swap-file=")).data(); in ParseArgs()
1284 } else if (option.starts_with("--swap-fd=")) { in ParseArgs()
1285 ParseUintOption(option, "--swap-fd", &swap_fd_, Usage); in ParseArgs()
1286 } else if (option.starts_with("--swap-dex-size-threshold=")) { in ParseArgs()
1287 ParseUintOption(option, in ParseArgs()
1291 } else if (option.starts_with("--swap-dex-count-threshold=")) { in ParseArgs()
1292 ParseUintOption(option, in ParseArgs()
1296 } else if (option.starts_with("--very-large-app-threshold=")) { in ParseArgs()
1297 ParseUintOption(option, in ParseArgs()
1301 } else if (option.starts_with("--app-image-file=")) { in ParseArgs()
1302 app_image_file_name_ = option.substr(strlen("--app-image-file=")).data(); in ParseArgs()
1303 } else if (option.starts_with("--app-image-fd=")) { in ParseArgs()
1304 ParseUintOption(option, "--app-image-fd", &app_image_fd_, Usage); in ParseArgs()
1305 } else if (option == "--multi-image") { in ParseArgs()
1307 } else if (option.starts_with("--no-inline-from=")) { in ParseArgs()
1308 no_inline_from_string_ = option.substr(strlen("--no-inline-from=")).data(); in ParseArgs()
1309 } else if (option == "--force-determinism") { in ParseArgs()
1314 } else if (option.starts_with("--classpath-dir=")) { in ParseArgs()
1315 classpath_dir_ = option.substr(strlen("--classpath-dir=")).data(); in ParseArgs()
1316 } else if (option.starts_with("--class-loader-context=")) { in ParseArgs()
1318 option.substr(strlen("--class-loader-context=")).data()); in ParseArgs()
1320 Usage("Option --class-loader-context has an incorrect format: %s", option.data()); in ParseArgs()
1322 } else if (option.starts_with("--dirty-image-objects=")) { in ParseArgs()
1323 dirty_image_objects_filename_ = option.substr(strlen("--dirty-image-objects=")).data(); in ParseArgs()
1324 } else if (!compiler_options_->ParseCompilerOption(option, Usage)) { in ParseArgs()
1325 Usage("Unknown argument %s", option.data()); in ParseArgs()