diff options
author | ehilsdal <ehilsdal> | 2003-01-14 22:59:28 +0000 |
---|---|---|
committer | ehilsdal <ehilsdal> | 2003-01-14 22:59:28 +0000 |
commit | 429c257522cb6e33e07aab634f608cb26fea3d6b (patch) | |
tree | aeef07b875cc724e18ab8f56fd1c7073260a3895 /weaver | |
parent | dd6a7bde18f00f528caa1bcb0abf8de9e9c4ab5c (diff) | |
download | aspectj-429c257522cb6e33e07aab634f608cb26fea3d6b.tar.gz aspectj-429c257522cb6e33e07aab634f608cb26fea3d6b.zip |
refraining from removing NOPs at thistime
Diffstat (limited to 'weaver')
-rw-r--r-- | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | 47 |
1 files 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) { |