17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #ifndef SHARE_VM_COMPILER_COMPILERORACLE_HPP
26 #define SHARE_VM_COMPILER_COMPILERORACLE_HPP
27
28 #include "memory/allocation.hpp"
29 #include "oops/oopsHierarchy.hpp"
30
31 // CompilerOracle is an interface for turning on and off compilation
32 // for some methods
33
34 class CompilerOracle : AllStatic {
35 private:
36 static bool _quiet;
37
38 public:
39
40 // True if the command file has been specified or is implicit
41 static bool has_command_file();
42
43 // Reads from file and adds to lists
44 static void parse_from_file();
45
46 // Tells whether we to exclude compilation of method
47 static bool should_exclude(methodHandle method, bool& quietly);
48
49 // Tells whether we want to inline this method
50 static bool should_inline(methodHandle method);
51
52 // Tells whether we want to disallow inlining of this method
53 static bool should_not_inline(methodHandle method);
54
55 // Tells whether we should print the assembly for this method
56 static bool should_print(methodHandle method);
|
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #ifndef SHARE_VM_COMPILER_COMPILERORACLE_HPP
26 #define SHARE_VM_COMPILER_COMPILERORACLE_HPP
27
28 #include "memory/allocation.hpp"
29 #include "oops/oopsHierarchy.hpp"
30
31 // CompilerOracle is an interface for turning on and off compilation
32 // for some methods
33
34 class CompilerOracle : AllStatic {
35 private:
36 static bool _quiet;
37 static void print_tip();
38
39 public:
40
41 // True if the command file has been specified or is implicit
42 static bool has_command_file();
43
44 // Reads from file and adds to lists
45 static void parse_from_file();
46
47 // Tells whether we to exclude compilation of method
48 static bool should_exclude(methodHandle method, bool& quietly);
49
50 // Tells whether we want to inline this method
51 static bool should_inline(methodHandle method);
52
53 // Tells whether we want to disallow inlining of this method
54 static bool should_not_inline(methodHandle method);
55
56 // Tells whether we should print the assembly for this method
57 static bool should_print(methodHandle method);
|