src/Array.h
changeset 209 5cbec15fadfe
parent 188 bab29bcec7fe
child 234 26e3035cdffc
     1.1 --- a/src/Array.h	Sat Nov 17 22:02:08 2012 -0800
     1.2 +++ b/src/Array.h	Sat Nov 17 23:11:38 2012 -0800
     1.3 @@ -65,7 +65,7 @@
     1.4          return length_;
     1.5      }
     1.6  
     1.7 -    inline Type *type();
     1.8 +    inline ArrayType *type();
     1.9  
    1.10      inline int *int32Vec();
    1.11      inline float *floatVec();
    1.12 @@ -73,7 +73,7 @@
    1.13      inline void *bytes();
    1.14  
    1.15  
    1.16 -    static inline size_t SizeForElement(Type *type) {
    1.17 +    static inline size_t SizeForElement(ArrayType *type) {
    1.18          if (type->contained()->isTraceable())
    1.19              return sizeof(ke::Object *);
    1.20          if (type->contained()->isInt32())
    1.21 @@ -131,13 +131,13 @@
    1.22  
    1.23  class ArrayMap : public Map
    1.24  {
    1.25 -    Barriered<Type> type_;
    1.26 +    Barriered<ArrayType> type_;
    1.27  
    1.28    public:
    1.29 -    static ArrayMap *New(Zone *zone, Handle<Type> type);
    1.30 -    static ArrayMap *Attach(Zone *zone, Handle<Type> type);
    1.31 +    static ArrayMap *New(Zone *zone, Handle<ArrayType> type);
    1.32 +    static ArrayMap *Attach(Zone *zone, Handle<ArrayType> type);
    1.33  
    1.34 -    Type *type() {
    1.35 +    ArrayType *type() {
    1.36          return type_;
    1.37      }
    1.38  
    1.39 @@ -186,7 +186,7 @@
    1.40      return reinterpret_cast<char *>(bytes());
    1.41  }
    1.42  
    1.43 -inline Type *
    1.44 +inline ArrayType *
    1.45  Array::type()
    1.46  {
    1.47      return ArrayMap::cast(map())->type();