org.apache.commons.nabla.forward.trimming
Class SwappedDstoreTrimmer
java.lang.Object
org.apache.commons.nabla.forward.trimming.BytecodeTrimmer
org.apache.commons.nabla.forward.trimming.SwappedDstoreTrimmer
public class SwappedDstoreTrimmer
- extends BytecodeTrimmer
Trimmer replacing (DUP2_X2, POP2, DSTORE i, DSTORE j) with (DSTORE j, DSTORE i).
- Version:
- $Id$
Method Summary |
protected boolean |
trimWindow(org.objectweb.asm.tree.InsnList instructions,
org.objectweb.asm.tree.AbstractInsnNode[] window)
Trim the current window of lookahead instructions. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SwappedDstoreTrimmer
public SwappedDstoreTrimmer()
- Simple constructor.
trimWindow
protected boolean trimWindow(org.objectweb.asm.tree.InsnList instructions,
org.objectweb.asm.tree.AbstractInsnNode[] window)
- Trim the current window of lookahead instructions.
- Specified by:
trimWindow
in class BytecodeTrimmer
- Parameters:
instructions
- complete instructions list of instructions to trimwindow
- current instructions window (belongs to the list)
- Returns:
- true if instructions and window have been updated and are ready
for next iteration
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.