From 429c257522cb6e33e07aab634f608cb26fea3d6b Mon Sep 17 00:00:00 2001 From: ehilsdal Date: Tue, 14 Jan 2003 22:59:28 +0000 Subject: [PATCH] refraining from removing NOPs at thistime --- .../aspectj/weaver/bcel/LazyMethodGen.java | 47 ++++++++++--------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java b/weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java index 5b4ef7d9d..b7c46d50a 100644 --- a/weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java +++ b/weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java @@ -348,7 +348,7 @@ public final class LazyMethodGen { } void run() { - killNops(); + //killNops(); assignLabels(); print(); } @@ -810,28 +810,29 @@ public final class LazyMethodGen { } - - public void killNops() { - InstructionHandle curr = body.getStart(); - while (true) { - if (curr == null) break; - InstructionHandle next = curr.getNext(); - if (curr.getInstruction() instanceof NOP) { - InstructionTargeter[] targeters = curr.getTargeters(); - if (targeters != null) { - for (int i = 0, len = targeters.length; i < len; i++) { - InstructionTargeter targeter = targeters[i]; - targeter.updateTarget(curr, next); - } - } - try { - body.delete(curr); - } catch (TargetLostException e) { - } - } - curr = next; - } - } + /** This proedure should not currently be used. + */ +// public void killNops() { +// InstructionHandle curr = body.getStart(); +// while (true) { +// if (curr == null) break; +// InstructionHandle next = curr.getNext(); +// if (curr.getInstruction() instanceof NOP) { +// InstructionTargeter[] targeters = curr.getTargeters(); +// if (targeters != null) { +// for (int i = 0, len = targeters.length; i < len; i++) { +// InstructionTargeter targeter = targeters[i]; +// targeter.updateTarget(curr, next); +// } +// } +// try { +// body.delete(curr); +// } catch (TargetLostException e) { +// } +// } +// curr = next; +// } +// } private static InstructionHandle remap(InstructionHandle ih, Map map) { while (true) { -- 2.39.5