hotspot/src/share/vm/opto/addnode.hpp
changeset 7397 5b173b4ca846
parent 5547 f4b087cbb361
child 35551 36ef3841fb34
equal deleted inserted replaced
7396:518b01b064ff 7397:5b173b4ca846
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2006, Oracle and/or its affiliates. All rights reserved.
     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.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     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
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    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
    20  * or visit www.oracle.com if you need additional information or have any
    21  * questions.
    21  * questions.
    22  *
    22  *
    23  */
    23  */
       
    24 
       
    25 #ifndef SHARE_VM_OPTO_ADDNODE_HPP
       
    26 #define SHARE_VM_OPTO_ADDNODE_HPP
       
    27 
       
    28 #include "opto/node.hpp"
       
    29 #include "opto/opcodes.hpp"
       
    30 #include "opto/type.hpp"
    24 
    31 
    25 // Portions of code courtesy of Clifford Click
    32 // Portions of code courtesy of Clifford Click
    26 
    33 
    27 class PhaseTransform;
    34 class PhaseTransform;
    28 
    35 
   239   virtual const Type *add_id() const { return TypeInt::make(max_jint); }
   246   virtual const Type *add_id() const { return TypeInt::make(max_jint); }
   240   virtual const Type *bottom_type() const { return TypeInt::INT; }
   247   virtual const Type *bottom_type() const { return TypeInt::INT; }
   241   virtual uint ideal_reg() const { return Op_RegI; }
   248   virtual uint ideal_reg() const { return Op_RegI; }
   242   virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
   249   virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
   243 };
   250 };
       
   251 
       
   252 #endif // SHARE_VM_OPTO_ADDNODE_HPP