1.1 --- a/jitcraft/Types.cpp Sat Jul 07 17:11:31 2012 -0700
1.2 +++ b/jitcraft/Types.cpp Sat Jul 07 20:28:29 2012 -0700
1.3 @@ -17,12 +17,13 @@
1.4 */
1.5 #include "Types.h"
1.6 #include "Zone.h"
1.7 +#include "Strings.h"
1.8 #include "Heap-inl.h"
1.9
1.10 using namespace jc;
1.11
1.12 Type *
1.13 -Type::NewPrimitive(Zone *zone, Name *tag)
1.14 +Type::NewPrimitive(Zone *zone, Handle<String> tag)
1.15 {
1.16 Local<Type> type(zone, Type::cast(zone->allocate(MapKind_Type, sizeof(Type), Heap::Tenure_Old)));
1.17 if (!type)
1.18 @@ -34,9 +35,9 @@
1.19 type->returnType_ = NULL;
1.20 type->parameters_ = NULL;
1.21
1.22 - if (tag && strcmp(tag, "Float") == 0)
1.23 + if (tag && strcmp(tag->chars(), "Float") == 0)
1.24 type->primitive_ = PrimitiveType_Float;
1.25 - else if (tag && strcmp(tag, "String") == 0)
1.26 + else if (tag && strcmp(tag->chars(), "String") == 0)
1.27 type->primitive_ = PrimitiveType_Char;
1.28 else
1.29 type->primitive_ = PrimitiveType_Int32;