< prev index next >

src/share/vm/opto/locknode.hpp

Print this page




  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_LOCKNODE_HPP
  26 #define SHARE_VM_OPTO_LOCKNODE_HPP
  27 
  28 #include "opto/node.hpp"
  29 #include "opto/opcodes.hpp"
  30 #include "opto/subnode.hpp"
  31 #ifdef TARGET_ARCH_MODEL_x86_32


  32 # include "adfiles/ad_x86_32.hpp"
  33 #endif
  34 #ifdef TARGET_ARCH_MODEL_x86_64
  35 # include "adfiles/ad_x86_64.hpp"
  36 #endif
  37 #ifdef TARGET_ARCH_MODEL_sparc
  38 # include "adfiles/ad_sparc.hpp"
  39 #endif
  40 #ifdef TARGET_ARCH_MODEL_zero
  41 # include "adfiles/ad_zero.hpp"
  42 #endif
  43 #ifdef TARGET_ARCH_MODEL_arm
  44 # include "adfiles/ad_arm.hpp"
  45 #endif
  46 #ifdef TARGET_ARCH_MODEL_ppc_32
  47 # include "adfiles/ad_ppc_32.hpp"
  48 #endif
  49 #ifdef TARGET_ARCH_MODEL_ppc_64
  50 # include "adfiles/ad_ppc_64.hpp"
  51 #endif
  52 
  53 //------------------------------BoxLockNode------------------------------------
  54 class BoxLockNode : public Node {
  55   const int     _slot; // stack slot
  56   RegMask     _inmask; // OptoReg corresponding to stack slot
  57   bool _is_eliminated; // Associated locks were safely eliminated
  58 
  59 public:
  60   BoxLockNode( int lock );
  61   virtual int Opcode() const;
  62   virtual void emit(CodeBuffer &cbuf, PhaseRegAlloc *ra_) const;
  63   virtual uint size(PhaseRegAlloc *ra_) const;
  64   virtual const RegMask &in_RegMask(uint) const;
  65   virtual const RegMask &out_RegMask() const;
  66   virtual uint size_of() const;
  67   virtual uint hash() const;
  68   virtual uint cmp( const Node &n ) const;
  69   virtual const class Type *bottom_type() const { return TypeRawPtr::BOTTOM; }




  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_LOCKNODE_HPP
  26 #define SHARE_VM_OPTO_LOCKNODE_HPP
  27 
  28 #include "opto/node.hpp"
  29 #include "opto/opcodes.hpp"
  30 #include "opto/subnode.hpp"
  31 #if defined AD_MD_HPP
  32 # include AD_MD_HPP
  33 #elif defined TARGET_ARCH_MODEL_x86_32
  34 # include "adfiles/ad_x86_32.hpp"
  35 #elif defined TARGET_ARCH_MODEL_x86_64

  36 # include "adfiles/ad_x86_64.hpp"
  37 #elif defined TARGET_ARCH_MODEL_sparc

  38 # include "adfiles/ad_sparc.hpp"
  39 #elif defined TARGET_ARCH_MODEL_zero

  40 # include "adfiles/ad_zero.hpp"
  41 #elif defined TARGET_ARCH_MODEL_ppc_64







  42 # include "adfiles/ad_ppc_64.hpp"
  43 #endif
  44 
  45 //------------------------------BoxLockNode------------------------------------
  46 class BoxLockNode : public Node {
  47   const int     _slot; // stack slot
  48   RegMask     _inmask; // OptoReg corresponding to stack slot
  49   bool _is_eliminated; // Associated locks were safely eliminated
  50 
  51 public:
  52   BoxLockNode( int lock );
  53   virtual int Opcode() const;
  54   virtual void emit(CodeBuffer &cbuf, PhaseRegAlloc *ra_) const;
  55   virtual uint size(PhaseRegAlloc *ra_) const;
  56   virtual const RegMask &in_RegMask(uint) const;
  57   virtual const RegMask &out_RegMask() const;
  58   virtual uint size_of() const;
  59   virtual uint hash() const;
  60   virtual uint cmp( const Node &n ) const;
  61   virtual const class Type *bottom_type() const { return TypeRawPtr::BOTTOM; }


< prev index next >