< prev index next >

src/hotspot/share/compiler/compilerOracle.cpp

Print this page

 774 
 775         if (!validator.is_valid()) {
 776           jio_snprintf(errorbuf, buf_size, "Unrecognized intrinsic detected in %s: %s", option2name(option), validator.what());
 777         }
 778       }
 779 #if !defined(PRODUCT) && defined(COMPILER2)
 780       else if (option == CompileCommand::TraceAutoVectorization) {
 781         TraceAutoVectorizationTagValidator validator(value, true);
 782 
 783         if (!validator.is_valid()) {
 784           jio_snprintf(errorbuf, buf_size, "Unrecognized tag name in %s: %s", option2name(option), validator.what());
 785         }
 786       } else if (option == CompileCommand::PrintIdealPhase) {
 787         PhaseNameValidator validator(value);
 788 
 789         if (!validator.is_valid()) {
 790           jio_snprintf(errorbuf, buf_size, "Unrecognized phase name in %s: %s", option2name(option), validator.what());
 791         }
 792       } else if (option == CompileCommand::TestOptionList) {
 793         // all values are ok


 794       }
 795 #endif
 796       else {
 797         assert(false, "Ccstrlist type option missing validator");
 798       }
 799 
 800       register_command(matcher, option, (ccstr) value);
 801       return;
 802     } else {
 803       jio_snprintf(errorbuf, buf_size, "Value cannot be read for option '%s' of type '%s'", ccname, type_str);
 804     }
 805   } else if (type == OptionType::Bool) {
 806     char value[256];
 807     if (*line == '\0') {
 808       // Short version of a CompileCommand sets a boolean Option to true
 809       // -XXCompileCommand=<Option>,<method pattern>
 810       register_command(matcher, option, true);
 811       return;
 812     }
 813     if (sscanf(line, "%255[a-zA-Z]%n", value, &bytes_read) == 1) {

 774 
 775         if (!validator.is_valid()) {
 776           jio_snprintf(errorbuf, buf_size, "Unrecognized intrinsic detected in %s: %s", option2name(option), validator.what());
 777         }
 778       }
 779 #if !defined(PRODUCT) && defined(COMPILER2)
 780       else if (option == CompileCommand::TraceAutoVectorization) {
 781         TraceAutoVectorizationTagValidator validator(value, true);
 782 
 783         if (!validator.is_valid()) {
 784           jio_snprintf(errorbuf, buf_size, "Unrecognized tag name in %s: %s", option2name(option), validator.what());
 785         }
 786       } else if (option == CompileCommand::PrintIdealPhase) {
 787         PhaseNameValidator validator(value);
 788 
 789         if (!validator.is_valid()) {
 790           jio_snprintf(errorbuf, buf_size, "Unrecognized phase name in %s: %s", option2name(option), validator.what());
 791         }
 792       } else if (option == CompileCommand::TestOptionList) {
 793         // all values are ok
 794       } else if (option == CompileCommand::TooManyTrapsAtBCI) {
 795         // FIXME
 796       }
 797 #endif
 798       else {
 799         assert(false, "Ccstrlist type option missing validator");
 800       }
 801 
 802       register_command(matcher, option, (ccstr) value);
 803       return;
 804     } else {
 805       jio_snprintf(errorbuf, buf_size, "Value cannot be read for option '%s' of type '%s'", ccname, type_str);
 806     }
 807   } else if (type == OptionType::Bool) {
 808     char value[256];
 809     if (*line == '\0') {
 810       // Short version of a CompileCommand sets a boolean Option to true
 811       // -XXCompileCommand=<Option>,<method pattern>
 812       register_command(matcher, option, true);
 813       return;
 814     }
 815     if (sscanf(line, "%255[a-zA-Z]%n", value, &bytes_read) == 1) {
< prev index next >