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

src/share/vm/opto/phase.hpp

Print this page




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_OPTO_PHASE_HPP
  26 #define SHARE_VM_OPTO_PHASE_HPP
  27 
  28 #include "libadt/port.hpp"
  29 #include "runtime/timer.hpp"
  30 
  31 class Compile;
  32 
  33 //------------------------------Phase------------------------------------------
  34 // Most optimizations are done in Phases.  Creating a phase does any long
  35 // running analysis required, and caches the analysis in internal data
  36 // structures.  Later the analysis is queried using transform() calls to
  37 // guide transforming the program.  When the Phase is deleted, so is any
  38 // cached analysis info.  This basic Phase class mostly contains timing and
  39 // memory management code.
  40 class Phase : public StackObj {
  41 public:
  42   enum PhaseNumber {
  43     Compiler,                   // Top-level compiler phase
  44     Parser,                     // Parse bytecodes
  45     Remove_Useless,             // Remove useless nodes
  46     Optimistic,                 // Optimistic analysis phase
  47     GVN,                        // Pessimistic global value numbering phase
  48     Ins_Select,                 // Instruction selection phase




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_OPTO_PHASE_HPP
  26 #define SHARE_VM_OPTO_PHASE_HPP
  27 

  28 #include "runtime/timer.hpp"
  29 
  30 class Compile;
  31 
  32 //------------------------------Phase------------------------------------------
  33 // Most optimizations are done in Phases.  Creating a phase does any long
  34 // running analysis required, and caches the analysis in internal data
  35 // structures.  Later the analysis is queried using transform() calls to
  36 // guide transforming the program.  When the Phase is deleted, so is any
  37 // cached analysis info.  This basic Phase class mostly contains timing and
  38 // memory management code.
  39 class Phase : public StackObj {
  40 public:
  41   enum PhaseNumber {
  42     Compiler,                   // Top-level compiler phase
  43     Parser,                     // Parse bytecodes
  44     Remove_Useless,             // Remove useless nodes
  45     Optimistic,                 // Optimistic analysis phase
  46     GVN,                        // Pessimistic global value numbering phase
  47     Ins_Select,                 // Instruction selection phase


src/share/vm/opto/phase.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File