54 return _instance;
55 }
56
57 virtual const char* name() { return "JVMCI"; }
58
59 virtual bool supports_native() { return true; }
60 virtual bool supports_osr () { return true; }
61
62 bool is_jvmci() { return true; }
63 bool is_c1 () { return false; }
64 bool is_c2 () { return false; }
65
66 bool needs_stubs () { return false; }
67
68 // Initialization
69 virtual void initialize();
70
71 void bootstrap();
72
73 // Compilation entry point for methods
74 virtual void compile_method(ciEnv* env, ciMethod* target, int entry_bci, DirectiveSet* directive);
75
76 void compile_method(const methodHandle& target, int entry_bci, JVMCIEnv* env);
77
78 virtual bool is_trivial(Method* method);
79
80 // Print compilation timers and statistics
81 virtual void print_timers();
82
83 /**
84 * Gets the number of methods that have been successfully compiled by
85 * a call to JVMCICompiler::compile_method().
86 */
87 int methods_compiled() { return _methods_compiled; }
88
89 // Print compilation timers and statistics
90 static void print_compilation_timers();
91
92 static elapsedTimer* codeInstallTimer() { return &_codeInstallTimer; }
93 };
94
|
54 return _instance;
55 }
56
57 virtual const char* name() { return "JVMCI"; }
58
59 virtual bool supports_native() { return true; }
60 virtual bool supports_osr () { return true; }
61
62 bool is_jvmci() { return true; }
63 bool is_c1 () { return false; }
64 bool is_c2 () { return false; }
65
66 bool needs_stubs () { return false; }
67
68 // Initialization
69 virtual void initialize();
70
71 void bootstrap();
72
73 // Compilation entry point for methods
74 virtual void compile_method(ciEnv* env, ciMethod* target, int entry_bci);
75
76 void compile_method(const methodHandle& target, int entry_bci, JVMCIEnv* env);
77
78 virtual bool is_trivial(Method* method);
79
80 // Print compilation timers and statistics
81 virtual void print_timers();
82
83 /**
84 * Gets the number of methods that have been successfully compiled by
85 * a call to JVMCICompiler::compile_method().
86 */
87 int methods_compiled() { return _methods_compiled; }
88
89 // Print compilation timers and statistics
90 static void print_compilation_timers();
91
92 static elapsedTimer* codeInstallTimer() { return &_codeInstallTimer; }
93 };
94
|