16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "ci/bcEscapeAnalyzer.hpp"
27 #include "compiler/compileLog.hpp"
28 #include "libadt/vectset.hpp"
29 #include "memory/allocation.hpp"
30 #include "opto/c2compiler.hpp"
31 #include "opto/callnode.hpp"
32 #include "opto/cfgnode.hpp"
33 #include "opto/compile.hpp"
34 #include "opto/escape.hpp"
35 #include "opto/phaseX.hpp"
36 #include "opto/rootnode.hpp"
37
38 ConnectionGraph::ConnectionGraph(Compile * C, PhaseIterGVN *igvn) :
39 _nodes(C->comp_arena(), C->unique(), C->unique(), NULL),
40 _collecting(true),
41 _verify(false),
42 _compile(C),
43 _igvn(igvn),
44 _node_map(C->comp_arena()) {
45 // Add unknown java object.
46 add_java_object(C->top(), PointsToNode::GlobalEscape);
47 phantom_obj = ptnode_adr(C->top()->_idx)->as_JavaObject();
48 // Add ConP(#NULL) and ConN(#NULL) nodes.
49 Node* oop_null = igvn->zerocon(T_OBJECT);
50 assert(oop_null->_idx < nodes_size(), "should be created already");
51 add_java_object(oop_null, PointsToNode::NoEscape);
52 null_obj = ptnode_adr(oop_null->_idx)->as_JavaObject();
53 if (UseCompressedOops) {
54 Node* noop_null = igvn->zerocon(T_NARROWOOP);
55 assert(noop_null->_idx < nodes_size(), "should be created already");
|
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "ci/bcEscapeAnalyzer.hpp"
27 #include "compiler/compileLog.hpp"
28 #include "libadt/vectset.hpp"
29 #include "memory/allocation.hpp"
30 #include "opto/c2compiler.hpp"
31 #include "opto/callnode.hpp"
32 #include "opto/cfgnode.hpp"
33 #include "opto/compile.hpp"
34 #include "opto/escape.hpp"
35 #include "opto/phaseX.hpp"
36 #include "opto/movenode.hpp"
37 #include "opto/rootnode.hpp"
38
39 ConnectionGraph::ConnectionGraph(Compile * C, PhaseIterGVN *igvn) :
40 _nodes(C->comp_arena(), C->unique(), C->unique(), NULL),
41 _collecting(true),
42 _verify(false),
43 _compile(C),
44 _igvn(igvn),
45 _node_map(C->comp_arena()) {
46 // Add unknown java object.
47 add_java_object(C->top(), PointsToNode::GlobalEscape);
48 phantom_obj = ptnode_adr(C->top()->_idx)->as_JavaObject();
49 // Add ConP(#NULL) and ConN(#NULL) nodes.
50 Node* oop_null = igvn->zerocon(T_OBJECT);
51 assert(oop_null->_idx < nodes_size(), "should be created already");
52 add_java_object(oop_null, PointsToNode::NoEscape);
53 null_obj = ptnode_adr(oop_null->_idx)->as_JavaObject();
54 if (UseCompressedOops) {
55 Node* noop_null = igvn->zerocon(T_NARROWOOP);
56 assert(noop_null->_idx < nodes_size(), "should be created already");
|