src/share/vm/opto/machnode.hpp

Print this page




   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 class BufferBlob;
  26 class CodeBuffer;
  27 class JVMState;
  28 class MachCallDynamicJavaNode;
  29 class MachCallJavaNode;
  30 class MachCallLeafNode;
  31 class MachCallNode;
  32 class MachCallRuntimeNode;
  33 class MachCallStaticJavaNode;
  34 class MachEpilogNode;
  35 class MachIfNode;
  36 class MachNullCheckNode;
  37 class MachOper;
  38 class MachProjNode;
  39 class MachPrologNode;
  40 class MachReturnNode;
  41 class MachSafePointNode;
  42 class MachSpillCopyNode;
  43 class Matcher;
  44 class PhaseRegAlloc;


 811 public:
 812   intptr_t _method;             // Address of method
 813   methodOper() :   _method(0) {}
 814   methodOper(intptr_t method) : _method(method)  {}
 815 
 816   virtual MachOper *clone(Compile* C) const;
 817 
 818   virtual intptr_t method() const { return _method; }
 819 
 820   virtual uint           opcode() const;
 821 
 822   virtual uint           hash()   const;
 823   virtual uint           cmp( const MachOper &oper ) const;
 824 #ifndef PRODUCT
 825   virtual const char    *Name()   const { return "Method";}
 826 
 827   virtual void int_format(PhaseRegAlloc *ra, const MachNode *node, outputStream *st) const;
 828   virtual void ext_format(PhaseRegAlloc *ra, const MachNode *node, int idx, outputStream *st) const { int_format( ra, node, st ); }
 829 #endif
 830 };




   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 #ifndef SHARE_VM_OPTO_MACHNODE_HPP
  26 #define SHARE_VM_OPTO_MACHNODE_HPP
  27 
  28 #include "opto/callnode.hpp"
  29 #include "opto/matcher.hpp"
  30 #include "opto/multnode.hpp"
  31 #include "opto/node.hpp"
  32 #include "opto/regmask.hpp"
  33 
  34 class BufferBlob;
  35 class CodeBuffer;
  36 class JVMState;
  37 class MachCallDynamicJavaNode;
  38 class MachCallJavaNode;
  39 class MachCallLeafNode;
  40 class MachCallNode;
  41 class MachCallRuntimeNode;
  42 class MachCallStaticJavaNode;
  43 class MachEpilogNode;
  44 class MachIfNode;
  45 class MachNullCheckNode;
  46 class MachOper;
  47 class MachProjNode;
  48 class MachPrologNode;
  49 class MachReturnNode;
  50 class MachSafePointNode;
  51 class MachSpillCopyNode;
  52 class Matcher;
  53 class PhaseRegAlloc;


 820 public:
 821   intptr_t _method;             // Address of method
 822   methodOper() :   _method(0) {}
 823   methodOper(intptr_t method) : _method(method)  {}
 824 
 825   virtual MachOper *clone(Compile* C) const;
 826 
 827   virtual intptr_t method() const { return _method; }
 828 
 829   virtual uint           opcode() const;
 830 
 831   virtual uint           hash()   const;
 832   virtual uint           cmp( const MachOper &oper ) const;
 833 #ifndef PRODUCT
 834   virtual const char    *Name()   const { return "Method";}
 835 
 836   virtual void int_format(PhaseRegAlloc *ra, const MachNode *node, outputStream *st) const;
 837   virtual void ext_format(PhaseRegAlloc *ra, const MachNode *node, int idx, outputStream *st) const { int_format( ra, node, st ); }
 838 #endif
 839 };
 840 
 841 #endif // SHARE_VM_OPTO_MACHNODE_HPP