[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] pnet/ilasm ilasm_output.c,1.20,1.21
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] pnet/ilasm ilasm_output.c,1.20,1.21 |
Date: |
Tue, 30 Sep 2003 01:38:16 +0000 |
Update of /cvsroot/dotgnu-pnet/pnet/ilasm
In directory subversions:/tmp/cvs-serv19571/ilasm
Modified Files:
ilasm_output.c
Log Message:
Fix the "compact" profile.
Index: ilasm_output.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/ilasm/ilasm_output.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** ilasm_output.c 29 Sep 2003 05:42:42 -0000 1.20
--- ilasm_output.c 30 Sep 2003 01:38:14 -0000 1.21
***************
*** 1821,1824 ****
--- 1821,1825 ----
LabelInfo *label;
+ #ifdef IL_CONFIG_JAVA
/* check if parsing java method */
if(ILAsmParseJava)
***************
*** 1909,1912 ****
--- 1910,1914 ----
}
else
+ #endif
{
***************
*** 2254,2258 ****
--- 2256,2262 ----
void ILJavaAsmInitPool()
{
+ #ifdef IL_CONFIG_JAVA
ILJavaInitPool(ILAsmWriter, ILAsmClass);
+ #endif
}
***************
*** 2294,2297 ****
--- 2298,2303 ----
}
+ #ifdef IL_CONFIG_JAVA
+
static void OutConst32(int index)
{
***************
*** 2316,2349 ****
--- 2322,2366 ----
}
+ #endif
+
void ILJavaAsmOutConstInt32(ILInt32 opcode, ILInt64 value)
{
+ #ifdef IL_CONFIG_JAVA
int index = ILJavaSetInteger(ILAsmWriter, ILAsmClass, (ILInt32)value);
OutConst32(index);
+ #endif
}
void ILJavaAsmOutConstInt64(ILInt32 opcode, ILInt64 value)
{
+ #ifdef IL_CONFIG_JAVA
int index = ILJavaSetLong(ILAsmWriter, ILAsmClass, value);
OutConst64(index);
+ #endif
}
void ILJavaAsmOutConstFloat32(ILInt32 opcode, ILUInt8 *value)
{
+ #ifdef IL_CONFIG_JAVA
int index = ILJavaSetFloat(ILAsmWriter, ILAsmClass,
IL_READ_FLOAT(value));
OutConst32(index);
+ #endif
}
void ILJavaAsmOutConstFloat64(ILInt32 opcode, ILUInt8 *value)
{
+ #ifdef IL_CONFIG_JAVA
int index = ILJavaSetDouble(ILAsmWriter, ILAsmClass,
IL_READ_DOUBLE(value));
OutConst64(index);
+ #endif
}
void ILJavaAsmOutString(ILIntString interned)
{
+ #ifdef IL_CONFIG_JAVA
int strIndex = ILJavaSetUTF8String(ILAsmWriter, ILAsmClass,
interned.string,
interned.len);
***************
*** 2351,2358 ****
--- 2368,2377 ----
OutConst32(index);
+ #endif
}
void ILJavaAsmOutToken(ILInt32 opcode, ILUInt32 token)
{
+ #ifdef IL_CONFIG_JAVA
ILMember *member;
ILClass *class;
***************
*** 2398,2401 ****
--- 2417,2421 ----
OUT_BYTE(index >> 8);
OUT_BYTE(index);
+ #endif
}
***************
*** 2403,2406 ****
--- 2423,2427 ----
char *refName, char *sigName)
{
+ #ifdef IL_CONFIG_JAVA
int index =
ILJavaSetrefFromName(ILAsmWriter, ILAsmClass,
***************
*** 2411,2418 ****
--- 2432,2441 ----
OUT_BYTE(index >> 8);
OUT_BYTE(index);
+ #endif
}
void ILJavaAsmOutType(ILInt32 opcode, char *className)
{
+ #ifdef IL_CONFIG_JAVA
int index = ILJavaSetClassFromName(ILAsmWriter, ILAsmClass, className);
***************
*** 2420,2423 ****
--- 2443,2447 ----
OUT_BYTE(index >> 8);
OUT_BYTE(index);
+ #endif
}
***************
*** 2430,2433 ****
--- 2454,2458 ----
void ILJavaAsmOutMultinewarray(ILInt32 opcode, ILType *type, ILInt64 dim)
{
+ #ifdef IL_CONFIG_JAVA
int index = ILJavaSetClassFromType(ILAsmWriter, ILAsmClass, type);
***************
*** 2436,2443 ****
--- 2461,2470 ----
OUT_BYTE(index);
OUT_BYTE(dim);
+ #endif
}
void ILJavaAsmOutMultinewarrayFromName(ILInt32 opcode, char *typeName,
ILInt64 dim)
{
+ #ifdef IL_CONFIG_JAVA
int index = ILJavaSetClassFromName(ILAsmWriter, ILAsmClass, typeName);
***************
*** 2446,2449 ****
--- 2473,2477 ----
OUT_BYTE(index);
OUT_BYTE(dim);
+ #endif
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] pnet/ilasm ilasm_output.c,1.20,1.21,
Rhys Weatherley <address@hidden> <=