mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Made small change to statement generator for monitor instructions.
This commit is contained in:
parent
68aa193728
commit
d37da2b078
|
@ -673,10 +673,7 @@ class StatementGenerator implements InstructionVisitor {
|
|||
MonitorEnterStatement stmt = new MonitorEnterStatement();
|
||||
stmt.setLocation(currentLocation);
|
||||
|
||||
VariableExpr expr = new VariableExpr();
|
||||
expr.setIndex(insn.getObjectRef().getIndex());
|
||||
expr.setLocation(currentLocation);
|
||||
stmt.setObjectRef(expr);
|
||||
stmt.setObjectRef(Expr.var(insn.getObjectRef().getIndex()));
|
||||
statements.add(stmt);
|
||||
}
|
||||
|
||||
|
@ -684,10 +681,8 @@ class StatementGenerator implements InstructionVisitor {
|
|||
public void visit(MonitorExitInstruction insn) {
|
||||
MonitorExitStatement stmt = new MonitorExitStatement();
|
||||
stmt.setLocation(currentLocation);
|
||||
VariableExpr expr = new VariableExpr();
|
||||
expr.setLocation(currentLocation);
|
||||
expr.setIndex(insn.getObjectRef().getIndex());
|
||||
stmt.setObjectRef(expr);
|
||||
|
||||
stmt.setObjectRef(Expr.var(insn.getObjectRef().getIndex()));
|
||||
statements.add(stmt);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user