mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-09 00:14:10 -08:00
Fixed issue with the instruction copier. Now it builds ok with synchronized instruction. Getting an error at runtime...
This commit is contained in:
parent
d37da2b078
commit
21468ef419
|
@ -63,7 +63,7 @@ public class Renderer implements ExprVisitor, StatementVisitor, RenderingContext
|
||||||
Object.class, "monitorEnter", Object.class, void.class);
|
Object.class, "monitorEnter", Object.class, void.class);
|
||||||
|
|
||||||
writer.appendMethodBody(monitorEnterRef).append("(");
|
writer.appendMethodBody(monitorEnterRef).append("(");
|
||||||
statement.acceptVisitor(this);
|
statement.getObjectRef().acceptVisitor(this);
|
||||||
writer.append(");").softNewLine();
|
writer.append(");").softNewLine();
|
||||||
|
|
||||||
} catch (IOException ex){
|
} catch (IOException ex){
|
||||||
|
@ -80,7 +80,7 @@ public class Renderer implements ExprVisitor, StatementVisitor, RenderingContext
|
||||||
Object.class, "monitorExit", Object.class, void.class);
|
Object.class, "monitorExit", Object.class, void.class);
|
||||||
|
|
||||||
writer.appendMethodBody(monitorExitRef).append("(");
|
writer.appendMethodBody(monitorExitRef).append("(");
|
||||||
statement.acceptVisitor(this);
|
statement.getObjectRef().acceptVisitor(this);
|
||||||
writer.append(");").softNewLine();
|
writer.append(");").softNewLine();
|
||||||
} catch (IOException ex){
|
} catch (IOException ex){
|
||||||
throw new RenderingException("IO error occured", ex);
|
throw new RenderingException("IO error occured", ex);
|
||||||
|
|
|
@ -204,11 +204,11 @@ class InstructionReadVisitor implements InstructionVisitor {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void visit(MonitorEnterInstruction insn) {
|
public void visit(MonitorEnterInstruction insn) {
|
||||||
|
reader.monitorEnter(insn.getObjectRef());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void visit(MonitorExitInstruction insn) {
|
public void visit(MonitorExitInstruction insn) {
|
||||||
|
reader.monitorExit(insn.getObjectRef());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user