src/share/vm/opto/vectornode.hpp

changeset 464
d5fc211aea19
parent 435
a61af66fc99e
child 631
d1605aabd0a1
     1.1 --- a/src/share/vm/opto/vectornode.hpp	Fri Feb 22 17:55:13 2008 -0800
     1.2 +++ b/src/share/vm/opto/vectornode.hpp	Mon Feb 25 15:05:44 2008 -0800
     1.3 @@ -48,7 +48,7 @@
     1.4    uint length() const { return _length; } // Vector length
     1.5  
     1.6    static uint max_vlen(BasicType bt) { // max vector length
     1.7 -    return (uint)(Matcher::vector_width_in_bytes() / type2aelembytes[bt]);
     1.8 +    return (uint)(Matcher::vector_width_in_bytes() / type2aelembytes(bt));
     1.9    }
    1.10  
    1.11    // Element and vector type
    1.12 @@ -392,7 +392,7 @@
    1.13  
    1.14    virtual uint ideal_reg() const  { return Matcher::vector_ideal_reg(); }
    1.15    virtual BasicType memory_type() const { return T_VOID; }
    1.16 -  virtual int memory_size() const { return length()*type2aelembytes[elt_basic_type()]; }
    1.17 +  virtual int memory_size() const { return length()*type2aelembytes(elt_basic_type()); }
    1.18  
    1.19    // Vector opcode from scalar opcode
    1.20    static int opcode(int sopc, uint vlen);
    1.21 @@ -620,7 +620,7 @@
    1.22  
    1.23    virtual uint ideal_reg() const  { return Matcher::vector_ideal_reg(); }
    1.24    virtual BasicType memory_type() const { return T_VOID; }
    1.25 -  virtual int memory_size() const { return length()*type2aelembytes[elt_basic_type()]; }
    1.26 +  virtual int memory_size() const { return length()*type2aelembytes(elt_basic_type()); }
    1.27  
    1.28    // Vector opcode from scalar opcode
    1.29    static int opcode(int sopc, uint vlen);

mercurial