139 void clear_to_pairs() { _mask.clear_to_pairs(); debug_only(_msize_valid=0;) } |
139 void clear_to_pairs() { _mask.clear_to_pairs(); debug_only(_msize_valid=0;) } |
140 void clear_to_sets() { _mask.clear_to_sets(_num_regs); debug_only(_msize_valid=0;) } |
140 void clear_to_sets() { _mask.clear_to_sets(_num_regs); debug_only(_msize_valid=0;) } |
141 |
141 |
142 // Number of registers this live range uses when it colors |
142 // Number of registers this live range uses when it colors |
143 private: |
143 private: |
144 uint8_t _num_regs; // 2 for Longs and Doubles, 1 for all else |
144 uint16_t _num_regs; // 2 for Longs and Doubles, 1 for all else |
145 // except _num_regs is kill count for fat_proj |
145 // except _num_regs is kill count for fat_proj |
146 public: |
146 public: |
147 int num_regs() const { return _num_regs; } |
147 int num_regs() const { return _num_regs; } |
148 void set_num_regs( int reg ) { assert( _num_regs == reg || !_num_regs, "" ); _num_regs = reg; } |
148 void set_num_regs( int reg ) { assert( _num_regs == reg || !_num_regs, "" ); _num_regs = reg; } |
149 |
149 |
150 private: |
150 private: |
151 // Number of physical registers this live range uses when it colors |
151 // Number of physical registers this live range uses when it colors |
152 // Architecture and register-set dependent |
152 // Architecture and register-set dependent |
153 uint8_t _reg_pressure; |
153 uint16_t _reg_pressure; |
154 public: |
154 public: |
155 void set_reg_pressure(int i) { _reg_pressure = i; } |
155 void set_reg_pressure(int i) { _reg_pressure = i; } |
156 int reg_pressure() const { return _reg_pressure; } |
156 int reg_pressure() const { return _reg_pressure; } |
157 |
157 |
158 // How much 'wiggle room' does this live range have? |
158 // How much 'wiggle room' does this live range have? |