< prev index next >

src/hotspot/share/opto/compile.hpp

Print this page

        

@@ -50,11 +50,10 @@
 class Bundle;
 class C2Compiler;
 class CallGenerator;
 class CloneMap;
 class ConnectionGraph;
-class IdealGraphPrinter;
 class InlineTree;
 class Int_Array;
 class LoadBarrierNode;
 class Matcher;
 class MachConstantNode;

@@ -94,13 +93,13 @@
 enum LoopOptsMode {
   LoopOptsDefault,
   LoopOptsNone,
   LoopOptsShenandoahExpand,
   LoopOptsShenandoahPostExpand,
-  LoopOptsZBarrierInsertion,
   LoopOptsSkipSplitIf,
-  LoopOptsVerify
+  LoopOptsVerify,
+  LoopOptsLastRound
 };
 
 typedef unsigned int node_idx_t;
 class NodeCloneInfo {
  private:

@@ -657,11 +656,10 @@
   void          set_inlining_incrementally(bool z) { _inlining_incrementally = z; }
   int               inlining_incrementally() const { return _inlining_incrementally; }
   void          set_do_cleanup(bool z)          { _do_cleanup = z; }
   int               do_cleanup() const          { return _do_cleanup; }
   void          set_major_progress()            { _major_progress++; }
-  void          restore_major_progress(int progress) { _major_progress += progress; }
   void        clear_major_progress()            { _major_progress = 0; }
   int               max_inline_size() const     { return _max_inline_size; }
   void          set_freq_inline_size(int n)     { _freq_inline_size = n; }
   int               freq_inline_size() const    { return _freq_inline_size; }
   void          set_max_inline_size(int n)      { _max_inline_size = n; }

@@ -747,37 +745,24 @@
     }
 #endif
     C->_latest_stage_start_counter.stamp();
   }
 
-  bool should_print(int level = 1) {
-#ifndef PRODUCT
-    return (_printer && _printer->should_print(level));
-#else
-    return false;
-#endif
-  }
-
-  void print_method(CompilerPhaseType cpt, int level = 1, int idx = 0) {
+  void print_method(CompilerPhaseType cpt, int level = 1) {
     EventCompilerPhase event;
     if (event.should_commit()) {
       event.set_starttime(C->_latest_stage_start_counter);
       event.set_phase((u1) cpt);
       event.set_compileId(C->_compile_id);
       event.set_phaseLevel(level);
       event.commit();
     }
 
+
 #ifndef PRODUCT
-    if (should_print(level)) {
-      char output[1024];
-      if (idx != 0) {
-        sprintf(output, "%s:%d", CompilerPhaseTypeHelper::to_string(cpt), idx);
-      } else {
-        sprintf(output, "%s", CompilerPhaseTypeHelper::to_string(cpt));
-      }
-      _printer->print_method(output, level);
+    if (_printer && _printer->should_print(level)) {
+      _printer->print_method(CompilerPhaseTypeHelper::to_string(cpt), level);
     }
 #endif
     C->_latest_stage_start_counter.stamp();
   }
 
< prev index next >