1.1 --- a/jitcraft/Types.h Tue Jul 03 01:25:23 2012 -0700
1.2 +++ b/jitcraft/Types.h Tue Jul 03 08:30:09 2012 -0700
1.3 @@ -1,4 +1,5 @@
1.4 -/*
1.5 +/* vim: set ts=4 sw=4 tw=99 et:
1.6 + *
1.7 * Copyright (C) 2012 David Anderson
1.8 *
1.9 * This file is part of JITCraft.
1.10 @@ -129,6 +130,18 @@
1.11 return Type::cast(parameters()->at(i));
1.12 }
1.13
1.14 + // GC Descriptor.
1.15 + static inline size_t offsetOfContained() {
1.16 + return offsetof(Type, contained_);
1.17 + }
1.18 + static inline size_t offsetOfReturnType() {
1.19 + return offsetof(Type, returnType_);
1.20 + }
1.21 + static inline size_t offsetOfParameters() {
1.22 + return offsetof(Type, parameters_);
1.23 + }
1.24 + // End GC Descriptor.
1.25 +
1.26 private:
1.27 Kind kind_;
1.28 PrimitiveType primitive_;