/*
* jitc.h - Definitions for the JIT coder.
*
* Copyright (C) 2001 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef _ENGINE_JITC_H
#define _ENGINE_JITC_H
#ifdef IL_USE_JIT
#include "jit/jit.h"
/*
* Map the native IL types to JIT types.
*/
#define _IL_JIT_TYPE_BYTE jit_type_ubyte
#define _IL_JIT_TYPE_CHAR jit_type_ushort
#define _IL_JIT_TYPE_DOUBLE jit_type_float64
#define _IL_JIT_TYPE_INT16 jit_type_short
#define _IL_JIT_TYPE_INT32 jit_type_int
#define _IL_JIT_TYPE_INT64 jit_type_long
#define _IL_JIT_TYPE_INTPTR jit_type_void_ptr
#define _IL_JIT_TYPE_SBYTE jit_type_sbyte
#define _IL_JIT_TYPE_SINGLE jit_type_float32
#define _IL_JIT_TYPE_UINT16 jit_type_ushort
#define _IL_JIT_TYPE_UINT32 jit_type_uint
#define _IL_JIT_TYPE_UINT64 jit_type_ulong
/*
* Definition of method metadata indexes.
*/
#define IL_JIT_META_METHOD 1
/*
* Representation of a type representation for lingit.
*/
typedef jit_type_t ILJitType;
/*
* Representation of a method representation for lingit.
*/
typedef jit_method_t ILJitMethod;
#endif /* IL_USE_JIT */
#endif /* _ENGINE_JITC_H */