diff -r 13bd3a8df334 -r 8e22792a3921 jitcraft/Types.cpp --- a/jitcraft/Types.cpp Sat Jul 07 17:11:31 2012 -0700 +++ b/jitcraft/Types.cpp Sat Jul 07 20:28:29 2012 -0700 @@ -17,12 +17,13 @@ */ #include "Types.h" #include "Zone.h" +#include "Strings.h" #include "Heap-inl.h" using namespace jc; Type * -Type::NewPrimitive(Zone *zone, Name *tag) +Type::NewPrimitive(Zone *zone, Handle tag) { Local type(zone, Type::cast(zone->allocate(MapKind_Type, sizeof(Type), Heap::Tenure_Old))); if (!type) @@ -34,9 +35,9 @@ type->returnType_ = NULL; type->parameters_ = NULL; - if (tag && strcmp(tag, "Float") == 0) + if (tag && strcmp(tag->chars(), "Float") == 0) type->primitive_ = PrimitiveType_Float; - else if (tag && strcmp(tag, "String") == 0) + else if (tag && strcmp(tag->chars(), "String") == 0) type->primitive_ = PrimitiveType_Char; else type->primitive_ = PrimitiveType_Int32;