aboutsummaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
authorehilsdal <ehilsdal>2003-01-14 22:59:28 +0000
committerehilsdal <ehilsdal>2003-01-14 22:59:28 +0000
commit429c257522cb6e33e07aab634f608cb26fea3d6b (patch)
treeaeef07b875cc724e18ab8f56fd1c7073260a3895 /weaver
parentdd6a7bde18f00f528caa1bcb0abf8de9e9c4ab5c (diff)
downloadaspectj-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.java47
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) {