1.1 --- a/jitcraft/Types.h Thu Jul 12 00:38:00 2012 -0700
1.2 +++ b/jitcraft/Types.h Sat Jul 14 18:43:34 2012 -0700
1.3 @@ -43,7 +43,8 @@
1.4 ARRAY,
1.5 REFERENCE,
1.6 FUNCTION,
1.7 - NATIVE
1.8 + NATIVE,
1.9 + VOID
1.10 };
1.11
1.12 private:
1.13 @@ -55,6 +56,7 @@
1.14 static const int UNKNOWN_SIZE = -1;
1.15 static const size_t MAX_UNSAFE_ARRAY_DEPTH = 5;
1.16
1.17 + static Type *NewVoid(Zone *zone);
1.18 static Type *NewPrimitive(Zone *zone, Handle<String> tag);
1.19 static Type *NewPrimitive(Zone *zone, PrimitiveType type);
1.20 static Type *NewArray(Zone *zone, Handle<Type> contained, int elements, bool isConst);
1.21 @@ -84,6 +86,9 @@
1.22 bool isNative() {
1.23 return kind() == NATIVE;
1.24 }
1.25 + bool isVoid() {
1.26 + return kind() == VOID;
1.27 + }
1.28 bool isNativeVariadic() {
1.29 assert(isNative());
1.30 return variadicNative_;