Mercurial > hg > truffle
comparison src/share/vm/ci/ciMethodBlocks.hpp @ 367:194b8e3a2fc4
6384206: Phis which are later unneeded are impairing our ability to inline based on static types
Reviewed-by: rasbold, jrose
author | never |
---|---|
date | Wed, 17 Sep 2008 12:59:52 -0700 |
parents | d1605aabd0a1 |
children | c18cbe5936b8 |
comparison
equal
deleted
inserted
replaced
366:8261ee795323 | 367:194b8e3a2fc4 |
---|---|
46 ciBlock *split_block_at(int bci); | 46 ciBlock *split_block_at(int bci); |
47 bool is_block_start(int bci); | 47 bool is_block_start(int bci); |
48 int num_blocks() { return _num_blocks;} | 48 int num_blocks() { return _num_blocks;} |
49 void clear_processed(); | 49 void clear_processed(); |
50 | 50 |
51 ciBlock *make_dummy_block(); // a block not associated with a bci | |
52 | |
51 #ifndef PRODUCT | 53 #ifndef PRODUCT |
52 void dump(); | 54 void dump(); |
53 #endif | 55 #endif |
54 }; | 56 }; |
55 | 57 |
79 public: | 81 public: |
80 enum { | 82 enum { |
81 fall_through_bci = -1 | 83 fall_through_bci = -1 |
82 }; | 84 }; |
83 | 85 |
84 ciBlock(ciMethod *method, int index, ciMethodBlocks *mb, int start_bci); | 86 ciBlock(ciMethod *method, int index, int start_bci); |
85 int start_bci() const { return _start_bci; } | 87 int start_bci() const { return _start_bci; } |
86 int limit_bci() const { return _limit_bci; } | 88 int limit_bci() const { return _limit_bci; } |
87 int control_bci() const { return _control_bci; } | 89 int control_bci() const { return _control_bci; } |
88 int index() const { return _idx; } | 90 int index() const { return _idx; } |
89 void set_start_bci(int bci) { _start_bci = bci; } | 91 void set_start_bci(int bci) { _start_bci = bci; } |
91 void set_control_bci(int bci) { _control_bci = bci;} | 93 void set_control_bci(int bci) { _control_bci = bci;} |
92 void set_exception_range(int start_bci, int limit_bci); | 94 void set_exception_range(int start_bci, int limit_bci); |
93 int ex_start_bci() const { return _ex_start_bci; } | 95 int ex_start_bci() const { return _ex_start_bci; } |
94 int ex_limit_bci() const { return _ex_limit_bci; } | 96 int ex_limit_bci() const { return _ex_limit_bci; } |
95 bool contains(int bci) const { return start_bci() <= bci && bci < limit_bci(); } | 97 bool contains(int bci) const { return start_bci() <= bci && bci < limit_bci(); } |
96 | |
97 | 98 |
98 // flag handling | 99 // flag handling |
99 bool processed() const { return (_flags & Processed) != 0; } | 100 bool processed() const { return (_flags & Processed) != 0; } |
100 bool is_handler() const { return (_flags & Handler) != 0; } | 101 bool is_handler() const { return (_flags & Handler) != 0; } |
101 bool may_throw() const { return (_flags & MayThrow) != 0; } | 102 bool may_throw() const { return (_flags & MayThrow) != 0; } |