< prev index next >

src/share/vm/jvmci/jvmciCompiler.hpp

Print this page




  25 #define SHARE_VM_JVMCI_JVMCI_COMPILER_HPP
  26 
  27 #include "compiler/abstractCompiler.hpp"
  28 #include "jvmci/jvmciEnv.hpp"
  29 #include "utilities/exceptions.hpp"
  30 
  31 class JVMCICompiler : public AbstractCompiler {
  32 private:
  33   bool _bootstrapping;
  34 
  35   /**
  36    * Number of methods compiled by JVMCI. This is not synchronized
  37    * so may not be 100% accurate.
  38    */
  39   volatile int _methodsCompiled;
  40 
  41   static JVMCICompiler* _instance;
  42 
  43   static elapsedTimer _codeInstallTimer;
  44 


  45 public:
  46   JVMCICompiler();
  47 
  48   static JVMCICompiler* instance(TRAPS) {
  49     if (!EnableJVMCI) {
  50       THROW_MSG_NULL(vmSymbols::java_lang_InternalError(), "JVMCI is not enabled")
  51     }
  52     return _instance;
  53   }
  54 
  55   virtual const char* name() { return "JVMCI"; }
  56 
  57   virtual bool supports_native()                 { return true; }
  58   virtual bool supports_osr   ()                 { return true; }
  59 
  60   bool is_jvmci()                                { return true; }
  61   bool is_c1   ()                                { return false; }
  62   bool is_c2   ()                                { return false; }
  63 
  64   bool needs_stubs            () { return false; }




  25 #define SHARE_VM_JVMCI_JVMCI_COMPILER_HPP
  26 
  27 #include "compiler/abstractCompiler.hpp"
  28 #include "jvmci/jvmciEnv.hpp"
  29 #include "utilities/exceptions.hpp"
  30 
  31 class JVMCICompiler : public AbstractCompiler {
  32 private:
  33   bool _bootstrapping;
  34 
  35   /**
  36    * Number of methods compiled by JVMCI. This is not synchronized
  37    * so may not be 100% accurate.
  38    */
  39   volatile int _methodsCompiled;
  40 
  41   static JVMCICompiler* _instance;
  42 
  43   static elapsedTimer _codeInstallTimer;
  44 
  45   static void abort_on_pending_exception(Handle exception, const char* message, bool dump_core = false);
  46 
  47 public:
  48   JVMCICompiler();
  49 
  50   static JVMCICompiler* instance(TRAPS) {
  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; }


< prev index next >