src/hotspot/share/compiler/methodLiveness.hpp
changeset 53264 424e4908b4b8
parent 53244 9807daeb47c4
equal deleted inserted replaced
53263:5d7e4d832868 53264:424e4908b4b8
   220 
   220 
   221   // Work list manipulation routines.  Called internally by BasicBlock.
   221   // Work list manipulation routines.  Called internally by BasicBlock.
   222   BasicBlock *work_list_get();
   222   BasicBlock *work_list_get();
   223   void work_list_add(BasicBlock *block);
   223   void work_list_add(BasicBlock *block);
   224 
   224 
   225   // -- Timing and Statistics.
       
   226 
       
   227 
       
   228   // Timers
       
   229   static elapsedTimer _time_build_graph;
       
   230   static elapsedTimer _time_gen_kill;
       
   231   static elapsedTimer _time_flow;
       
   232   static elapsedTimer _time_query;
       
   233   static elapsedTimer _time_total;
       
   234 
       
   235 #ifndef PRODUCT
       
   236 
       
   237   // Counts
       
   238   static long _total_bytes;
       
   239   static int  _total_methods;
       
   240 
       
   241   static long _total_blocks;
       
   242   static int  _max_method_blocks;
       
   243 
       
   244   static long _total_edges;
       
   245   static int  _max_block_edges;
       
   246 
       
   247   static long _total_exc_edges;
       
   248   static int  _max_block_exc_edges;
       
   249 
       
   250   static long _total_method_locals;
       
   251   static int  _max_method_locals;
       
   252 
       
   253   static long _total_locals_queried;
       
   254   static long _total_live_locals_queried;
       
   255 
       
   256   static long _total_visits;
       
   257 
       
   258 #endif
       
   259 
       
   260  public:
   225  public:
   261   // Create a liveness analyzer for a method
   226   // Create a liveness analyzer for a method
   262   MethodLiveness(Arena* arena, ciMethod* method);
   227   MethodLiveness(Arena* arena, ciMethod* method);
   263 
   228 
   264   // Compute liveness information for the method
   229   // Compute liveness information for the method
   269 
   234 
   270 #ifdef COMPILER1
   235 #ifdef COMPILER1
   271   const BitMap& get_bci_block_start() const { return _bci_block_start; }
   236   const BitMap& get_bci_block_start() const { return _bci_block_start; }
   272 #endif // COMPILER1
   237 #endif // COMPILER1
   273 
   238 
   274   static void print_times() PRODUCT_RETURN;
       
   275 };
   239 };
   276 
   240 
   277 #endif // SHARE_COMPILER_METHODLIVENESS_HPP
   241 #endif // SHARE_COMPILER_METHODLIVENESS_HPP