src/share/vm/adlc/formssel.hpp

changeset 5221
f15fe46d8c00
parent 4161
d336b3173277
child 5288
7fa25f5575c9
     1.1 --- a/src/share/vm/adlc/formssel.hpp	Thu May 30 11:21:01 2013 +0200
     1.2 +++ b/src/share/vm/adlc/formssel.hpp	Thu May 30 08:37:08 2013 -0700
     1.3 @@ -106,7 +106,7 @@
     1.4    const char    *_ins_pipe;        // Instruction Scheduling description class
     1.5  
     1.6    uint          *_uniq_idx;        // Indexes of unique operands
     1.7 -  int            _uniq_idx_length; // Length of _uniq_idx array
     1.8 +  uint           _uniq_idx_length; // Length of _uniq_idx array
     1.9    uint           _num_uniq;        // Number  of unique operands
    1.10    ComponentList  _components;      // List of Components matches MachNode's
    1.11                                     // operand structure
    1.12 @@ -272,14 +272,14 @@
    1.13    void                set_unique_opnds();
    1.14    uint                num_unique_opnds() { return _num_uniq; }
    1.15    uint                unique_opnds_idx(int idx) {
    1.16 -                        if( _uniq_idx != NULL && idx > 0 ) {
    1.17 -                          assert(idx < _uniq_idx_length, "out of bounds");
    1.18 -                          return _uniq_idx[idx];
    1.19 -                        } else {
    1.20 -                          return idx;
    1.21 -                        }
    1.22 +    if (_uniq_idx != NULL && idx > 0) {
    1.23 +      assert((uint)idx < _uniq_idx_length, "out of bounds");
    1.24 +      return _uniq_idx[idx];
    1.25 +    } else {
    1.26 +      return idx;
    1.27 +    }
    1.28    }
    1.29 -  const char         *unique_opnd_ident(int idx);  // Name of operand at unique idx.
    1.30 +  const char         *unique_opnd_ident(uint idx);  // Name of operand at unique idx.
    1.31  
    1.32    // Operands which are only KILLs aren't part of the input array and
    1.33    // require special handling in some cases.  Their position in this

mercurial