hotspot/src/share/vm/opto/connode.hpp
author kvn
Wed, 21 May 2008 13:46:23 -0700
changeset 590 2954744d7bba
parent 589 a44a1e70a3e4
child 594 9f4474e5dbaf
permissions -rw-r--r--
6703890: Compressed Oops: add LoadNKlass node to generate narrow oops (32-bits) compare instructions Summary: Add LoadNKlass and CMoveN nodes, use CmpN and ConN nodes to generate narrow oops compare instructions. Reviewed-by: never, rasbold
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
489c9b5090e2 Initial load
duke
parents:
diff changeset
     2
 * Copyright 1997-2007 Sun Microsystems, Inc.  All Rights Reserved.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     4
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
489c9b5090e2 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
489c9b5090e2 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     8
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    18
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    19
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    20
 * CA 95054 USA or visit www.sun.com if you need additional information or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    21
 * have any questions.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    22
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
 */
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
489c9b5090e2 Initial load
duke
parents:
diff changeset
    25
class PhaseTransform;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    26
class MachNode;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    27
489c9b5090e2 Initial load
duke
parents:
diff changeset
    28
//------------------------------ConNode----------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
    29
// Simple constants
489c9b5090e2 Initial load
duke
parents:
diff changeset
    30
class ConNode : public TypeNode {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    31
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
  ConNode( const Type *t ) : TypeNode(t,1) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
    init_req(0, (Node*)Compile::current()->root());
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
    init_flags(Flag_is_Con);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
  virtual int  Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
  virtual uint hash() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
  virtual const RegMask &out_RegMask() const { return RegMask::Empty; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
  virtual const RegMask &in_RegMask(uint) const { return RegMask::Empty; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
  // Polymorphic factory method:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
  static ConNode* make( Compile* C, const Type *t );
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
489c9b5090e2 Initial load
duke
parents:
diff changeset
    45
//------------------------------ConINode---------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
// Simple integer constants
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
class ConINode : public ConNode {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
  ConINode( const TypeInt *t ) : ConNode(t) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
  // Factory method:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
  static ConINode* make( Compile* C, int con ) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
    return new (C, 1) ConINode( TypeInt::make(con) );
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
//------------------------------ConPNode---------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
// Simple pointer constants
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
class ConPNode : public ConNode {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
  ConPNode( const TypePtr *t ) : ConNode(t) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
  // Factory methods:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
  static ConPNode* make( Compile *C ,address con ) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
    if (con == NULL)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
      return new (C, 1) ConPNode( TypePtr::NULL_PTR ) ;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
    else
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
      return new (C, 1) ConPNode( TypeRawPtr::make(con) );
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
360
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
    76
//------------------------------ConNNode--------------------------------------
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
    77
// Simple narrow oop constants
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
    78
class ConNNode : public ConNode {
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
    79
public:
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
    80
  ConNNode( const TypeNarrowOop *t ) : ConNode(t) {}
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
    81
  virtual int Opcode() const;
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
    82
};
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
    83
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
    84
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
//------------------------------ConLNode---------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
// Simple long constants
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
class ConLNode : public ConNode {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
  ConLNode( const TypeLong *t ) : ConNode(t) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
  // Factory method:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
  static ConLNode* make( Compile *C ,jlong con ) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
    return new (C, 1) ConLNode( TypeLong::make(con) );
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
//------------------------------ConFNode---------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
// Simple float constants
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
class ConFNode : public ConNode {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
  ConFNode( const TypeF *t ) : ConNode(t) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
  // Factory method:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
  static ConFNode* make( Compile *C, float con  ) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
    return new (C, 1) ConFNode( TypeF::make(con) );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
//------------------------------ConDNode---------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
// Simple double constants
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
class ConDNode : public ConNode {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
  ConDNode( const TypeD *t ) : ConNode(t) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
  // Factory method:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   121
  static ConDNode* make( Compile *C, double con ) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
    return new (C, 1) ConDNode( TypeD::make(con) );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
489c9b5090e2 Initial load
duke
parents:
diff changeset
   127
//------------------------------BinaryNode-------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   128
// Place holder for the 2 conditional inputs to a CMove.  CMove needs 4
489c9b5090e2 Initial load
duke
parents:
diff changeset
   129
// inputs: the Bool (for the lt/gt/eq/ne bits), the flags (result of some
489c9b5090e2 Initial load
duke
parents:
diff changeset
   130
// compare), and the 2 values to select between.  The Matcher requires a
489c9b5090e2 Initial load
duke
parents:
diff changeset
   131
// binary tree so we break it down like this:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   132
//     (CMove (Binary bol cmp) (Binary src1 src2))
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
class BinaryNode : public Node {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   135
  BinaryNode( Node *n1, Node *n2 ) : Node(0,n1,n2) { }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   136
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   137
  virtual uint ideal_reg() const { return 0; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   138
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   139
489c9b5090e2 Initial load
duke
parents:
diff changeset
   140
//------------------------------CMoveNode--------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   141
// Conditional move
489c9b5090e2 Initial load
duke
parents:
diff changeset
   142
class CMoveNode : public TypeNode {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   143
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   144
  enum { Control,               // When is it safe to do this cmove?
489c9b5090e2 Initial load
duke
parents:
diff changeset
   145
         Condition,             // Condition controlling the cmove
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
         IfFalse,               // Value if condition is false
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
         IfTrue };              // Value if condition is true
489c9b5090e2 Initial load
duke
parents:
diff changeset
   148
  CMoveNode( Node *bol, Node *left, Node *right, const Type *t ) : TypeNode(t,4)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   149
  {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   150
    init_class_id(Class_CMove);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   151
    // all inputs are nullified in Node::Node(int)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   152
    // init_req(Control,NULL);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   153
    init_req(Condition,bol);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   154
    init_req(IfFalse,left);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   155
    init_req(IfTrue,right);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   156
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   157
  virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   158
  virtual const Type *Value( PhaseTransform *phase ) const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   159
  virtual Node *Identity( PhaseTransform *phase );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   160
  static CMoveNode *make( Compile *C, Node *c, Node *bol, Node *left, Node *right, const Type *t );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   161
  // Helper function to spot cmove graph shapes
489c9b5090e2 Initial load
duke
parents:
diff changeset
   162
  static Node *is_cmove_id( PhaseTransform *phase, Node *cmp, Node *t, Node *f, BoolNode *b );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   163
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   164
489c9b5090e2 Initial load
duke
parents:
diff changeset
   165
//------------------------------CMoveDNode-------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   166
class CMoveDNode : public CMoveNode {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   167
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   168
  CMoveDNode( Node *bol, Node *left, Node *right, const Type* t) : CMoveNode(bol,left,right,t){}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   169
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   170
  virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   171
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   172
489c9b5090e2 Initial load
duke
parents:
diff changeset
   173
//------------------------------CMoveFNode-------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   174
class CMoveFNode : public CMoveNode {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   175
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   176
  CMoveFNode( Node *bol, Node *left, Node *right, const Type* t ) : CMoveNode(bol,left,right,t) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   177
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   178
  virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   179
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   180
489c9b5090e2 Initial load
duke
parents:
diff changeset
   181
//------------------------------CMoveINode-------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   182
class CMoveINode : public CMoveNode {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   183
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   184
  CMoveINode( Node *bol, Node *left, Node *right, const TypeInt *ti ) : CMoveNode(bol,left,right,ti){}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   185
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   186
  virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   187
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   188
489c9b5090e2 Initial load
duke
parents:
diff changeset
   189
//------------------------------CMoveLNode-------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   190
class CMoveLNode : public CMoveNode {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   191
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   192
  CMoveLNode(Node *bol, Node *left, Node *right, const TypeLong *tl ) : CMoveNode(bol,left,right,tl){}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   193
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   194
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   195
489c9b5090e2 Initial load
duke
parents:
diff changeset
   196
//------------------------------CMovePNode-------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   197
class CMovePNode : public CMoveNode {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   198
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   199
  CMovePNode( Node *c, Node *bol, Node *left, Node *right, const TypePtr* t ) : CMoveNode(bol,left,right,t) { init_req(Control,c); }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   200
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   201
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   202
590
2954744d7bba 6703890: Compressed Oops: add LoadNKlass node to generate narrow oops (32-bits) compare instructions
kvn
parents: 589
diff changeset
   203
//------------------------------CMoveNNode-------------------------------------
2954744d7bba 6703890: Compressed Oops: add LoadNKlass node to generate narrow oops (32-bits) compare instructions
kvn
parents: 589
diff changeset
   204
class CMoveNNode : public CMoveNode {
2954744d7bba 6703890: Compressed Oops: add LoadNKlass node to generate narrow oops (32-bits) compare instructions
kvn
parents: 589
diff changeset
   205
public:
2954744d7bba 6703890: Compressed Oops: add LoadNKlass node to generate narrow oops (32-bits) compare instructions
kvn
parents: 589
diff changeset
   206
  CMoveNNode( Node *c, Node *bol, Node *left, Node *right, const Type* t ) : CMoveNode(bol,left,right,t) { init_req(Control,c); }
2954744d7bba 6703890: Compressed Oops: add LoadNKlass node to generate narrow oops (32-bits) compare instructions
kvn
parents: 589
diff changeset
   207
  virtual int Opcode() const;
2954744d7bba 6703890: Compressed Oops: add LoadNKlass node to generate narrow oops (32-bits) compare instructions
kvn
parents: 589
diff changeset
   208
};
2954744d7bba 6703890: Compressed Oops: add LoadNKlass node to generate narrow oops (32-bits) compare instructions
kvn
parents: 589
diff changeset
   209
2954744d7bba 6703890: Compressed Oops: add LoadNKlass node to generate narrow oops (32-bits) compare instructions
kvn
parents: 589
diff changeset
   210
//------------------------------ConstraintCastNode-----------------------------
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   211
// cast to a different range
489c9b5090e2 Initial load
duke
parents:
diff changeset
   212
class ConstraintCastNode: public TypeNode {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   213
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   214
  ConstraintCastNode (Node *n, const Type *t ): TypeNode(t,2) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   215
    init_class_id(Class_ConstraintCast);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   216
    init_req(1, n);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   217
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   218
  virtual Node *Identity( PhaseTransform *phase );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   219
  virtual const Type *Value( PhaseTransform *phase ) const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   220
  virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   221
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   222
  virtual uint ideal_reg() const = 0;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   223
  virtual Node *Ideal_DU_postCCP( PhaseCCP * );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   224
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   225
489c9b5090e2 Initial load
duke
parents:
diff changeset
   226
//------------------------------CastIINode-------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   227
// cast integer to integer (different range)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   228
class CastIINode: public ConstraintCastNode {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   229
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   230
  CastIINode (Node *n, const Type *t ): ConstraintCastNode(n,t) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   231
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   232
  virtual uint ideal_reg() const { return Op_RegI; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   233
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   234
489c9b5090e2 Initial load
duke
parents:
diff changeset
   235
//------------------------------CastPPNode-------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   236
// cast pointer to pointer (different type)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   237
class CastPPNode: public ConstraintCastNode {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   238
public:
373
427fb4ca6a1e 6625997: CastPP, CheckCastPP and Proj nodes are not dead loop safe
kvn
parents: 371
diff changeset
   239
  CastPPNode (Node *n, const Type *t ): ConstraintCastNode(n, t) {}
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   240
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   241
  virtual uint ideal_reg() const { return Op_RegP; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   242
  virtual Node *Ideal_DU_postCCP( PhaseCCP * );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   243
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   244
489c9b5090e2 Initial load
duke
parents:
diff changeset
   245
//------------------------------CheckCastPPNode--------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   246
// for _checkcast, cast pointer to pointer (different type), without JOIN,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   247
class CheckCastPPNode: public TypeNode {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   248
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   249
  CheckCastPPNode( Node *c, Node *n, const Type *t ) : TypeNode(t,2) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   250
    init_class_id(Class_CheckCastPP);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   251
    init_req(0, c);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   252
    init_req(1, n);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   253
  }
373
427fb4ca6a1e 6625997: CastPP, CheckCastPP and Proj nodes are not dead loop safe
kvn
parents: 371
diff changeset
   254
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   255
  virtual Node *Identity( PhaseTransform *phase );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   256
  virtual const Type *Value( PhaseTransform *phase ) const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   257
  virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   258
  virtual int   Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   259
  virtual uint  ideal_reg() const { return Op_RegP; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   260
  // No longer remove CheckCast after CCP as it gives me a place to hang
489c9b5090e2 Initial load
duke
parents:
diff changeset
   261
  // the proper address type - which is required to compute anti-deps.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   262
  //virtual Node *Ideal_DU_postCCP( PhaseCCP * );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   263
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   264
360
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   265
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   266
//------------------------------EncodeP--------------------------------
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   267
// Encodes an oop pointers into its compressed form
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   268
// Takes an extra argument which is the real heap base as a long which
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   269
// may be useful for code generation in the backend.
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   270
class EncodePNode : public TypeNode {
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   271
 public:
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   272
  EncodePNode(Node* value, const Type* type):
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   273
    TypeNode(type, 2) {
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   274
    init_req(0, NULL);
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   275
    init_req(1, value);
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   276
  }
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   277
  virtual int Opcode() const;
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   278
  virtual Node *Identity( PhaseTransform *phase );
371
1aacedc9db7c 6689060: Escape Analysis does not work with Compressed Oops
kvn
parents: 360
diff changeset
   279
  virtual const Type *Value( PhaseTransform *phase ) const;
360
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   280
  virtual uint  ideal_reg() const { return Op_RegN; }
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   281
590
2954744d7bba 6703890: Compressed Oops: add LoadNKlass node to generate narrow oops (32-bits) compare instructions
kvn
parents: 589
diff changeset
   282
  static Node* encode(PhaseTransform* phase, Node* value);
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents: 373
diff changeset
   283
  virtual Node *Ideal_DU_postCCP( PhaseCCP *ccp );
360
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   284
};
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   285
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   286
//------------------------------DecodeN--------------------------------
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   287
// Converts a narrow oop into a real oop ptr.
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   288
// Takes an extra argument which is the real heap base as a long which
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   289
// may be useful for code generation in the backend.
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   290
class DecodeNNode : public TypeNode {
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   291
 public:
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   292
  DecodeNNode(Node* value, const Type* type):
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   293
    TypeNode(type, 2) {
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   294
    init_req(0, NULL);
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   295
    init_req(1, value);
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   296
  }
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   297
  virtual int Opcode() const;
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   298
  virtual Node *Identity( PhaseTransform *phase );
371
1aacedc9db7c 6689060: Escape Analysis does not work with Compressed Oops
kvn
parents: 360
diff changeset
   299
  virtual const Type *Value( PhaseTransform *phase ) const;
360
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   300
  virtual uint  ideal_reg() const { return Op_RegP; }
371
1aacedc9db7c 6689060: Escape Analysis does not work with Compressed Oops
kvn
parents: 360
diff changeset
   301
590
2954744d7bba 6703890: Compressed Oops: add LoadNKlass node to generate narrow oops (32-bits) compare instructions
kvn
parents: 589
diff changeset
   302
  static Node* decode(PhaseTransform* phase, Node* value);
360
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   303
};
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   304
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   305
//------------------------------Conv2BNode-------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   306
// Convert int/pointer to a Boolean.  Map zero to zero, all else to 1.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   307
class Conv2BNode : public Node {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   308
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   309
  Conv2BNode( Node *i ) : Node(0,i) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   310
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   311
  virtual const Type *bottom_type() const { return TypeInt::BOOL; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   312
  virtual Node *Identity( PhaseTransform *phase );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   313
  virtual const Type *Value( PhaseTransform *phase ) const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   314
  virtual uint  ideal_reg() const { return Op_RegI; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   315
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   316
489c9b5090e2 Initial load
duke
parents:
diff changeset
   317
// The conversions operations are all Alpha sorted.  Please keep it that way!
489c9b5090e2 Initial load
duke
parents:
diff changeset
   318
//------------------------------ConvD2FNode------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   319
// Convert double to float
489c9b5090e2 Initial load
duke
parents:
diff changeset
   320
class ConvD2FNode : public Node {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   321
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   322
  ConvD2FNode( Node *in1 ) : Node(0,in1) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   323
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   324
  virtual const Type *bottom_type() const { return Type::FLOAT; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   325
  virtual const Type *Value( PhaseTransform *phase ) const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   326
  virtual Node *Identity( PhaseTransform *phase );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   327
  virtual uint  ideal_reg() const { return Op_RegF; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   328
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   329
489c9b5090e2 Initial load
duke
parents:
diff changeset
   330
//------------------------------ConvD2INode------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   331
// Convert Double to Integer
489c9b5090e2 Initial load
duke
parents:
diff changeset
   332
class ConvD2INode : public Node {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   333
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   334
  ConvD2INode( Node *in1 ) : Node(0,in1) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   335
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   336
  virtual const Type *bottom_type() const { return TypeInt::INT; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   337
  virtual const Type *Value( PhaseTransform *phase ) const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   338
  virtual Node *Identity( PhaseTransform *phase );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   339
  virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   340
  virtual uint  ideal_reg() const { return Op_RegI; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   341
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   342
489c9b5090e2 Initial load
duke
parents:
diff changeset
   343
//------------------------------ConvD2LNode------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   344
// Convert Double to Long
489c9b5090e2 Initial load
duke
parents:
diff changeset
   345
class ConvD2LNode : public Node {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   346
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   347
  ConvD2LNode( Node *dbl ) : Node(0,dbl) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   348
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   349
  virtual const Type *bottom_type() const { return TypeLong::LONG; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   350
  virtual const Type *Value( PhaseTransform *phase ) const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   351
  virtual Node *Identity( PhaseTransform *phase );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   352
  virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   353
  virtual uint ideal_reg() const { return Op_RegL; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   354
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   355
489c9b5090e2 Initial load
duke
parents:
diff changeset
   356
//------------------------------ConvF2DNode------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   357
// Convert Float to a Double.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   358
class ConvF2DNode : public Node {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   359
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   360
  ConvF2DNode( Node *in1 ) : Node(0,in1) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   361
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   362
  virtual const Type *bottom_type() const { return Type::DOUBLE; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   363
  virtual const Type *Value( PhaseTransform *phase ) const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   364
  virtual uint  ideal_reg() const { return Op_RegD; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   365
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   366
489c9b5090e2 Initial load
duke
parents:
diff changeset
   367
//------------------------------ConvF2INode------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   368
// Convert float to integer
489c9b5090e2 Initial load
duke
parents:
diff changeset
   369
class ConvF2INode : public Node {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   370
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   371
  ConvF2INode( Node *in1 ) : Node(0,in1) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   372
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   373
  virtual const Type *bottom_type() const { return TypeInt::INT; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   374
  virtual const Type *Value( PhaseTransform *phase ) const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   375
  virtual Node *Identity( PhaseTransform *phase );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   376
  virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   377
  virtual uint  ideal_reg() const { return Op_RegI; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   378
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   379
489c9b5090e2 Initial load
duke
parents:
diff changeset
   380
//------------------------------ConvF2LNode------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   381
// Convert float to long
489c9b5090e2 Initial load
duke
parents:
diff changeset
   382
class ConvF2LNode : public Node {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   383
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   384
  ConvF2LNode( Node *in1 ) : Node(0,in1) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   385
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   386
  virtual const Type *bottom_type() const { return TypeLong::LONG; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   387
  virtual const Type *Value( PhaseTransform *phase ) const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   388
  virtual Node *Identity( PhaseTransform *phase );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   389
  virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   390
  virtual uint  ideal_reg() const { return Op_RegL; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   391
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   392
489c9b5090e2 Initial load
duke
parents:
diff changeset
   393
//------------------------------ConvI2DNode------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   394
// Convert Integer to Double
489c9b5090e2 Initial load
duke
parents:
diff changeset
   395
class ConvI2DNode : public Node {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   396
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   397
  ConvI2DNode( Node *in1 ) : Node(0,in1) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   398
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   399
  virtual const Type *bottom_type() const { return Type::DOUBLE; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   400
  virtual const Type *Value( PhaseTransform *phase ) const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   401
  virtual uint  ideal_reg() const { return Op_RegD; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   402
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   403
489c9b5090e2 Initial load
duke
parents:
diff changeset
   404
//------------------------------ConvI2FNode------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   405
// Convert Integer to Float
489c9b5090e2 Initial load
duke
parents:
diff changeset
   406
class ConvI2FNode : public Node {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   407
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   408
  ConvI2FNode( Node *in1 ) : Node(0,in1) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   409
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   410
  virtual const Type *bottom_type() const { return Type::FLOAT; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   411
  virtual const Type *Value( PhaseTransform *phase ) const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   412
  virtual Node *Identity( PhaseTransform *phase );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   413
  virtual uint  ideal_reg() const { return Op_RegF; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   414
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   415
489c9b5090e2 Initial load
duke
parents:
diff changeset
   416
//------------------------------ConvI2LNode------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   417
// Convert integer to long
489c9b5090e2 Initial load
duke
parents:
diff changeset
   418
class ConvI2LNode : public TypeNode {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   419
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   420
  ConvI2LNode(Node *in1, const TypeLong* t = TypeLong::INT)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   421
    : TypeNode(t, 2)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   422
  { init_req(1, in1); }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   423
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   424
  virtual const Type *Value( PhaseTransform *phase ) const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   425
  virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   426
  virtual uint  ideal_reg() const { return Op_RegL; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   427
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   428
489c9b5090e2 Initial load
duke
parents:
diff changeset
   429
//------------------------------ConvL2DNode------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   430
// Convert Long to Double
489c9b5090e2 Initial load
duke
parents:
diff changeset
   431
class ConvL2DNode : public Node {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   432
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   433
  ConvL2DNode( Node *in1 ) : Node(0,in1) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   434
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   435
  virtual const Type *bottom_type() const { return Type::DOUBLE; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   436
  virtual const Type *Value( PhaseTransform *phase ) const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   437
  virtual uint ideal_reg() const { return Op_RegD; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   438
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   439
489c9b5090e2 Initial load
duke
parents:
diff changeset
   440
//------------------------------ConvL2FNode------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   441
// Convert Long to Float
489c9b5090e2 Initial load
duke
parents:
diff changeset
   442
class ConvL2FNode : public Node {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   443
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   444
  ConvL2FNode( Node *in1 ) : Node(0,in1) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   445
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   446
  virtual const Type *bottom_type() const { return Type::FLOAT; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   447
  virtual const Type *Value( PhaseTransform *phase ) const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   448
  virtual uint  ideal_reg() const { return Op_RegF; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   449
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   450
489c9b5090e2 Initial load
duke
parents:
diff changeset
   451
//------------------------------ConvL2INode------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   452
// Convert long to integer
489c9b5090e2 Initial load
duke
parents:
diff changeset
   453
class ConvL2INode : public Node {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   454
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   455
  ConvL2INode( Node *in1 ) : Node(0,in1) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   456
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   457
  virtual const Type *bottom_type() const { return TypeInt::INT; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   458
  virtual Node *Identity( PhaseTransform *phase );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   459
  virtual const Type *Value( PhaseTransform *phase ) const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   460
  virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   461
  virtual uint  ideal_reg() const { return Op_RegI; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   462
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   463
489c9b5090e2 Initial load
duke
parents:
diff changeset
   464
//------------------------------CastX2PNode-------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   465
// convert a machine-pointer-sized integer to a raw pointer
489c9b5090e2 Initial load
duke
parents:
diff changeset
   466
class CastX2PNode : public Node {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   467
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   468
  CastX2PNode( Node *n ) : Node(NULL, n) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   469
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   470
  virtual const Type *Value( PhaseTransform *phase ) const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   471
  virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   472
  virtual Node *Identity( PhaseTransform *phase );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   473
  virtual uint ideal_reg() const { return Op_RegP; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   474
  virtual const Type *bottom_type() const { return TypeRawPtr::BOTTOM; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   475
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   476
489c9b5090e2 Initial load
duke
parents:
diff changeset
   477
//------------------------------CastP2XNode-------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   478
// Used in both 32-bit and 64-bit land.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   479
// Used for card-marks and unsafe pointer math.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   480
class CastP2XNode : public Node {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   481
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   482
  CastP2XNode( Node *ctrl, Node *n ) : Node(ctrl, n) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   483
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   484
  virtual const Type *Value( PhaseTransform *phase ) const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   485
  virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   486
  virtual Node *Identity( PhaseTransform *phase );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   487
  virtual uint ideal_reg() const { return Op_RegX; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   488
  virtual const Type *bottom_type() const { return TypeX_X; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   489
  // Return false to keep node from moving away from an associated card mark.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   490
  virtual bool depends_only_on_test() const { return false; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   491
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   492
489c9b5090e2 Initial load
duke
parents:
diff changeset
   493
//------------------------------MemMoveNode------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   494
// Memory to memory move.  Inserted very late, after allocation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   495
class MemMoveNode : public Node {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   496
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   497
  MemMoveNode( Node *dst, Node *src ) : Node(0,dst,src) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   498
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   499
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   500
489c9b5090e2 Initial load
duke
parents:
diff changeset
   501
//------------------------------ThreadLocalNode--------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   502
// Ideal Node which returns the base of ThreadLocalStorage.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   503
class ThreadLocalNode : public Node {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   504
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   505
  ThreadLocalNode( ) : Node((Node*)Compile::current()->root()) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   506
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   507
  virtual const Type *bottom_type() const { return TypeRawPtr::BOTTOM;}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   508
  virtual uint ideal_reg() const { return Op_RegP; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   509
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   510
489c9b5090e2 Initial load
duke
parents:
diff changeset
   511
//------------------------------LoadReturnPCNode-------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   512
class LoadReturnPCNode: public Node {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   513
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   514
  LoadReturnPCNode(Node *c) : Node(c) { }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   515
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   516
  virtual uint ideal_reg() const { return Op_RegP; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   517
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   518
489c9b5090e2 Initial load
duke
parents:
diff changeset
   519
489c9b5090e2 Initial load
duke
parents:
diff changeset
   520
//-----------------------------RoundFloatNode----------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   521
class RoundFloatNode: public Node {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   522
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   523
  RoundFloatNode(Node* c, Node *in1): Node(c, in1) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   524
  virtual int   Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   525
  virtual const Type *bottom_type() const { return Type::FLOAT; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   526
  virtual uint  ideal_reg() const { return Op_RegF; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   527
  virtual Node *Identity( PhaseTransform *phase );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   528
  virtual const Type *Value( PhaseTransform *phase ) const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   529
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   530
489c9b5090e2 Initial load
duke
parents:
diff changeset
   531
489c9b5090e2 Initial load
duke
parents:
diff changeset
   532
//-----------------------------RoundDoubleNode---------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   533
class RoundDoubleNode: public Node {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   534
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   535
  RoundDoubleNode(Node* c, Node *in1): Node(c, in1) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   536
  virtual int   Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   537
  virtual const Type *bottom_type() const { return Type::DOUBLE; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   538
  virtual uint  ideal_reg() const { return Op_RegD; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   539
  virtual Node *Identity( PhaseTransform *phase );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   540
  virtual const Type *Value( PhaseTransform *phase ) const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   541
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   542
489c9b5090e2 Initial load
duke
parents:
diff changeset
   543
//------------------------------Opaque1Node------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   544
// A node to prevent unwanted optimizations.  Allows constant folding.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   545
// Stops value-numbering, Ideal calls or Identity functions.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   546
class Opaque1Node : public Node {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   547
  virtual uint hash() const ;                  // { return NO_HASH; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   548
  virtual uint cmp( const Node &n ) const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   549
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   550
  Opaque1Node( Node *n ) : Node(0,n) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   551
  // Special version for the pre-loop to hold the original loop limit
489c9b5090e2 Initial load
duke
parents:
diff changeset
   552
  // which is consumed by range check elimination.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   553
  Opaque1Node( Node *n, Node* orig_limit ) : Node(0,n,orig_limit) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   554
  Node* original_loop_limit() { return req()==3 ? in(2) : NULL; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   555
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   556
  virtual const Type *bottom_type() const { return TypeInt::INT; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   557
  virtual Node *Identity( PhaseTransform *phase );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   558
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   559
489c9b5090e2 Initial load
duke
parents:
diff changeset
   560
//------------------------------Opaque2Node------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   561
// A node to prevent unwanted optimizations.  Allows constant folding.  Stops
489c9b5090e2 Initial load
duke
parents:
diff changeset
   562
// value-numbering, most Ideal calls or Identity functions.  This Node is
489c9b5090e2 Initial load
duke
parents:
diff changeset
   563
// specifically designed to prevent the pre-increment value of a loop trip
489c9b5090e2 Initial load
duke
parents:
diff changeset
   564
// counter from being live out of the bottom of the loop (hence causing the
489c9b5090e2 Initial load
duke
parents:
diff changeset
   565
// pre- and post-increment values both being live and thus requiring an extra
489c9b5090e2 Initial load
duke
parents:
diff changeset
   566
// temp register and an extra move).  If we "accidentally" optimize through
489c9b5090e2 Initial load
duke
parents:
diff changeset
   567
// this kind of a Node, we'll get slightly pessimal, but correct, code.  Thus
489c9b5090e2 Initial load
duke
parents:
diff changeset
   568
// it's OK to be slightly sloppy on optimizations here.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   569
class Opaque2Node : public Node {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   570
  virtual uint hash() const ;                  // { return NO_HASH; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   571
  virtual uint cmp( const Node &n ) const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   572
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   573
  Opaque2Node( Node *n ) : Node(0,n) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   574
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   575
  virtual const Type *bottom_type() const { return TypeInt::INT; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   576
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   577
489c9b5090e2 Initial load
duke
parents:
diff changeset
   578
//----------------------PartialSubtypeCheckNode--------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   579
// The 2nd slow-half of a subtype check.  Scan the subklass's 2ndary superklass
489c9b5090e2 Initial load
duke
parents:
diff changeset
   580
// array for an instance of the superklass.  Set a hidden internal cache on a
489c9b5090e2 Initial load
duke
parents:
diff changeset
   581
// hit (cache is checked with exposed code in gen_subtype_check()).  Return
489c9b5090e2 Initial load
duke
parents:
diff changeset
   582
// not zero for a miss or zero for a hit.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   583
class PartialSubtypeCheckNode : public Node {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   584
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   585
  PartialSubtypeCheckNode(Node* c, Node* sub, Node* super) : Node(c,sub,super) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   586
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   587
  virtual const Type *bottom_type() const { return TypeRawPtr::BOTTOM; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   588
  virtual uint ideal_reg() const { return Op_RegP; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   589
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   590
489c9b5090e2 Initial load
duke
parents:
diff changeset
   591
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   592
class MoveI2FNode : public Node {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   593
 public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   594
  MoveI2FNode( Node *value ) : Node(0,value) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   595
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   596
  virtual const Type *bottom_type() const { return Type::FLOAT; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   597
  virtual uint ideal_reg() const { return Op_RegF; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   598
  virtual const Type* Value( PhaseTransform *phase ) const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   599
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   600
489c9b5090e2 Initial load
duke
parents:
diff changeset
   601
class MoveL2DNode : public Node {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   602
 public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   603
  MoveL2DNode( Node *value ) : Node(0,value) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   604
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   605
  virtual const Type *bottom_type() const { return Type::DOUBLE; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   606
  virtual uint ideal_reg() const { return Op_RegD; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   607
  virtual const Type* Value( PhaseTransform *phase ) const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   608
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   609
489c9b5090e2 Initial load
duke
parents:
diff changeset
   610
class MoveF2INode : public Node {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   611
 public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   612
  MoveF2INode( Node *value ) : Node(0,value) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   613
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   614
  virtual const Type *bottom_type() const { return TypeInt::INT; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   615
  virtual uint ideal_reg() const { return Op_RegI; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   616
  virtual const Type* Value( PhaseTransform *phase ) const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   617
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   618
489c9b5090e2 Initial load
duke
parents:
diff changeset
   619
class MoveD2LNode : public Node {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   620
 public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   621
  MoveD2LNode( Node *value ) : Node(0,value) {}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   622
  virtual int Opcode() const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   623
  virtual const Type *bottom_type() const { return TypeLong::LONG; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   624
  virtual uint ideal_reg() const { return Op_RegL; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   625
  virtual const Type* Value( PhaseTransform *phase ) const;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   626
};