src/share/vm/opto/c2compiler.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Sdiff src/share/vm/opto

src/share/vm/opto/c2compiler.hpp

Print this page
rev 9032 : 8137167: JEP165: Compiler Control: Implementation task
Summary: Compiler Control JEP
Reviewed-by: roland, twisti


  24 
  25 #ifndef SHARE_VM_OPTO_C2COMPILER_HPP
  26 #define SHARE_VM_OPTO_C2COMPILER_HPP
  27 
  28 #include "compiler/abstractCompiler.hpp"
  29 
  30 class C2Compiler : public AbstractCompiler {
  31  private:
  32   static bool init_c2_runtime();
  33 
  34 public:
  35   C2Compiler() : AbstractCompiler(c2) {}
  36 
  37   // Name
  38   const char *name() { return "C2"; }
  39   void initialize();
  40 
  41   // Compilation entry point for methods
  42   void compile_method(ciEnv* env,
  43                       ciMethod* target,
  44                       int entry_bci);

  45 
  46   // sentinel value used to trigger backtracking in compile_method().
  47   static const char* retry_no_subsuming_loads();
  48   static const char* retry_no_escape_analysis();
  49   static const char* retry_class_loading_during_parsing();
  50 
  51   // Print compilation timers and statistics
  52   void print_timers();
  53 
  54   // Return true if the intrinsification of a method supported by the compiler
  55   // assuming a non-virtual dispatch. (A virtual dispatch is
  56   // possible for only a limited set of available intrinsics whereas
  57   // a non-virtual dispatch is possible for all available intrinsics.)
  58   // Return false otherwise.
  59   virtual bool is_intrinsic_supported(methodHandle method) {
  60     return is_intrinsic_supported(method, false);
  61   }
  62 
  63   // Check if the compiler supports an intrinsic for 'method' given the
  64   // the dispatch mode specified by the 'is_virtual' parameter.


  24 
  25 #ifndef SHARE_VM_OPTO_C2COMPILER_HPP
  26 #define SHARE_VM_OPTO_C2COMPILER_HPP
  27 
  28 #include "compiler/abstractCompiler.hpp"
  29 
  30 class C2Compiler : public AbstractCompiler {
  31  private:
  32   static bool init_c2_runtime();
  33 
  34 public:
  35   C2Compiler() : AbstractCompiler(c2) {}
  36 
  37   // Name
  38   const char *name() { return "C2"; }
  39   void initialize();
  40 
  41   // Compilation entry point for methods
  42   void compile_method(ciEnv* env,
  43                       ciMethod* target,
  44                       int entry_bci,
  45                       DirectiveSet* directive);
  46 
  47   // sentinel value used to trigger backtracking in compile_method().
  48   static const char* retry_no_subsuming_loads();
  49   static const char* retry_no_escape_analysis();
  50   static const char* retry_class_loading_during_parsing();
  51 
  52   // Print compilation timers and statistics
  53   void print_timers();
  54 
  55   // Return true if the intrinsification of a method supported by the compiler
  56   // assuming a non-virtual dispatch. (A virtual dispatch is
  57   // possible for only a limited set of available intrinsics whereas
  58   // a non-virtual dispatch is possible for all available intrinsics.)
  59   // Return false otherwise.
  60   virtual bool is_intrinsic_supported(methodHandle method) {
  61     return is_intrinsic_supported(method, false);
  62   }
  63 
  64   // Check if the compiler supports an intrinsic for 'method' given the
  65   // the dispatch mode specified by the 'is_virtual' parameter.
src/share/vm/opto/c2compiler.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File