diff -r cbba1997dc71 -r b765a6383849 jitcraft/Types.cpp --- a/jitcraft/Types.cpp Mon Jul 09 21:40:20 2012 -0700 +++ b/jitcraft/Types.cpp Mon Jul 09 22:25:52 2012 -0700 @@ -82,7 +82,7 @@ } Type * -Type::NewReference(Zone *zone, Handle contained) +Type::NewReference(Zone *zone, Handle contained, bool isConst) { Local type(zone, Type::cast(zone->allocate(MapKind_Type, sizeof(Type), Heap::Tenure_Old))); if (!type) @@ -93,6 +93,7 @@ type->contained_ = contained; type->returnType_ = NULL; type->parameters_ = NULL; + type->const_ = isConst; return type; }