annotate src/share/vm/opto/connode.hpp @ 20680:5b8e0f84f00f

8054478: C2: Incorrectly compiled char[] array access crashes JVM Summary: dead backbranch in main loop results in erroneous array access Reviewed-by: kvn, iveresov
author roland
date Mon, 01 Dec 2014 22:27:00 +0100
parents 606acabe7b5c
children 7848fc12602b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 /*
6842
b9a9ed0f8eeb 7197424: update copyright year to match last edit in jdk8 hotspot repository
mikael
parents: 6804
diff changeset
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
4 *
a61af66fc99e Initial load
duke
parents:
diff changeset
5 * This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
6 * under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
7 * published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
8 *
a61af66fc99e Initial load
duke
parents:
diff changeset
9 * This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
12 * version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
13 * accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
14 *
a61af66fc99e Initial load
duke
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
16 * 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
18 *
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 775
diff changeset
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 775
diff changeset
20 * or visit www.oracle.com if you need additional information or have any
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 775
diff changeset
21 * questions.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
22 *
a61af66fc99e Initial load
duke
parents:
diff changeset
23 */
a61af66fc99e Initial load
duke
parents:
diff changeset
24
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
25 #ifndef SHARE_VM_OPTO_CONNODE_HPP
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
26 #define SHARE_VM_OPTO_CONNODE_HPP
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
27
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
28 #include "opto/node.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
29 #include "opto/opcodes.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
30 #include "opto/type.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
31
0
a61af66fc99e Initial load
duke
parents:
diff changeset
32 class PhaseTransform;
a61af66fc99e Initial load
duke
parents:
diff changeset
33 class MachNode;
a61af66fc99e Initial load
duke
parents:
diff changeset
34
a61af66fc99e Initial load
duke
parents:
diff changeset
35 //------------------------------ConNode----------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
36 // Simple constants
a61af66fc99e Initial load
duke
parents:
diff changeset
37 class ConNode : public TypeNode {
a61af66fc99e Initial load
duke
parents:
diff changeset
38 public:
17671
de95063c0e34 8027422: assert(_gvn.type(obj)->higher_equal(tjp)) failed: cast_up is no longer needed
roland
parents: 6853
diff changeset
39 ConNode( const Type *t ) : TypeNode(t->remove_speculative(),1) {
0
a61af66fc99e Initial load
duke
parents:
diff changeset
40 init_req(0, (Node*)Compile::current()->root());
a61af66fc99e Initial load
duke
parents:
diff changeset
41 init_flags(Flag_is_Con);
a61af66fc99e Initial load
duke
parents:
diff changeset
42 }
a61af66fc99e Initial load
duke
parents:
diff changeset
43 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
44 virtual uint hash() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
45 virtual const RegMask &out_RegMask() const { return RegMask::Empty; }
a61af66fc99e Initial load
duke
parents:
diff changeset
46 virtual const RegMask &in_RegMask(uint) const { return RegMask::Empty; }
a61af66fc99e Initial load
duke
parents:
diff changeset
47
a61af66fc99e Initial load
duke
parents:
diff changeset
48 // Polymorphic factory method:
a61af66fc99e Initial load
duke
parents:
diff changeset
49 static ConNode* make( Compile* C, const Type *t );
a61af66fc99e Initial load
duke
parents:
diff changeset
50 };
a61af66fc99e Initial load
duke
parents:
diff changeset
51
a61af66fc99e Initial load
duke
parents:
diff changeset
52 //------------------------------ConINode---------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
53 // Simple integer constants
a61af66fc99e Initial load
duke
parents:
diff changeset
54 class ConINode : public ConNode {
a61af66fc99e Initial load
duke
parents:
diff changeset
55 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
56 ConINode( const TypeInt *t ) : ConNode(t) {}
a61af66fc99e Initial load
duke
parents:
diff changeset
57 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
58
a61af66fc99e Initial load
duke
parents:
diff changeset
59 // Factory method:
a61af66fc99e Initial load
duke
parents:
diff changeset
60 static ConINode* make( Compile* C, int con ) {
6804
e626685e9f6c 7193318: C2: remove number of inputs requirement from Node's new operator
kvn
parents: 3899
diff changeset
61 return new (C) ConINode( TypeInt::make(con) );
0
a61af66fc99e Initial load
duke
parents:
diff changeset
62 }
a61af66fc99e Initial load
duke
parents:
diff changeset
63
a61af66fc99e Initial load
duke
parents:
diff changeset
64 };
a61af66fc99e Initial load
duke
parents:
diff changeset
65
a61af66fc99e Initial load
duke
parents:
diff changeset
66 //------------------------------ConPNode---------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
67 // Simple pointer constants
a61af66fc99e Initial load
duke
parents:
diff changeset
68 class ConPNode : public ConNode {
a61af66fc99e Initial load
duke
parents:
diff changeset
69 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
70 ConPNode( const TypePtr *t ) : ConNode(t) {}
a61af66fc99e Initial load
duke
parents:
diff changeset
71 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
72
a61af66fc99e Initial load
duke
parents:
diff changeset
73 // Factory methods:
a61af66fc99e Initial load
duke
parents:
diff changeset
74 static ConPNode* make( Compile *C ,address con ) {
a61af66fc99e Initial load
duke
parents:
diff changeset
75 if (con == NULL)
6804
e626685e9f6c 7193318: C2: remove number of inputs requirement from Node's new operator
kvn
parents: 3899
diff changeset
76 return new (C) ConPNode( TypePtr::NULL_PTR ) ;
0
a61af66fc99e Initial load
duke
parents:
diff changeset
77 else
6804
e626685e9f6c 7193318: C2: remove number of inputs requirement from Node's new operator
kvn
parents: 3899
diff changeset
78 return new (C) ConPNode( TypeRawPtr::make(con) );
0
a61af66fc99e Initial load
duke
parents:
diff changeset
79 }
a61af66fc99e Initial load
duke
parents:
diff changeset
80 };
a61af66fc99e Initial load
duke
parents:
diff changeset
81
a61af66fc99e Initial load
duke
parents:
diff changeset
82
113
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
83 //------------------------------ConNNode--------------------------------------
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
84 // Simple narrow oop constants
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
85 class ConNNode : public ConNode {
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
86 public:
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
87 ConNNode( const TypeNarrowOop *t ) : ConNode(t) {}
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
88 virtual int Opcode() const;
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
89 };
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
90
6848
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
91 //------------------------------ConNKlassNode---------------------------------
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
92 // Simple narrow klass constants
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
93 class ConNKlassNode : public ConNode {
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
94 public:
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
95 ConNKlassNode( const TypeNarrowKlass *t ) : ConNode(t) {}
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
96 virtual int Opcode() const;
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
97 };
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
98
113
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
99
0
a61af66fc99e Initial load
duke
parents:
diff changeset
100 //------------------------------ConLNode---------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
101 // Simple long constants
a61af66fc99e Initial load
duke
parents:
diff changeset
102 class ConLNode : public ConNode {
a61af66fc99e Initial load
duke
parents:
diff changeset
103 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
104 ConLNode( const TypeLong *t ) : ConNode(t) {}
a61af66fc99e Initial load
duke
parents:
diff changeset
105 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
106
a61af66fc99e Initial load
duke
parents:
diff changeset
107 // Factory method:
a61af66fc99e Initial load
duke
parents:
diff changeset
108 static ConLNode* make( Compile *C ,jlong con ) {
6804
e626685e9f6c 7193318: C2: remove number of inputs requirement from Node's new operator
kvn
parents: 3899
diff changeset
109 return new (C) ConLNode( TypeLong::make(con) );
0
a61af66fc99e Initial load
duke
parents:
diff changeset
110 }
a61af66fc99e Initial load
duke
parents:
diff changeset
111
a61af66fc99e Initial load
duke
parents:
diff changeset
112 };
a61af66fc99e Initial load
duke
parents:
diff changeset
113
a61af66fc99e Initial load
duke
parents:
diff changeset
114 //------------------------------ConFNode---------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
115 // Simple float constants
a61af66fc99e Initial load
duke
parents:
diff changeset
116 class ConFNode : public ConNode {
a61af66fc99e Initial load
duke
parents:
diff changeset
117 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
118 ConFNode( const TypeF *t ) : ConNode(t) {}
a61af66fc99e Initial load
duke
parents:
diff changeset
119 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
120
a61af66fc99e Initial load
duke
parents:
diff changeset
121 // Factory method:
a61af66fc99e Initial load
duke
parents:
diff changeset
122 static ConFNode* make( Compile *C, float con ) {
6804
e626685e9f6c 7193318: C2: remove number of inputs requirement from Node's new operator
kvn
parents: 3899
diff changeset
123 return new (C) ConFNode( TypeF::make(con) );
0
a61af66fc99e Initial load
duke
parents:
diff changeset
124 }
a61af66fc99e Initial load
duke
parents:
diff changeset
125
a61af66fc99e Initial load
duke
parents:
diff changeset
126 };
a61af66fc99e Initial load
duke
parents:
diff changeset
127
a61af66fc99e Initial load
duke
parents:
diff changeset
128 //------------------------------ConDNode---------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
129 // Simple double constants
a61af66fc99e Initial load
duke
parents:
diff changeset
130 class ConDNode : public ConNode {
a61af66fc99e Initial load
duke
parents:
diff changeset
131 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
132 ConDNode( const TypeD *t ) : ConNode(t) {}
a61af66fc99e Initial load
duke
parents:
diff changeset
133 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
134
a61af66fc99e Initial load
duke
parents:
diff changeset
135 // Factory method:
a61af66fc99e Initial load
duke
parents:
diff changeset
136 static ConDNode* make( Compile *C, double con ) {
6804
e626685e9f6c 7193318: C2: remove number of inputs requirement from Node's new operator
kvn
parents: 3899
diff changeset
137 return new (C) ConDNode( TypeD::make(con) );
0
a61af66fc99e Initial load
duke
parents:
diff changeset
138 }
a61af66fc99e Initial load
duke
parents:
diff changeset
139
a61af66fc99e Initial load
duke
parents:
diff changeset
140 };
a61af66fc99e Initial load
duke
parents:
diff changeset
141
a61af66fc99e Initial load
duke
parents:
diff changeset
142 //------------------------------BinaryNode-------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
143 // Place holder for the 2 conditional inputs to a CMove. CMove needs 4
a61af66fc99e Initial load
duke
parents:
diff changeset
144 // inputs: the Bool (for the lt/gt/eq/ne bits), the flags (result of some
a61af66fc99e Initial load
duke
parents:
diff changeset
145 // compare), and the 2 values to select between. The Matcher requires a
a61af66fc99e Initial load
duke
parents:
diff changeset
146 // binary tree so we break it down like this:
a61af66fc99e Initial load
duke
parents:
diff changeset
147 // (CMove (Binary bol cmp) (Binary src1 src2))
a61af66fc99e Initial load
duke
parents:
diff changeset
148 class BinaryNode : public Node {
a61af66fc99e Initial load
duke
parents:
diff changeset
149 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
150 BinaryNode( Node *n1, Node *n2 ) : Node(0,n1,n2) { }
a61af66fc99e Initial load
duke
parents:
diff changeset
151 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
152 virtual uint ideal_reg() const { return 0; }
a61af66fc99e Initial load
duke
parents:
diff changeset
153 };
a61af66fc99e Initial load
duke
parents:
diff changeset
154
a61af66fc99e Initial load
duke
parents:
diff changeset
155 //------------------------------CMoveNode--------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
156 // Conditional move
a61af66fc99e Initial load
duke
parents:
diff changeset
157 class CMoveNode : public TypeNode {
a61af66fc99e Initial load
duke
parents:
diff changeset
158 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
159 enum { Control, // When is it safe to do this cmove?
a61af66fc99e Initial load
duke
parents:
diff changeset
160 Condition, // Condition controlling the cmove
a61af66fc99e Initial load
duke
parents:
diff changeset
161 IfFalse, // Value if condition is false
a61af66fc99e Initial load
duke
parents:
diff changeset
162 IfTrue }; // Value if condition is true
a61af66fc99e Initial load
duke
parents:
diff changeset
163 CMoveNode( Node *bol, Node *left, Node *right, const Type *t ) : TypeNode(t,4)
a61af66fc99e Initial load
duke
parents:
diff changeset
164 {
a61af66fc99e Initial load
duke
parents:
diff changeset
165 init_class_id(Class_CMove);
a61af66fc99e Initial load
duke
parents:
diff changeset
166 // all inputs are nullified in Node::Node(int)
a61af66fc99e Initial load
duke
parents:
diff changeset
167 // init_req(Control,NULL);
a61af66fc99e Initial load
duke
parents:
diff changeset
168 init_req(Condition,bol);
a61af66fc99e Initial load
duke
parents:
diff changeset
169 init_req(IfFalse,left);
a61af66fc99e Initial load
duke
parents:
diff changeset
170 init_req(IfTrue,right);
a61af66fc99e Initial load
duke
parents:
diff changeset
171 }
a61af66fc99e Initial load
duke
parents:
diff changeset
172 virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
a61af66fc99e Initial load
duke
parents:
diff changeset
173 virtual const Type *Value( PhaseTransform *phase ) const;
a61af66fc99e Initial load
duke
parents:
diff changeset
174 virtual Node *Identity( PhaseTransform *phase );
a61af66fc99e Initial load
duke
parents:
diff changeset
175 static CMoveNode *make( Compile *C, Node *c, Node *bol, Node *left, Node *right, const Type *t );
a61af66fc99e Initial load
duke
parents:
diff changeset
176 // Helper function to spot cmove graph shapes
a61af66fc99e Initial load
duke
parents:
diff changeset
177 static Node *is_cmove_id( PhaseTransform *phase, Node *cmp, Node *t, Node *f, BoolNode *b );
a61af66fc99e Initial load
duke
parents:
diff changeset
178 };
a61af66fc99e Initial load
duke
parents:
diff changeset
179
a61af66fc99e Initial load
duke
parents:
diff changeset
180 //------------------------------CMoveDNode-------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
181 class CMoveDNode : public CMoveNode {
a61af66fc99e Initial load
duke
parents:
diff changeset
182 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
183 CMoveDNode( Node *bol, Node *left, Node *right, const Type* t) : CMoveNode(bol,left,right,t){}
a61af66fc99e Initial load
duke
parents:
diff changeset
184 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
185 virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
a61af66fc99e Initial load
duke
parents:
diff changeset
186 };
a61af66fc99e Initial load
duke
parents:
diff changeset
187
a61af66fc99e Initial load
duke
parents:
diff changeset
188 //------------------------------CMoveFNode-------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
189 class CMoveFNode : public CMoveNode {
a61af66fc99e Initial load
duke
parents:
diff changeset
190 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
191 CMoveFNode( Node *bol, Node *left, Node *right, const Type* t ) : CMoveNode(bol,left,right,t) {}
a61af66fc99e Initial load
duke
parents:
diff changeset
192 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
193 virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
a61af66fc99e Initial load
duke
parents:
diff changeset
194 };
a61af66fc99e Initial load
duke
parents:
diff changeset
195
a61af66fc99e Initial load
duke
parents:
diff changeset
196 //------------------------------CMoveINode-------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
197 class CMoveINode : public CMoveNode {
a61af66fc99e Initial load
duke
parents:
diff changeset
198 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
199 CMoveINode( Node *bol, Node *left, Node *right, const TypeInt *ti ) : CMoveNode(bol,left,right,ti){}
a61af66fc99e Initial load
duke
parents:
diff changeset
200 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
201 virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
a61af66fc99e Initial load
duke
parents:
diff changeset
202 };
a61af66fc99e Initial load
duke
parents:
diff changeset
203
a61af66fc99e Initial load
duke
parents:
diff changeset
204 //------------------------------CMoveLNode-------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
205 class CMoveLNode : public CMoveNode {
a61af66fc99e Initial load
duke
parents:
diff changeset
206 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
207 CMoveLNode(Node *bol, Node *left, Node *right, const TypeLong *tl ) : CMoveNode(bol,left,right,tl){}
a61af66fc99e Initial load
duke
parents:
diff changeset
208 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
209 };
a61af66fc99e Initial load
duke
parents:
diff changeset
210
a61af66fc99e Initial load
duke
parents:
diff changeset
211 //------------------------------CMovePNode-------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
212 class CMovePNode : public CMoveNode {
a61af66fc99e Initial load
duke
parents:
diff changeset
213 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
214 CMovePNode( Node *c, Node *bol, Node *left, Node *right, const TypePtr* t ) : CMoveNode(bol,left,right,t) { init_req(Control,c); }
a61af66fc99e Initial load
duke
parents:
diff changeset
215 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
216 };
a61af66fc99e Initial load
duke
parents:
diff changeset
217
164
c436414a719e 6703890: Compressed Oops: add LoadNKlass node to generate narrow oops (32-bits) compare instructions
kvn
parents: 163
diff changeset
218 //------------------------------CMoveNNode-------------------------------------
c436414a719e 6703890: Compressed Oops: add LoadNKlass node to generate narrow oops (32-bits) compare instructions
kvn
parents: 163
diff changeset
219 class CMoveNNode : public CMoveNode {
c436414a719e 6703890: Compressed Oops: add LoadNKlass node to generate narrow oops (32-bits) compare instructions
kvn
parents: 163
diff changeset
220 public:
c436414a719e 6703890: Compressed Oops: add LoadNKlass node to generate narrow oops (32-bits) compare instructions
kvn
parents: 163
diff changeset
221 CMoveNNode( Node *c, Node *bol, Node *left, Node *right, const Type* t ) : CMoveNode(bol,left,right,t) { init_req(Control,c); }
c436414a719e 6703890: Compressed Oops: add LoadNKlass node to generate narrow oops (32-bits) compare instructions
kvn
parents: 163
diff changeset
222 virtual int Opcode() const;
c436414a719e 6703890: Compressed Oops: add LoadNKlass node to generate narrow oops (32-bits) compare instructions
kvn
parents: 163
diff changeset
223 };
c436414a719e 6703890: Compressed Oops: add LoadNKlass node to generate narrow oops (32-bits) compare instructions
kvn
parents: 163
diff changeset
224
c436414a719e 6703890: Compressed Oops: add LoadNKlass node to generate narrow oops (32-bits) compare instructions
kvn
parents: 163
diff changeset
225 //------------------------------ConstraintCastNode-----------------------------
0
a61af66fc99e Initial load
duke
parents:
diff changeset
226 // cast to a different range
a61af66fc99e Initial load
duke
parents:
diff changeset
227 class ConstraintCastNode: public TypeNode {
a61af66fc99e Initial load
duke
parents:
diff changeset
228 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
229 ConstraintCastNode (Node *n, const Type *t ): TypeNode(t,2) {
a61af66fc99e Initial load
duke
parents:
diff changeset
230 init_class_id(Class_ConstraintCast);
a61af66fc99e Initial load
duke
parents:
diff changeset
231 init_req(1, n);
a61af66fc99e Initial load
duke
parents:
diff changeset
232 }
a61af66fc99e Initial load
duke
parents:
diff changeset
233 virtual Node *Identity( PhaseTransform *phase );
a61af66fc99e Initial load
duke
parents:
diff changeset
234 virtual const Type *Value( PhaseTransform *phase ) const;
a61af66fc99e Initial load
duke
parents:
diff changeset
235 virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
a61af66fc99e Initial load
duke
parents:
diff changeset
236 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
237 virtual uint ideal_reg() const = 0;
a61af66fc99e Initial load
duke
parents:
diff changeset
238 virtual Node *Ideal_DU_postCCP( PhaseCCP * );
a61af66fc99e Initial load
duke
parents:
diff changeset
239 };
a61af66fc99e Initial load
duke
parents:
diff changeset
240
a61af66fc99e Initial load
duke
parents:
diff changeset
241 //------------------------------CastIINode-------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
242 // cast integer to integer (different range)
a61af66fc99e Initial load
duke
parents:
diff changeset
243 class CastIINode: public ConstraintCastNode {
20680
5b8e0f84f00f 8054478: C2: Incorrectly compiled char[] array access crashes JVM
roland
parents: 17780
diff changeset
244 private:
5b8e0f84f00f 8054478: C2: Incorrectly compiled char[] array access crashes JVM
roland
parents: 17780
diff changeset
245 // Can this node be removed post CCP or does it carry a required dependency?
5b8e0f84f00f 8054478: C2: Incorrectly compiled char[] array access crashes JVM
roland
parents: 17780
diff changeset
246 const bool _carry_dependency;
5b8e0f84f00f 8054478: C2: Incorrectly compiled char[] array access crashes JVM
roland
parents: 17780
diff changeset
247
5b8e0f84f00f 8054478: C2: Incorrectly compiled char[] array access crashes JVM
roland
parents: 17780
diff changeset
248 protected:
5b8e0f84f00f 8054478: C2: Incorrectly compiled char[] array access crashes JVM
roland
parents: 17780
diff changeset
249 virtual uint cmp( const Node &n ) const;
5b8e0f84f00f 8054478: C2: Incorrectly compiled char[] array access crashes JVM
roland
parents: 17780
diff changeset
250 virtual uint size_of() const;
5b8e0f84f00f 8054478: C2: Incorrectly compiled char[] array access crashes JVM
roland
parents: 17780
diff changeset
251
0
a61af66fc99e Initial load
duke
parents:
diff changeset
252 public:
20680
5b8e0f84f00f 8054478: C2: Incorrectly compiled char[] array access crashes JVM
roland
parents: 17780
diff changeset
253 CastIINode(Node *n, const Type *t, bool carry_dependency = false)
5b8e0f84f00f 8054478: C2: Incorrectly compiled char[] array access crashes JVM
roland
parents: 17780
diff changeset
254 : ConstraintCastNode(n,t), _carry_dependency(carry_dependency) {}
0
a61af66fc99e Initial load
duke
parents:
diff changeset
255 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
256 virtual uint ideal_reg() const { return Op_RegI; }
20680
5b8e0f84f00f 8054478: C2: Incorrectly compiled char[] array access crashes JVM
roland
parents: 17780
diff changeset
257 virtual Node *Identity( PhaseTransform *phase );
5b8e0f84f00f 8054478: C2: Incorrectly compiled char[] array access crashes JVM
roland
parents: 17780
diff changeset
258 virtual const Type *Value( PhaseTransform *phase ) const;
5b8e0f84f00f 8054478: C2: Incorrectly compiled char[] array access crashes JVM
roland
parents: 17780
diff changeset
259 virtual Node *Ideal_DU_postCCP( PhaseCCP * );
5b8e0f84f00f 8054478: C2: Incorrectly compiled char[] array access crashes JVM
roland
parents: 17780
diff changeset
260 #ifndef PRODUCT
5b8e0f84f00f 8054478: C2: Incorrectly compiled char[] array access crashes JVM
roland
parents: 17780
diff changeset
261 virtual void dump_spec(outputStream *st) const;
5b8e0f84f00f 8054478: C2: Incorrectly compiled char[] array access crashes JVM
roland
parents: 17780
diff changeset
262 #endif
0
a61af66fc99e Initial load
duke
parents:
diff changeset
263 };
a61af66fc99e Initial load
duke
parents:
diff changeset
264
a61af66fc99e Initial load
duke
parents:
diff changeset
265 //------------------------------CastPPNode-------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
266 // cast pointer to pointer (different type)
a61af66fc99e Initial load
duke
parents:
diff changeset
267 class CastPPNode: public ConstraintCastNode {
a61af66fc99e Initial load
duke
parents:
diff changeset
268 public:
126
72f4a668df19 6625997: CastPP, CheckCastPP and Proj nodes are not dead loop safe
kvn
parents: 124
diff changeset
269 CastPPNode (Node *n, const Type *t ): ConstraintCastNode(n, t) {}
0
a61af66fc99e Initial load
duke
parents:
diff changeset
270 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
271 virtual uint ideal_reg() const { return Op_RegP; }
a61af66fc99e Initial load
duke
parents:
diff changeset
272 virtual Node *Ideal_DU_postCCP( PhaseCCP * );
a61af66fc99e Initial load
duke
parents:
diff changeset
273 };
a61af66fc99e Initial load
duke
parents:
diff changeset
274
a61af66fc99e Initial load
duke
parents:
diff changeset
275 //------------------------------CheckCastPPNode--------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
276 // for _checkcast, cast pointer to pointer (different type), without JOIN,
a61af66fc99e Initial load
duke
parents:
diff changeset
277 class CheckCastPPNode: public TypeNode {
a61af66fc99e Initial load
duke
parents:
diff changeset
278 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
279 CheckCastPPNode( Node *c, Node *n, const Type *t ) : TypeNode(t,2) {
a61af66fc99e Initial load
duke
parents:
diff changeset
280 init_class_id(Class_CheckCastPP);
a61af66fc99e Initial load
duke
parents:
diff changeset
281 init_req(0, c);
a61af66fc99e Initial load
duke
parents:
diff changeset
282 init_req(1, n);
a61af66fc99e Initial load
duke
parents:
diff changeset
283 }
126
72f4a668df19 6625997: CastPP, CheckCastPP and Proj nodes are not dead loop safe
kvn
parents: 124
diff changeset
284
0
a61af66fc99e Initial load
duke
parents:
diff changeset
285 virtual Node *Identity( PhaseTransform *phase );
a61af66fc99e Initial load
duke
parents:
diff changeset
286 virtual const Type *Value( PhaseTransform *phase ) const;
a61af66fc99e Initial load
duke
parents:
diff changeset
287 virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
a61af66fc99e Initial load
duke
parents:
diff changeset
288 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
289 virtual uint ideal_reg() const { return Op_RegP; }
a61af66fc99e Initial load
duke
parents:
diff changeset
290 // No longer remove CheckCast after CCP as it gives me a place to hang
a61af66fc99e Initial load
duke
parents:
diff changeset
291 // the proper address type - which is required to compute anti-deps.
a61af66fc99e Initial load
duke
parents:
diff changeset
292 //virtual Node *Ideal_DU_postCCP( PhaseCCP * );
a61af66fc99e Initial load
duke
parents:
diff changeset
293 };
a61af66fc99e Initial load
duke
parents:
diff changeset
294
113
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
295
6848
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
296 //------------------------------EncodeNarrowPtr--------------------------------
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
297 class EncodeNarrowPtrNode : public TypeNode {
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
298 protected:
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
299 EncodeNarrowPtrNode(Node* value, const Type* type):
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
300 TypeNode(type, 2) {
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
301 init_class_id(Class_EncodeNarrowPtr);
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
302 init_req(0, NULL);
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
303 init_req(1, value);
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
304 }
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
305 public:
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
306 virtual uint ideal_reg() const { return Op_RegN; }
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
307 virtual Node *Ideal_DU_postCCP( PhaseCCP *ccp );
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
308 };
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
309
113
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
310 //------------------------------EncodeP--------------------------------
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
311 // Encodes an oop pointers into its compressed form
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
312 // Takes an extra argument which is the real heap base as a long which
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
313 // may be useful for code generation in the backend.
6848
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
314 class EncodePNode : public EncodeNarrowPtrNode {
113
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
315 public:
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
316 EncodePNode(Node* value, const Type* type):
6848
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
317 EncodeNarrowPtrNode(value, type) {
168
7793bd37a336 6705887: Compressed Oops: generate x64 addressing and implicit null checks with narrow oops
kvn
parents: 164
diff changeset
318 init_class_id(Class_EncodeP);
113
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
319 }
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
320 virtual int Opcode() const;
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
321 virtual Node *Identity( PhaseTransform *phase );
124
b130b98db9cf 6689060: Escape Analysis does not work with Compressed Oops
kvn
parents: 113
diff changeset
322 virtual const Type *Value( PhaseTransform *phase ) const;
6848
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
323 };
113
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
324
6848
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
325 //------------------------------EncodePKlass--------------------------------
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
326 // Encodes a klass pointer into its compressed form
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
327 // Takes an extra argument which is the real heap base as a long which
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
328 // may be useful for code generation in the backend.
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
329 class EncodePKlassNode : public EncodeNarrowPtrNode {
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
330 public:
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
331 EncodePKlassNode(Node* value, const Type* type):
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
332 EncodeNarrowPtrNode(value, type) {
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
333 init_class_id(Class_EncodePKlass);
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
334 }
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
335 virtual int Opcode() const;
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
336 virtual Node *Identity( PhaseTransform *phase );
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
337 virtual const Type *Value( PhaseTransform *phase ) const;
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
338 };
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
339
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
340 //------------------------------DecodeNarrowPtr--------------------------------
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
341 class DecodeNarrowPtrNode : public TypeNode {
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
342 protected:
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
343 DecodeNarrowPtrNode(Node* value, const Type* type):
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
344 TypeNode(type, 2) {
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
345 init_class_id(Class_DecodeNarrowPtr);
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
346 init_req(0, NULL);
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
347 init_req(1, value);
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
348 }
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
349 public:
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
350 virtual uint ideal_reg() const { return Op_RegP; }
113
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
351 };
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
352
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
353 //------------------------------DecodeN--------------------------------
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
354 // Converts a narrow oop into a real oop ptr.
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
355 // Takes an extra argument which is the real heap base as a long which
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
356 // may be useful for code generation in the backend.
6848
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
357 class DecodeNNode : public DecodeNarrowPtrNode {
113
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
358 public:
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
359 DecodeNNode(Node* value, const Type* type):
6848
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
360 DecodeNarrowPtrNode(value, type) {
168
7793bd37a336 6705887: Compressed Oops: generate x64 addressing and implicit null checks with narrow oops
kvn
parents: 164
diff changeset
361 init_class_id(Class_DecodeN);
113
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
362 }
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
363 virtual int Opcode() const;
124
b130b98db9cf 6689060: Escape Analysis does not work with Compressed Oops
kvn
parents: 113
diff changeset
364 virtual const Type *Value( PhaseTransform *phase ) const;
6848
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
365 virtual Node *Identity( PhaseTransform *phase );
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
366 };
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
367
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
368 //------------------------------DecodeNKlass--------------------------------
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
369 // Converts a narrow klass pointer into a real klass ptr.
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
370 // Takes an extra argument which is the real heap base as a long which
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
371 // may be useful for code generation in the backend.
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
372 class DecodeNKlassNode : public DecodeNarrowPtrNode {
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
373 public:
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
374 DecodeNKlassNode(Node* value, const Type* type):
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
375 DecodeNarrowPtrNode(value, type) {
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
376 init_class_id(Class_DecodeNKlass);
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
377 }
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
378 virtual int Opcode() const;
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
379 virtual const Type *Value( PhaseTransform *phase ) const;
8e47bac5643a 7054512: Compress class pointers after perm gen removal
roland
parents: 6804
diff changeset
380 virtual Node *Identity( PhaseTransform *phase );
113
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
381 };
ba764ed4b6f2 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 0
diff changeset
382
0
a61af66fc99e Initial load
duke
parents:
diff changeset
383 //------------------------------Conv2BNode-------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
384 // Convert int/pointer to a Boolean. Map zero to zero, all else to 1.
a61af66fc99e Initial load
duke
parents:
diff changeset
385 class Conv2BNode : public Node {
a61af66fc99e Initial load
duke
parents:
diff changeset
386 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
387 Conv2BNode( Node *i ) : Node(0,i) {}
a61af66fc99e Initial load
duke
parents:
diff changeset
388 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
389 virtual const Type *bottom_type() const { return TypeInt::BOOL; }
a61af66fc99e Initial load
duke
parents:
diff changeset
390 virtual Node *Identity( PhaseTransform *phase );
a61af66fc99e Initial load
duke
parents:
diff changeset
391 virtual const Type *Value( PhaseTransform *phase ) const;
a61af66fc99e Initial load
duke
parents:
diff changeset
392 virtual uint ideal_reg() const { return Op_RegI; }
a61af66fc99e Initial load
duke
parents:
diff changeset
393 };
a61af66fc99e Initial load
duke
parents:
diff changeset
394
a61af66fc99e Initial load
duke
parents:
diff changeset
395 // The conversions operations are all Alpha sorted. Please keep it that way!
a61af66fc99e Initial load
duke
parents:
diff changeset
396 //------------------------------ConvD2FNode------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
397 // Convert double to float
a61af66fc99e Initial load
duke
parents:
diff changeset
398 class ConvD2FNode : public Node {
a61af66fc99e Initial load
duke
parents:
diff changeset
399 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
400 ConvD2FNode( Node *in1 ) : Node(0,in1) {}
a61af66fc99e Initial load
duke
parents:
diff changeset
401 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
402 virtual const Type *bottom_type() const { return Type::FLOAT; }
a61af66fc99e Initial load
duke
parents:
diff changeset
403 virtual const Type *Value( PhaseTransform *phase ) const;
a61af66fc99e Initial load
duke
parents:
diff changeset
404 virtual Node *Identity( PhaseTransform *phase );
a61af66fc99e Initial load
duke
parents:
diff changeset
405 virtual uint ideal_reg() const { return Op_RegF; }
a61af66fc99e Initial load
duke
parents:
diff changeset
406 };
a61af66fc99e Initial load
duke
parents:
diff changeset
407
a61af66fc99e Initial load
duke
parents:
diff changeset
408 //------------------------------ConvD2INode------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
409 // Convert Double to Integer
a61af66fc99e Initial load
duke
parents:
diff changeset
410 class ConvD2INode : public Node {
a61af66fc99e Initial load
duke
parents:
diff changeset
411 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
412 ConvD2INode( Node *in1 ) : Node(0,in1) {}
a61af66fc99e Initial load
duke
parents:
diff changeset
413 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
414 virtual const Type *bottom_type() const { return TypeInt::INT; }
a61af66fc99e Initial load
duke
parents:
diff changeset
415 virtual const Type *Value( PhaseTransform *phase ) const;
a61af66fc99e Initial load
duke
parents:
diff changeset
416 virtual Node *Identity( PhaseTransform *phase );
a61af66fc99e Initial load
duke
parents:
diff changeset
417 virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
a61af66fc99e Initial load
duke
parents:
diff changeset
418 virtual uint ideal_reg() const { return Op_RegI; }
a61af66fc99e Initial load
duke
parents:
diff changeset
419 };
a61af66fc99e Initial load
duke
parents:
diff changeset
420
a61af66fc99e Initial load
duke
parents:
diff changeset
421 //------------------------------ConvD2LNode------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
422 // Convert Double to Long
a61af66fc99e Initial load
duke
parents:
diff changeset
423 class ConvD2LNode : public Node {
a61af66fc99e Initial load
duke
parents:
diff changeset
424 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
425 ConvD2LNode( Node *dbl ) : Node(0,dbl) {}
a61af66fc99e Initial load
duke
parents:
diff changeset
426 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
427 virtual const Type *bottom_type() const { return TypeLong::LONG; }
a61af66fc99e Initial load
duke
parents:
diff changeset
428 virtual const Type *Value( PhaseTransform *phase ) const;
a61af66fc99e Initial load
duke
parents:
diff changeset
429 virtual Node *Identity( PhaseTransform *phase );
a61af66fc99e Initial load
duke
parents:
diff changeset
430 virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
a61af66fc99e Initial load
duke
parents:
diff changeset
431 virtual uint ideal_reg() const { return Op_RegL; }
a61af66fc99e Initial load
duke
parents:
diff changeset
432 };
a61af66fc99e Initial load
duke
parents:
diff changeset
433
a61af66fc99e Initial load
duke
parents:
diff changeset
434 //------------------------------ConvF2DNode------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
435 // Convert Float to a Double.
a61af66fc99e Initial load
duke
parents:
diff changeset
436 class ConvF2DNode : public Node {
a61af66fc99e Initial load
duke
parents:
diff changeset
437 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
438 ConvF2DNode( Node *in1 ) : Node(0,in1) {}
a61af66fc99e Initial load
duke
parents:
diff changeset
439 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
440 virtual const Type *bottom_type() const { return Type::DOUBLE; }
a61af66fc99e Initial load
duke
parents:
diff changeset
441 virtual const Type *Value( PhaseTransform *phase ) const;
a61af66fc99e Initial load
duke
parents:
diff changeset
442 virtual uint ideal_reg() const { return Op_RegD; }
a61af66fc99e Initial load
duke
parents:
diff changeset
443 };
a61af66fc99e Initial load
duke
parents:
diff changeset
444
a61af66fc99e Initial load
duke
parents:
diff changeset
445 //------------------------------ConvF2INode------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
446 // Convert float to integer
a61af66fc99e Initial load
duke
parents:
diff changeset
447 class ConvF2INode : public Node {
a61af66fc99e Initial load
duke
parents:
diff changeset
448 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
449 ConvF2INode( Node *in1 ) : Node(0,in1) {}
a61af66fc99e Initial load
duke
parents:
diff changeset
450 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
451 virtual const Type *bottom_type() const { return TypeInt::INT; }
a61af66fc99e Initial load
duke
parents:
diff changeset
452 virtual const Type *Value( PhaseTransform *phase ) const;
a61af66fc99e Initial load
duke
parents:
diff changeset
453 virtual Node *Identity( PhaseTransform *phase );
a61af66fc99e Initial load
duke
parents:
diff changeset
454 virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
a61af66fc99e Initial load
duke
parents:
diff changeset
455 virtual uint ideal_reg() const { return Op_RegI; }
a61af66fc99e Initial load
duke
parents:
diff changeset
456 };
a61af66fc99e Initial load
duke
parents:
diff changeset
457
a61af66fc99e Initial load
duke
parents:
diff changeset
458 //------------------------------ConvF2LNode------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
459 // Convert float to long
a61af66fc99e Initial load
duke
parents:
diff changeset
460 class ConvF2LNode : public Node {
a61af66fc99e Initial load
duke
parents:
diff changeset
461 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
462 ConvF2LNode( Node *in1 ) : Node(0,in1) {}
a61af66fc99e Initial load
duke
parents:
diff changeset
463 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
464 virtual const Type *bottom_type() const { return TypeLong::LONG; }
a61af66fc99e Initial load
duke
parents:
diff changeset
465 virtual const Type *Value( PhaseTransform *phase ) const;
a61af66fc99e Initial load
duke
parents:
diff changeset
466 virtual Node *Identity( PhaseTransform *phase );
a61af66fc99e Initial load
duke
parents:
diff changeset
467 virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
a61af66fc99e Initial load
duke
parents:
diff changeset
468 virtual uint ideal_reg() const { return Op_RegL; }
a61af66fc99e Initial load
duke
parents:
diff changeset
469 };
a61af66fc99e Initial load
duke
parents:
diff changeset
470
a61af66fc99e Initial load
duke
parents:
diff changeset
471 //------------------------------ConvI2DNode------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
472 // Convert Integer to Double
a61af66fc99e Initial load
duke
parents:
diff changeset
473 class ConvI2DNode : public Node {
a61af66fc99e Initial load
duke
parents:
diff changeset
474 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
475 ConvI2DNode( Node *in1 ) : Node(0,in1) {}
a61af66fc99e Initial load
duke
parents:
diff changeset
476 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
477 virtual const Type *bottom_type() const { return Type::DOUBLE; }
a61af66fc99e Initial load
duke
parents:
diff changeset
478 virtual const Type *Value( PhaseTransform *phase ) const;
a61af66fc99e Initial load
duke
parents:
diff changeset
479 virtual uint ideal_reg() const { return Op_RegD; }
a61af66fc99e Initial load
duke
parents:
diff changeset
480 };
a61af66fc99e Initial load
duke
parents:
diff changeset
481
a61af66fc99e Initial load
duke
parents:
diff changeset
482 //------------------------------ConvI2FNode------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
483 // Convert Integer to Float
a61af66fc99e Initial load
duke
parents:
diff changeset
484 class ConvI2FNode : public Node {
a61af66fc99e Initial load
duke
parents:
diff changeset
485 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
486 ConvI2FNode( Node *in1 ) : Node(0,in1) {}
a61af66fc99e Initial load
duke
parents:
diff changeset
487 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
488 virtual const Type *bottom_type() const { return Type::FLOAT; }
a61af66fc99e Initial load
duke
parents:
diff changeset
489 virtual const Type *Value( PhaseTransform *phase ) const;
a61af66fc99e Initial load
duke
parents:
diff changeset
490 virtual Node *Identity( PhaseTransform *phase );
a61af66fc99e Initial load
duke
parents:
diff changeset
491 virtual uint ideal_reg() const { return Op_RegF; }
a61af66fc99e Initial load
duke
parents:
diff changeset
492 };
a61af66fc99e Initial load
duke
parents:
diff changeset
493
a61af66fc99e Initial load
duke
parents:
diff changeset
494 //------------------------------ConvI2LNode------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
495 // Convert integer to long
a61af66fc99e Initial load
duke
parents:
diff changeset
496 class ConvI2LNode : public TypeNode {
a61af66fc99e Initial load
duke
parents:
diff changeset
497 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
498 ConvI2LNode(Node *in1, const TypeLong* t = TypeLong::INT)
a61af66fc99e Initial load
duke
parents:
diff changeset
499 : TypeNode(t, 2)
a61af66fc99e Initial load
duke
parents:
diff changeset
500 { init_req(1, in1); }
a61af66fc99e Initial load
duke
parents:
diff changeset
501 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
502 virtual const Type *Value( PhaseTransform *phase ) const;
a61af66fc99e Initial load
duke
parents:
diff changeset
503 virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
a61af66fc99e Initial load
duke
parents:
diff changeset
504 virtual uint ideal_reg() const { return Op_RegL; }
a61af66fc99e Initial load
duke
parents:
diff changeset
505 };
a61af66fc99e Initial load
duke
parents:
diff changeset
506
a61af66fc99e Initial load
duke
parents:
diff changeset
507 //------------------------------ConvL2DNode------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
508 // Convert Long to Double
a61af66fc99e Initial load
duke
parents:
diff changeset
509 class ConvL2DNode : public Node {
a61af66fc99e Initial load
duke
parents:
diff changeset
510 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
511 ConvL2DNode( Node *in1 ) : Node(0,in1) {}
a61af66fc99e Initial load
duke
parents:
diff changeset
512 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
513 virtual const Type *bottom_type() const { return Type::DOUBLE; }
a61af66fc99e Initial load
duke
parents:
diff changeset
514 virtual const Type *Value( PhaseTransform *phase ) const;
a61af66fc99e Initial load
duke
parents:
diff changeset
515 virtual uint ideal_reg() const { return Op_RegD; }
a61af66fc99e Initial load
duke
parents:
diff changeset
516 };
a61af66fc99e Initial load
duke
parents:
diff changeset
517
a61af66fc99e Initial load
duke
parents:
diff changeset
518 //------------------------------ConvL2FNode------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
519 // Convert Long to Float
a61af66fc99e Initial load
duke
parents:
diff changeset
520 class ConvL2FNode : public Node {
a61af66fc99e Initial load
duke
parents:
diff changeset
521 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
522 ConvL2FNode( Node *in1 ) : Node(0,in1) {}
a61af66fc99e Initial load
duke
parents:
diff changeset
523 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
524 virtual const Type *bottom_type() const { return Type::FLOAT; }
a61af66fc99e Initial load
duke
parents:
diff changeset
525 virtual const Type *Value( PhaseTransform *phase ) const;
a61af66fc99e Initial load
duke
parents:
diff changeset
526 virtual uint ideal_reg() const { return Op_RegF; }
a61af66fc99e Initial load
duke
parents:
diff changeset
527 };
a61af66fc99e Initial load
duke
parents:
diff changeset
528
a61af66fc99e Initial load
duke
parents:
diff changeset
529 //------------------------------ConvL2INode------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
530 // Convert long to integer
a61af66fc99e Initial load
duke
parents:
diff changeset
531 class ConvL2INode : public Node {
a61af66fc99e Initial load
duke
parents:
diff changeset
532 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
533 ConvL2INode( Node *in1 ) : Node(0,in1) {}
a61af66fc99e Initial load
duke
parents:
diff changeset
534 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
535 virtual const Type *bottom_type() const { return TypeInt::INT; }
a61af66fc99e Initial load
duke
parents:
diff changeset
536 virtual Node *Identity( PhaseTransform *phase );
a61af66fc99e Initial load
duke
parents:
diff changeset
537 virtual const Type *Value( PhaseTransform *phase ) const;
a61af66fc99e Initial load
duke
parents:
diff changeset
538 virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
a61af66fc99e Initial load
duke
parents:
diff changeset
539 virtual uint ideal_reg() const { return Op_RegI; }
a61af66fc99e Initial load
duke
parents:
diff changeset
540 };
a61af66fc99e Initial load
duke
parents:
diff changeset
541
a61af66fc99e Initial load
duke
parents:
diff changeset
542 //------------------------------CastX2PNode-------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
543 // convert a machine-pointer-sized integer to a raw pointer
a61af66fc99e Initial load
duke
parents:
diff changeset
544 class CastX2PNode : public Node {
a61af66fc99e Initial load
duke
parents:
diff changeset
545 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
546 CastX2PNode( Node *n ) : Node(NULL, n) {}
a61af66fc99e Initial load
duke
parents:
diff changeset
547 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
548 virtual const Type *Value( PhaseTransform *phase ) const;
a61af66fc99e Initial load
duke
parents:
diff changeset
549 virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
a61af66fc99e Initial load
duke
parents:
diff changeset
550 virtual Node *Identity( PhaseTransform *phase );
a61af66fc99e Initial load
duke
parents:
diff changeset
551 virtual uint ideal_reg() const { return Op_RegP; }
a61af66fc99e Initial load
duke
parents:
diff changeset
552 virtual const Type *bottom_type() const { return TypeRawPtr::BOTTOM; }
a61af66fc99e Initial load
duke
parents:
diff changeset
553 };
a61af66fc99e Initial load
duke
parents:
diff changeset
554
a61af66fc99e Initial load
duke
parents:
diff changeset
555 //------------------------------CastP2XNode-------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
556 // Used in both 32-bit and 64-bit land.
a61af66fc99e Initial load
duke
parents:
diff changeset
557 // Used for card-marks and unsafe pointer math.
a61af66fc99e Initial load
duke
parents:
diff changeset
558 class CastP2XNode : public Node {
a61af66fc99e Initial load
duke
parents:
diff changeset
559 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
560 CastP2XNode( Node *ctrl, Node *n ) : Node(ctrl, n) {}
a61af66fc99e Initial load
duke
parents:
diff changeset
561 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
562 virtual const Type *Value( PhaseTransform *phase ) const;
a61af66fc99e Initial load
duke
parents:
diff changeset
563 virtual Node *Ideal(PhaseGVN *phase, bool can_reshape);
a61af66fc99e Initial load
duke
parents:
diff changeset
564 virtual Node *Identity( PhaseTransform *phase );
a61af66fc99e Initial load
duke
parents:
diff changeset
565 virtual uint ideal_reg() const { return Op_RegX; }
a61af66fc99e Initial load
duke
parents:
diff changeset
566 virtual const Type *bottom_type() const { return TypeX_X; }
a61af66fc99e Initial load
duke
parents:
diff changeset
567 // Return false to keep node from moving away from an associated card mark.
a61af66fc99e Initial load
duke
parents:
diff changeset
568 virtual bool depends_only_on_test() const { return false; }
a61af66fc99e Initial load
duke
parents:
diff changeset
569 };
a61af66fc99e Initial load
duke
parents:
diff changeset
570
a61af66fc99e Initial load
duke
parents:
diff changeset
571 //------------------------------ThreadLocalNode--------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
572 // Ideal Node which returns the base of ThreadLocalStorage.
a61af66fc99e Initial load
duke
parents:
diff changeset
573 class ThreadLocalNode : public Node {
a61af66fc99e Initial load
duke
parents:
diff changeset
574 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
575 ThreadLocalNode( ) : Node((Node*)Compile::current()->root()) {}
a61af66fc99e Initial load
duke
parents:
diff changeset
576 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
577 virtual const Type *bottom_type() const { return TypeRawPtr::BOTTOM;}
a61af66fc99e Initial load
duke
parents:
diff changeset
578 virtual uint ideal_reg() const { return Op_RegP; }
a61af66fc99e Initial load
duke
parents:
diff changeset
579 };
a61af66fc99e Initial load
duke
parents:
diff changeset
580
a61af66fc99e Initial load
duke
parents:
diff changeset
581 //------------------------------LoadReturnPCNode-------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
582 class LoadReturnPCNode: public Node {
a61af66fc99e Initial load
duke
parents:
diff changeset
583 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
584 LoadReturnPCNode(Node *c) : Node(c) { }
a61af66fc99e Initial load
duke
parents:
diff changeset
585 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
586 virtual uint ideal_reg() const { return Op_RegP; }
a61af66fc99e Initial load
duke
parents:
diff changeset
587 };
a61af66fc99e Initial load
duke
parents:
diff changeset
588
a61af66fc99e Initial load
duke
parents:
diff changeset
589
a61af66fc99e Initial load
duke
parents:
diff changeset
590 //-----------------------------RoundFloatNode----------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
591 class RoundFloatNode: public Node {
a61af66fc99e Initial load
duke
parents:
diff changeset
592 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
593 RoundFloatNode(Node* c, Node *in1): Node(c, in1) {}
a61af66fc99e Initial load
duke
parents:
diff changeset
594 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
595 virtual const Type *bottom_type() const { return Type::FLOAT; }
a61af66fc99e Initial load
duke
parents:
diff changeset
596 virtual uint ideal_reg() const { return Op_RegF; }
a61af66fc99e Initial load
duke
parents:
diff changeset
597 virtual Node *Identity( PhaseTransform *phase );
a61af66fc99e Initial load
duke
parents:
diff changeset
598 virtual const Type *Value( PhaseTransform *phase ) const;
a61af66fc99e Initial load
duke
parents:
diff changeset
599 };
a61af66fc99e Initial load
duke
parents:
diff changeset
600
a61af66fc99e Initial load
duke
parents:
diff changeset
601
a61af66fc99e Initial load
duke
parents:
diff changeset
602 //-----------------------------RoundDoubleNode---------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
603 class RoundDoubleNode: public Node {
a61af66fc99e Initial load
duke
parents:
diff changeset
604 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
605 RoundDoubleNode(Node* c, Node *in1): Node(c, in1) {}
a61af66fc99e Initial load
duke
parents:
diff changeset
606 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
607 virtual const Type *bottom_type() const { return Type::DOUBLE; }
a61af66fc99e Initial load
duke
parents:
diff changeset
608 virtual uint ideal_reg() const { return Op_RegD; }
a61af66fc99e Initial load
duke
parents:
diff changeset
609 virtual Node *Identity( PhaseTransform *phase );
a61af66fc99e Initial load
duke
parents:
diff changeset
610 virtual const Type *Value( PhaseTransform *phase ) const;
a61af66fc99e Initial load
duke
parents:
diff changeset
611 };
a61af66fc99e Initial load
duke
parents:
diff changeset
612
a61af66fc99e Initial load
duke
parents:
diff changeset
613 //------------------------------Opaque1Node------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
614 // A node to prevent unwanted optimizations. Allows constant folding.
a61af66fc99e Initial load
duke
parents:
diff changeset
615 // Stops value-numbering, Ideal calls or Identity functions.
a61af66fc99e Initial load
duke
parents:
diff changeset
616 class Opaque1Node : public Node {
a61af66fc99e Initial load
duke
parents:
diff changeset
617 virtual uint hash() const ; // { return NO_HASH; }
a61af66fc99e Initial load
duke
parents:
diff changeset
618 virtual uint cmp( const Node &n ) const;
a61af66fc99e Initial load
duke
parents:
diff changeset
619 public:
216
8d191a7697e2 6715633: when matching a memory node the adr_type should not change
kvn
parents: 168
diff changeset
620 Opaque1Node( Compile* C, Node *n ) : Node(0,n) {
8d191a7697e2 6715633: when matching a memory node the adr_type should not change
kvn
parents: 168
diff changeset
621 // Put it on the Macro nodes list to removed during macro nodes expansion.
8d191a7697e2 6715633: when matching a memory node the adr_type should not change
kvn
parents: 168
diff changeset
622 init_flags(Flag_is_macro);
8d191a7697e2 6715633: when matching a memory node the adr_type should not change
kvn
parents: 168
diff changeset
623 C->add_macro_node(this);
8d191a7697e2 6715633: when matching a memory node the adr_type should not change
kvn
parents: 168
diff changeset
624 }
0
a61af66fc99e Initial load
duke
parents:
diff changeset
625 // Special version for the pre-loop to hold the original loop limit
a61af66fc99e Initial load
duke
parents:
diff changeset
626 // which is consumed by range check elimination.
216
8d191a7697e2 6715633: when matching a memory node the adr_type should not change
kvn
parents: 168
diff changeset
627 Opaque1Node( Compile* C, Node *n, Node* orig_limit ) : Node(0,n,orig_limit) {
8d191a7697e2 6715633: when matching a memory node the adr_type should not change
kvn
parents: 168
diff changeset
628 // Put it on the Macro nodes list to removed during macro nodes expansion.
8d191a7697e2 6715633: when matching a memory node the adr_type should not change
kvn
parents: 168
diff changeset
629 init_flags(Flag_is_macro);
8d191a7697e2 6715633: when matching a memory node the adr_type should not change
kvn
parents: 168
diff changeset
630 C->add_macro_node(this);
8d191a7697e2 6715633: when matching a memory node the adr_type should not change
kvn
parents: 168
diff changeset
631 }
0
a61af66fc99e Initial load
duke
parents:
diff changeset
632 Node* original_loop_limit() { return req()==3 ? in(2) : NULL; }
a61af66fc99e Initial load
duke
parents:
diff changeset
633 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
634 virtual const Type *bottom_type() const { return TypeInt::INT; }
a61af66fc99e Initial load
duke
parents:
diff changeset
635 virtual Node *Identity( PhaseTransform *phase );
a61af66fc99e Initial load
duke
parents:
diff changeset
636 };
a61af66fc99e Initial load
duke
parents:
diff changeset
637
a61af66fc99e Initial load
duke
parents:
diff changeset
638 //------------------------------Opaque2Node------------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
639 // A node to prevent unwanted optimizations. Allows constant folding. Stops
a61af66fc99e Initial load
duke
parents:
diff changeset
640 // value-numbering, most Ideal calls or Identity functions. This Node is
a61af66fc99e Initial load
duke
parents:
diff changeset
641 // specifically designed to prevent the pre-increment value of a loop trip
a61af66fc99e Initial load
duke
parents:
diff changeset
642 // counter from being live out of the bottom of the loop (hence causing the
a61af66fc99e Initial load
duke
parents:
diff changeset
643 // pre- and post-increment values both being live and thus requiring an extra
a61af66fc99e Initial load
duke
parents:
diff changeset
644 // temp register and an extra move). If we "accidentally" optimize through
a61af66fc99e Initial load
duke
parents:
diff changeset
645 // this kind of a Node, we'll get slightly pessimal, but correct, code. Thus
a61af66fc99e Initial load
duke
parents:
diff changeset
646 // it's OK to be slightly sloppy on optimizations here.
a61af66fc99e Initial load
duke
parents:
diff changeset
647 class Opaque2Node : public Node {
a61af66fc99e Initial load
duke
parents:
diff changeset
648 virtual uint hash() const ; // { return NO_HASH; }
a61af66fc99e Initial load
duke
parents:
diff changeset
649 virtual uint cmp( const Node &n ) const;
a61af66fc99e Initial load
duke
parents:
diff changeset
650 public:
216
8d191a7697e2 6715633: when matching a memory node the adr_type should not change
kvn
parents: 168
diff changeset
651 Opaque2Node( Compile* C, Node *n ) : Node(0,n) {
8d191a7697e2 6715633: when matching a memory node the adr_type should not change
kvn
parents: 168
diff changeset
652 // Put it on the Macro nodes list to removed during macro nodes expansion.
8d191a7697e2 6715633: when matching a memory node the adr_type should not change
kvn
parents: 168
diff changeset
653 init_flags(Flag_is_macro);
8d191a7697e2 6715633: when matching a memory node the adr_type should not change
kvn
parents: 168
diff changeset
654 C->add_macro_node(this);
8d191a7697e2 6715633: when matching a memory node the adr_type should not change
kvn
parents: 168
diff changeset
655 }
0
a61af66fc99e Initial load
duke
parents:
diff changeset
656 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
657 virtual const Type *bottom_type() const { return TypeInt::INT; }
a61af66fc99e Initial load
duke
parents:
diff changeset
658 };
a61af66fc99e Initial load
duke
parents:
diff changeset
659
17780
606acabe7b5c 8031320: Use Intel RTM instructions for locks
kvn
parents: 17671
diff changeset
660 //------------------------------Opaque3Node------------------------------------
606acabe7b5c 8031320: Use Intel RTM instructions for locks
kvn
parents: 17671
diff changeset
661 // A node to prevent unwanted optimizations. Will be optimized only during
606acabe7b5c 8031320: Use Intel RTM instructions for locks
kvn
parents: 17671
diff changeset
662 // macro nodes expansion.
606acabe7b5c 8031320: Use Intel RTM instructions for locks
kvn
parents: 17671
diff changeset
663 class Opaque3Node : public Opaque2Node {
606acabe7b5c 8031320: Use Intel RTM instructions for locks
kvn
parents: 17671
diff changeset
664 int _opt; // what optimization it was used for
606acabe7b5c 8031320: Use Intel RTM instructions for locks
kvn
parents: 17671
diff changeset
665 public:
606acabe7b5c 8031320: Use Intel RTM instructions for locks
kvn
parents: 17671
diff changeset
666 enum { RTM_OPT };
606acabe7b5c 8031320: Use Intel RTM instructions for locks
kvn
parents: 17671
diff changeset
667 Opaque3Node(Compile* C, Node *n, int opt) : Opaque2Node(C, n), _opt(opt) {}
606acabe7b5c 8031320: Use Intel RTM instructions for locks
kvn
parents: 17671
diff changeset
668 virtual int Opcode() const;
606acabe7b5c 8031320: Use Intel RTM instructions for locks
kvn
parents: 17671
diff changeset
669 bool rtm_opt() const { return (_opt == RTM_OPT); }
606acabe7b5c 8031320: Use Intel RTM instructions for locks
kvn
parents: 17671
diff changeset
670 };
606acabe7b5c 8031320: Use Intel RTM instructions for locks
kvn
parents: 17671
diff changeset
671
606acabe7b5c 8031320: Use Intel RTM instructions for locks
kvn
parents: 17671
diff changeset
672
0
a61af66fc99e Initial load
duke
parents:
diff changeset
673 //----------------------PartialSubtypeCheckNode--------------------------------
a61af66fc99e Initial load
duke
parents:
diff changeset
674 // The 2nd slow-half of a subtype check. Scan the subklass's 2ndary superklass
a61af66fc99e Initial load
duke
parents:
diff changeset
675 // array for an instance of the superklass. Set a hidden internal cache on a
a61af66fc99e Initial load
duke
parents:
diff changeset
676 // hit (cache is checked with exposed code in gen_subtype_check()). Return
a61af66fc99e Initial load
duke
parents:
diff changeset
677 // not zero for a miss or zero for a hit.
a61af66fc99e Initial load
duke
parents:
diff changeset
678 class PartialSubtypeCheckNode : public Node {
a61af66fc99e Initial load
duke
parents:
diff changeset
679 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
680 PartialSubtypeCheckNode(Node* c, Node* sub, Node* super) : Node(c,sub,super) {}
a61af66fc99e Initial load
duke
parents:
diff changeset
681 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
682 virtual const Type *bottom_type() const { return TypeRawPtr::BOTTOM; }
a61af66fc99e Initial load
duke
parents:
diff changeset
683 virtual uint ideal_reg() const { return Op_RegP; }
a61af66fc99e Initial load
duke
parents:
diff changeset
684 };
a61af66fc99e Initial load
duke
parents:
diff changeset
685
a61af66fc99e Initial load
duke
parents:
diff changeset
686 //
a61af66fc99e Initial load
duke
parents:
diff changeset
687 class MoveI2FNode : public Node {
a61af66fc99e Initial load
duke
parents:
diff changeset
688 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
689 MoveI2FNode( Node *value ) : Node(0,value) {}
a61af66fc99e Initial load
duke
parents:
diff changeset
690 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
691 virtual const Type *bottom_type() const { return Type::FLOAT; }
a61af66fc99e Initial load
duke
parents:
diff changeset
692 virtual uint ideal_reg() const { return Op_RegF; }
a61af66fc99e Initial load
duke
parents:
diff changeset
693 virtual const Type* Value( PhaseTransform *phase ) const;
a61af66fc99e Initial load
duke
parents:
diff changeset
694 };
a61af66fc99e Initial load
duke
parents:
diff changeset
695
a61af66fc99e Initial load
duke
parents:
diff changeset
696 class MoveL2DNode : public Node {
a61af66fc99e Initial load
duke
parents:
diff changeset
697 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
698 MoveL2DNode( Node *value ) : Node(0,value) {}
a61af66fc99e Initial load
duke
parents:
diff changeset
699 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
700 virtual const Type *bottom_type() const { return Type::DOUBLE; }
a61af66fc99e Initial load
duke
parents:
diff changeset
701 virtual uint ideal_reg() const { return Op_RegD; }
a61af66fc99e Initial load
duke
parents:
diff changeset
702 virtual const Type* Value( PhaseTransform *phase ) const;
a61af66fc99e Initial load
duke
parents:
diff changeset
703 };
a61af66fc99e Initial load
duke
parents:
diff changeset
704
a61af66fc99e Initial load
duke
parents:
diff changeset
705 class MoveF2INode : public Node {
a61af66fc99e Initial load
duke
parents:
diff changeset
706 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
707 MoveF2INode( Node *value ) : Node(0,value) {}
a61af66fc99e Initial load
duke
parents:
diff changeset
708 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
709 virtual const Type *bottom_type() const { return TypeInt::INT; }
a61af66fc99e Initial load
duke
parents:
diff changeset
710 virtual uint ideal_reg() const { return Op_RegI; }
a61af66fc99e Initial load
duke
parents:
diff changeset
711 virtual const Type* Value( PhaseTransform *phase ) const;
a61af66fc99e Initial load
duke
parents:
diff changeset
712 };
a61af66fc99e Initial load
duke
parents:
diff changeset
713
a61af66fc99e Initial load
duke
parents:
diff changeset
714 class MoveD2LNode : public Node {
a61af66fc99e Initial load
duke
parents:
diff changeset
715 public:
a61af66fc99e Initial load
duke
parents:
diff changeset
716 MoveD2LNode( Node *value ) : Node(0,value) {}
a61af66fc99e Initial load
duke
parents:
diff changeset
717 virtual int Opcode() const;
a61af66fc99e Initial load
duke
parents:
diff changeset
718 virtual const Type *bottom_type() const { return TypeLong::LONG; }
a61af66fc99e Initial load
duke
parents:
diff changeset
719 virtual uint ideal_reg() const { return Op_RegL; }
a61af66fc99e Initial load
duke
parents:
diff changeset
720 virtual const Type* Value( PhaseTransform *phase ) const;
a61af66fc99e Initial load
duke
parents:
diff changeset
721 };
643
c771b7f43bbf 6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents: 235
diff changeset
722
775
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
723 //---------- CountBitsNode -----------------------------------------------------
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
724 class CountBitsNode : public Node {
643
c771b7f43bbf 6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents: 235
diff changeset
725 public:
775
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
726 CountBitsNode(Node* in1) : Node(0, in1) {}
643
c771b7f43bbf 6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents: 235
diff changeset
727 const Type* bottom_type() const { return TypeInt::INT; }
c771b7f43bbf 6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents: 235
diff changeset
728 virtual uint ideal_reg() const { return Op_RegI; }
c771b7f43bbf 6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents: 235
diff changeset
729 };
c771b7f43bbf 6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents: 235
diff changeset
730
775
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
731 //---------- CountLeadingZerosINode --------------------------------------------
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
732 // Count leading zeros (0-bit count starting from MSB) of an integer.
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
733 class CountLeadingZerosINode : public CountBitsNode {
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
734 public:
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
735 CountLeadingZerosINode(Node* in1) : CountBitsNode(in1) {}
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
736 virtual int Opcode() const;
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
737 virtual const Type* Value(PhaseTransform* phase) const;
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
738 };
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
739
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
740 //---------- CountLeadingZerosLNode --------------------------------------------
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
741 // Count leading zeros (0-bit count starting from MSB) of a long.
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
742 class CountLeadingZerosLNode : public CountBitsNode {
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
743 public:
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
744 CountLeadingZerosLNode(Node* in1) : CountBitsNode(in1) {}
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
745 virtual int Opcode() const;
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
746 virtual const Type* Value(PhaseTransform* phase) const;
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
747 };
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
748
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
749 //---------- CountTrailingZerosINode -------------------------------------------
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
750 // Count trailing zeros (0-bit count starting from LSB) of an integer.
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
751 class CountTrailingZerosINode : public CountBitsNode {
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
752 public:
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
753 CountTrailingZerosINode(Node* in1) : CountBitsNode(in1) {}
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
754 virtual int Opcode() const;
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
755 virtual const Type* Value(PhaseTransform* phase) const;
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
756 };
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
757
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
758 //---------- CountTrailingZerosLNode -------------------------------------------
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
759 // Count trailing zeros (0-bit count starting from LSB) of a long.
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
760 class CountTrailingZerosLNode : public CountBitsNode {
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
761 public:
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
762 CountTrailingZerosLNode(Node* in1) : CountBitsNode(in1) {}
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
763 virtual int Opcode() const;
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
764 virtual const Type* Value(PhaseTransform* phase) const;
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
765 };
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
766
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
767 //---------- PopCountINode -----------------------------------------------------
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
768 // Population count (bit count) of an integer.
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
769 class PopCountINode : public CountBitsNode {
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
770 public:
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
771 PopCountINode(Node* in1) : CountBitsNode(in1) {}
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
772 virtual int Opcode() const;
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
773 };
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
774
643
c771b7f43bbf 6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents: 235
diff changeset
775 //---------- PopCountLNode -----------------------------------------------------
c771b7f43bbf 6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents: 235
diff changeset
776 // Population count (bit count) of a long.
775
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
777 class PopCountLNode : public CountBitsNode {
643
c771b7f43bbf 6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents: 235
diff changeset
778 public:
775
93c14e5562c4 6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()
twisti
parents: 643
diff changeset
779 PopCountLNode(Node* in1) : CountBitsNode(in1) {}
643
c771b7f43bbf 6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents: 235
diff changeset
780 virtual int Opcode() const;
c771b7f43bbf 6378821: bitCount() should use POPC on SPARC processors and AMD+10h
twisti
parents: 235
diff changeset
781 };
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
782
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
783 #endif // SHARE_VM_OPTO_CONNODE_HPP