comparison src/share/vm/graal/graalRuntime.hpp @ 21523:4b3b38415adf

make GraalRuntime::parse_argument public to avoid needing the firend declaration
author Gilles Duboscq <gilles.m.duboscq@oracle.com>
date Thu, 28 May 2015 18:06:26 +0200
parents b7ac67354c14
children fad971028755
comparison
equal deleted inserted replaced
21522:28cbfacd0518 21523:4b3b38415adf
52 int lineNo() { return _lineNo; } 52 int lineNo() { return _lineNo; }
53 bool is_aborted() { return _abort; } 53 bool is_aborted() { return _abort; }
54 void set_filename(char* path) {_filename = path; _lineNo = 0;} 54 void set_filename(char* path) {_filename = path; _lineNo = 0;}
55 }; 55 };
56 56
57 class GraalOptionParseClosure;
58
59 class GraalRuntime: public CHeapObj<mtCompiler> { 57 class GraalRuntime: public CHeapObj<mtCompiler> {
60 friend GraalOptionParseClosure;
61 private: 58 private:
62
63 static jobject _HotSpotGraalRuntime_instance; 59 static jobject _HotSpotGraalRuntime_instance;
64 static bool _HotSpotGraalRuntime_initialized; 60 static bool _HotSpotGraalRuntime_initialized;
65 61
66 static bool _shutdown_called; 62 static bool _shutdown_called;
67 63
71 * leading "-G:" prefix. These option values are set prior to processing of any Graal 67 * leading "-G:" prefix. These option values are set prior to processing of any Graal
72 * options present on the command line. 68 * options present on the command line.
73 */ 69 */
74 static void parse_graal_options_file(OptionsValueTable* options); 70 static void parse_graal_options_file(OptionsValueTable* options);
75 71
76 static bool parse_argument(OptionsValueTable* options, const char* arg);
77
78 static void print_flags_helper(TRAPS); 72 static void print_flags_helper(TRAPS);
79 /** 73 /**
80 * Instantiates a service object, calls its default constructor and returns it. 74 * Instantiates a service object, calls its default constructor and returns it.
81 * 75 *
82 * @param name the name of a class implementing com.oracle.graal.api.runtime.Service 76 * @param name the name of a class implementing com.oracle.graal.api.runtime.Service
88 /** 82 /**
89 * Parses the Graal specific VM options that were presented by the launcher and sets 83 * Parses the Graal specific VM options that were presented by the launcher and sets
90 * the relevants Java fields. 84 * the relevants Java fields.
91 */ 85 */
92 static OptionsValueTable* parse_arguments(); 86 static OptionsValueTable* parse_arguments();
87
88 static bool parse_argument(OptionsValueTable* options, const char* arg);
93 89
94 static void set_options(OptionsValueTable* options, TRAPS); 90 static void set_options(OptionsValueTable* options, TRAPS);
95 91
96 /** 92 /**
97 * Ensures that the Graal class loader is initialized and the well known Graal classes are loaded. 93 * Ensures that the Graal class loader is initialized and the well known Graal classes are loaded.