src/share/vm/opto/node.cpp

Print this page


   1 /*
   2  * Copyright (c) 1997, 2008, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   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 #include "incls/_precompiled.incl"
  26 #include "incls/_node.cpp.incl"










  27 
  28 class RegMask;
  29 // #include "phase.hpp"
  30 class PhaseTransform;
  31 class PhaseGVN;
  32 
  33 // Arena we are currently building Nodes in
  34 const uint Node::NotAMachineReg = 0xffff0000;
  35 
  36 #ifndef PRODUCT
  37 extern int nodes_created;
  38 #endif
  39 
  40 #ifdef ASSERT
  41 
  42 //-------------------------- construct_node------------------------------------
  43 // Set a breakpoint here to identify where a particular node index is built.
  44 void Node::verify_construction() {
  45   _debug_orig = NULL;
  46   int old_debug_idx = Compile::debug_idx();


   1 /*
   2  * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   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 #include "precompiled.hpp"
  26 #include "libadt/vectset.hpp"
  27 #include "memory/allocation.inline.hpp"
  28 #include "opto/cfgnode.hpp"
  29 #include "opto/connode.hpp"
  30 #include "opto/machnode.hpp"
  31 #include "opto/matcher.hpp"
  32 #include "opto/node.hpp"
  33 #include "opto/opcodes.hpp"
  34 #include "opto/regmask.hpp"
  35 #include "opto/type.hpp"
  36 #include "utilities/copy.hpp"
  37 
  38 class RegMask;
  39 // #include "phase.hpp"
  40 class PhaseTransform;
  41 class PhaseGVN;
  42 
  43 // Arena we are currently building Nodes in
  44 const uint Node::NotAMachineReg = 0xffff0000;
  45 
  46 #ifndef PRODUCT
  47 extern int nodes_created;
  48 #endif
  49 
  50 #ifdef ASSERT
  51 
  52 //-------------------------- construct_node------------------------------------
  53 // Set a breakpoint here to identify where a particular node index is built.
  54 void Node::verify_construction() {
  55   _debug_orig = NULL;
  56   int old_debug_idx = Compile::debug_idx();