]> source.dussan.org Git - javassist.git/commitdiff
for JIRA-95
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Mon, 19 Oct 2009 06:02:16 +0000 (06:02 +0000)
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Mon, 19 Oct 2009 06:02:16 +0000 (06:02 +0000)
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@498 30ef5769-5b8d-40dd-aea6-55b5d6557bb3

src/main/javassist/bytecode/stackmap/MapMaker.java

index c9fde029453aafcbaccd2a88b02e4f46f85872ab..ab5c863adafbef17e881c1248ec9f8d768ad2786 100644 (file)
@@ -462,7 +462,6 @@ public class MapMaker extends Tracer {
 
         return num;
     }
-<<<<<<< .mine
 
     // Phase 3 for J2ME
 
@@ -512,44 +511,4 @@ public class MapMaker extends Tracer {
             }
         }
     }
-=======
-
-    // Phase 3 for J2ME
-
-    public StackMap toStackMap2(ConstPool cp, TypedBlock[] blocks) {
-        StackMap.Writer writer = new StackMap.Writer();
-        int n = blocks.length;
-        int i; 
-        if (blocks[0].incoming > 0)  // the first instruction is a branch target.
-            i = 1;
-        else
-            i = 0;
-
-        writer.write16bit(n - i);
-        for (; i < n; i++)
-            writeStackFrame(writer, cp, blocks[i].position, blocks[i]);
-
-        return writer.toStackMap(cp);
-    }
-
-    private void writeStackFrame(StackMap.Writer writer, ConstPool cp, int offset, TypedBlock tb) {
-        writer.write16bit(offset);
-        writeVerifyTypeInfo(writer, cp, tb.localsTypes, tb.numLocals);
-        writeVerifyTypeInfo(writer, cp, tb.stackTypes, tb.stackTop);
-    }
-
-    private void writeVerifyTypeInfo(StackMap.Writer writer, ConstPool cp, TypeData[] types, int num) {
-        writer.write16bit(num);
-        for (int i = 0; i < num; i++) {
-            TypeData td = types[i];
-            if (td == TOP)
-                writer.writeVerifyTypeInfo(StackMap.TOP, 0);
-            else {
-                writer.writeVerifyTypeInfo(td.getTypeTag(), td.getTypeData(cp));
-                if (td.is2WordType())
-                    i++;
-            }
-        }
-    }
->>>>>>> .r495
 }