15 * version 2 for more details (a copy is included in the LICENSE file that
16 * accompanied this code).
17 *
18 * You should have received a copy of the GNU General Public License version
19 * 2 along with this work; if not, write to the Free Software Foundation,
20 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21 *
22 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
23 * CA 95054 USA or visit www.sun.com if you need additional information or
24 * have any questions.
25 *
26 */
27
28 class ciMethod;
29
30 class MethodLivenessResult : public BitMap {
31 private:
32 bool _is_valid;
33
34 public:
35 MethodLivenessResult(uintptr_t* map, idx_t size_in_bits)
36 : BitMap(map, size_in_bits)
37 , _is_valid(false)
38 {}
39
40 MethodLivenessResult(idx_t size_in_bits)
41 : BitMap(size_in_bits)
42 , _is_valid(false)
43 {}
44
45 void set_is_valid() { _is_valid = true; }
46 bool is_valid() { return _is_valid; }
47 };
48
49 class MethodLiveness : public ResourceObj {
50 public:
51 // The BasicBlock class is used to represent a basic block in the
52 // liveness analysis.
53 class BasicBlock : public ResourceObj {
54 private:
55 // This class is only used by the MethodLiveness class.
|
15 * version 2 for more details (a copy is included in the LICENSE file that
16 * accompanied this code).
17 *
18 * You should have received a copy of the GNU General Public License version
19 * 2 along with this work; if not, write to the Free Software Foundation,
20 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21 *
22 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
23 * CA 95054 USA or visit www.sun.com if you need additional information or
24 * have any questions.
25 *
26 */
27
28 class ciMethod;
29
30 class MethodLivenessResult : public BitMap {
31 private:
32 bool _is_valid;
33
34 public:
35 MethodLivenessResult(BitMap::bm_word_t* map, idx_t size_in_bits)
36 : BitMap(map, size_in_bits)
37 , _is_valid(false)
38 {}
39
40 MethodLivenessResult(idx_t size_in_bits)
41 : BitMap(size_in_bits)
42 , _is_valid(false)
43 {}
44
45 void set_is_valid() { _is_valid = true; }
46 bool is_valid() { return _is_valid; }
47 };
48
49 class MethodLiveness : public ResourceObj {
50 public:
51 // The BasicBlock class is used to represent a basic block in the
52 // liveness analysis.
53 class BasicBlock : public ResourceObj {
54 private:
55 // This class is only used by the MethodLiveness class.
|