src/TypeManager.cpp
changeset 261 219b49bf4a03
parent 256 3c184218462d
child 263 ba85a47ee414
     1.1 --- a/src/TypeManager.cpp	Sat Jan 12 16:35:26 2013 -0800
     1.2 +++ b/src/TypeManager.cpp	Sun Jan 27 17:34:30 2013 -0800
     1.3 @@ -52,6 +52,10 @@
     1.4      if (!importableType_)
     1.5          return false;
     1.6  
     1.7 +    typeType_ = Type::NewType(zone_);
     1.8 +    if (!typeType_)
     1.9 +        return false;
    1.10 +
    1.11      if ((primitiveTypes_[PrimitiveType_Int32] = Type::NewPrimitive(zone_, PrimitiveType_Int32)) == NULL)
    1.12          return false;
    1.13      if ((primitiveTypes_[PrimitiveType_Float] = Type::NewPrimitive(zone_, PrimitiveType_Float)) == NULL)
    1.14 @@ -141,6 +145,7 @@
    1.15      visitor->visit(uncheckedType_.address());
    1.16      visitor->visit(stringType_.address());
    1.17      visitor->visit(importableType_.address());
    1.18 +    visitor->visit(typeType_.address());
    1.19      for (unsigned i = 0; i < PrimitiveTypes_Total; i++) {
    1.20          visitor->visit(primitiveTypes_[i].address());
    1.21          visitor->visit(referenceTypes_[i].address());