51 if (!EnableJVMCI) { 52 THROW_MSG_NULL(vmSymbols::java_lang_InternalError(), "JVMCI is not enabled") 53 } 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; } | 51 if (!EnableJVMCI) { 52 THROW_MSG_NULL(vmSymbols::java_lang_InternalError(), "JVMCI is not enabled") 53 } 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 /** 72 * Initialize the compile queue with the methods in java.lang.Object and 73 * then wait until the queue is empty. 74 */ 75 void bootstrap(); 76 77 bool is_bootstrapping() const { return _bootstrapping; } 78 79 // Compilation entry point for methods 80 virtual void compile_method(ciEnv* env, ciMethod* target, int entry_bci, DirectiveSet* directive); 81 82 void compile_method(const methodHandle& target, int entry_bci, JVMCIEnv* env); 83 84 virtual bool is_trivial(Method* method); 85 86 // Print compilation timers and statistics 87 virtual void print_timers(); 88 89 /** 90 * Gets the number of methods that have been successfully compiled by 91 * a call to JVMCICompiler::compile_method(). 92 */ 93 int methods_compiled() { return _methods_compiled; } 94 95 // Print compilation timers and statistics 96 static void print_compilation_timers(); 97 98 static elapsedTimer* codeInstallTimer() { return &_codeInstallTimer; } |