30 #include "opto/opcodes.hpp" |
30 #include "opto/opcodes.hpp" |
31 |
31 |
32 //------------------------------VectorNode-------------------------------------- |
32 //------------------------------VectorNode-------------------------------------- |
33 // Vector Operation |
33 // Vector Operation |
34 class VectorNode : public Node { |
34 class VectorNode : public Node { |
|
35 virtual uint size_of() const { return sizeof(*this); } |
35 protected: |
36 protected: |
36 uint _length; // vector length |
37 uint _length; // vector length |
37 virtual BasicType elt_basic_type() const = 0; // Vector element basic type |
38 virtual BasicType elt_basic_type() const = 0; // Vector element basic type |
38 |
39 |
39 static const Type* vect_type(BasicType elt_bt, uint len); |
40 static const Type* vect_type(BasicType elt_bt, uint len); |