Mercurial > hg > graal-jvmci-8
comparison src/share/vm/opto/connode.hpp @ 6804:e626685e9f6c
7193318: C2: remove number of inputs requirement from Node's new operator
Summary: Deleted placement new operator of Node - node(size_t, Compile *, int).
Reviewed-by: kvn, twisti
Contributed-by: bharadwaj.yadavalli@oracle.com
author | kvn |
---|---|
date | Thu, 27 Sep 2012 09:38:42 -0700 |
parents | c124e2e7463e |
children | b9a9ed0f8eeb 8e47bac5643a |
comparison
equal
deleted
inserted
replaced
6803:06f52c4d0e18 | 6804:e626685e9f6c |
---|---|
56 ConINode( const TypeInt *t ) : ConNode(t) {} | 56 ConINode( const TypeInt *t ) : ConNode(t) {} |
57 virtual int Opcode() const; | 57 virtual int Opcode() const; |
58 | 58 |
59 // Factory method: | 59 // Factory method: |
60 static ConINode* make( Compile* C, int con ) { | 60 static ConINode* make( Compile* C, int con ) { |
61 return new (C, 1) ConINode( TypeInt::make(con) ); | 61 return new (C) ConINode( TypeInt::make(con) ); |
62 } | 62 } |
63 | 63 |
64 }; | 64 }; |
65 | 65 |
66 //------------------------------ConPNode--------------------------------------- | 66 //------------------------------ConPNode--------------------------------------- |
71 virtual int Opcode() const; | 71 virtual int Opcode() const; |
72 | 72 |
73 // Factory methods: | 73 // Factory methods: |
74 static ConPNode* make( Compile *C ,address con ) { | 74 static ConPNode* make( Compile *C ,address con ) { |
75 if (con == NULL) | 75 if (con == NULL) |
76 return new (C, 1) ConPNode( TypePtr::NULL_PTR ) ; | 76 return new (C) ConPNode( TypePtr::NULL_PTR ) ; |
77 else | 77 else |
78 return new (C, 1) ConPNode( TypeRawPtr::make(con) ); | 78 return new (C) ConPNode( TypeRawPtr::make(con) ); |
79 } | 79 } |
80 }; | 80 }; |
81 | 81 |
82 | 82 |
83 //------------------------------ConNNode-------------------------------------- | 83 //------------------------------ConNNode-------------------------------------- |
96 ConLNode( const TypeLong *t ) : ConNode(t) {} | 96 ConLNode( const TypeLong *t ) : ConNode(t) {} |
97 virtual int Opcode() const; | 97 virtual int Opcode() const; |
98 | 98 |
99 // Factory method: | 99 // Factory method: |
100 static ConLNode* make( Compile *C ,jlong con ) { | 100 static ConLNode* make( Compile *C ,jlong con ) { |
101 return new (C, 1) ConLNode( TypeLong::make(con) ); | 101 return new (C) ConLNode( TypeLong::make(con) ); |
102 } | 102 } |
103 | 103 |
104 }; | 104 }; |
105 | 105 |
106 //------------------------------ConFNode--------------------------------------- | 106 //------------------------------ConFNode--------------------------------------- |
110 ConFNode( const TypeF *t ) : ConNode(t) {} | 110 ConFNode( const TypeF *t ) : ConNode(t) {} |
111 virtual int Opcode() const; | 111 virtual int Opcode() const; |
112 | 112 |
113 // Factory method: | 113 // Factory method: |
114 static ConFNode* make( Compile *C, float con ) { | 114 static ConFNode* make( Compile *C, float con ) { |
115 return new (C, 1) ConFNode( TypeF::make(con) ); | 115 return new (C) ConFNode( TypeF::make(con) ); |
116 } | 116 } |
117 | 117 |
118 }; | 118 }; |
119 | 119 |
120 //------------------------------ConDNode--------------------------------------- | 120 //------------------------------ConDNode--------------------------------------- |
124 ConDNode( const TypeD *t ) : ConNode(t) {} | 124 ConDNode( const TypeD *t ) : ConNode(t) {} |
125 virtual int Opcode() const; | 125 virtual int Opcode() const; |
126 | 126 |
127 // Factory method: | 127 // Factory method: |
128 static ConDNode* make( Compile *C, double con ) { | 128 static ConDNode* make( Compile *C, double con ) { |
129 return new (C, 1) ConDNode( TypeD::make(con) ); | 129 return new (C) ConDNode( TypeD::make(con) ); |
130 } | 130 } |
131 | 131 |
132 }; | 132 }; |
133 | 133 |
134 //------------------------------BinaryNode------------------------------------- | 134 //------------------------------BinaryNode------------------------------------- |