src/TypeManager.cpp
changeset 256 3c184218462d
parent 247 7721042bdb67
child 261 219b49bf4a03
     1.1 --- a/src/TypeManager.cpp	Tue Jan 01 20:08:34 2013 -0800
     1.2 +++ b/src/TypeManager.cpp	Sun Jan 06 13:52:21 2013 -0800
     1.3 @@ -48,6 +48,10 @@
     1.4      if (!stringType_)
     1.5          return false;
     1.6  
     1.7 +    importableType_ = Type::NewImportable(zone_);
     1.8 +    if (!importableType_)
     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 @@ -136,6 +140,7 @@
    1.15      visitor->visit(voidType_.address());
    1.16      visitor->visit(uncheckedType_.address());
    1.17      visitor->visit(stringType_.address());
    1.18 +    visitor->visit(importableType_.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());