8257460: Further CompilerOracle cleanup

Reviewed-by: kvn, redestad, thartmann
This commit is contained in:
Nils Eliasson 2020-12-01 21:08:45 +00:00
parent 29d90b952c
commit 015e6e58c5
4 changed files with 49 additions and 44 deletions

View file

@ -149,7 +149,11 @@ class CompilerOracle : AllStatic {
// Check if method has option and value set. If yes, overwrite value and return true,
// otherwise leave value unchanged and return false.
template<typename T>
static bool has_option_value(const methodHandle& method, enum CompileCommand option, T& value, bool verfiy_type = false);
static bool has_option_value(const methodHandle& method, enum CompileCommand option, T& value);
// This check is currently only needed by whitebox API
template<typename T>
static bool option_matches_type(enum CompileCommand option, T& value);
// Reads from string instead of file
static void parse_from_string(const char* option_string, void (*parser)(char*));