From: brian Date: Thu, 1 Jul 2004 08:36:31 +0000 (+0000) Subject: hints support X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=6c5c8ed617e9e8f793cfbe9f0117440bfcb9a0a3;p=org.ibex.gcclass.git hints support darcs-hash:20040701083631-24bed-91dd5ec3c5f1f5d5cc44c0b66a8c816787263e69.gz --- diff --git a/src/com/brian_web/gcclass/GCClass.java b/src/com/brian_web/gcclass/GCClass.java index 02d89cb..86b4271 100644 --- a/src/com/brian_web/gcclass/GCClass.java +++ b/src/com/brian_web/gcclass/GCClass.java @@ -48,7 +48,12 @@ public class GCClass { System.exit(1); } GCClass gc = new GCClass(args[0]); - for(int i=2;i",Type.VOID,Type.NO_ARGS); if(findMethod(c,clinit) != null) referenceMethod(clinit); @@ -276,6 +305,11 @@ public class GCClass { else if(i instanceof InvokeInstruction) // INVOKESTATIC, INVOKEVIRTUAL, INVOKESPECIAL referenceMethod(new MethodRef((InvokeInstruction)i,cpg,mr)); } + + if(hints.get(mr) != null) { + Vector v = (Vector) hints.get(mr); + for(int i=0;i