getLValuePriority

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@682 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 494d36eaab
commit e2061d9d3c
  1. 4
      jode/jode/expr/LocalStoreOperator.java
  2. 4
      jode/jode/expr/PutFieldOperator.java
  3. 2
      jode/jode/expr/StoreInstruction.java

@ -64,6 +64,10 @@ public class LocalStoreOperator extends StoreInstruction
== local.getSlot(); == local.getSlot();
} }
public int getLValuePriority() {
return 1000;
}
public int getLValueOperandCount() { public int getLValueOperandCount() {
return 0; return 0;
} }

@ -75,6 +75,10 @@ public class PutFieldOperator extends StoreInstruction {
&& ((GetFieldOperator)loadop).ref.equals(ref); && ((GetFieldOperator)loadop).ref.equals(ref);
} }
public int getLValuePriority() {
return 950;
}
public int getLValueOperandCount() { public int getLValueOperandCount() {
return staticFlag?0:1; return staticFlag?0:1;
} }

@ -84,6 +84,8 @@ public abstract class StoreInstruction extends Operator
return 100; return 100;
} }
public abstract int getLValuePriority();
public Type getOperandType(int i) { public Type getOperandType(int i) {
if (i == getLValueOperandCount()) { if (i == getLValueOperandCount()) {
if (getOperatorIndex() == ASSIGN_OP) if (getOperatorIndex() == ASSIGN_OP)

Loading…
Cancel
Save