2333 load(unaryNode.rhs()).neg().store(unaryNode.getSymbol()); |
2333 load(unaryNode.rhs()).neg().store(unaryNode.getSymbol()); |
2334 |
2334 |
2335 return false; |
2335 return false; |
2336 } |
2336 } |
2337 |
2337 |
|
2338 @Override |
|
2339 public boolean enterVOID(final UnaryNode unaryNode) { |
|
2340 load(unaryNode.rhs()).pop(); |
|
2341 method.loadUndefined(Type.OBJECT); |
|
2342 |
|
2343 return false; |
|
2344 } |
|
2345 |
2338 private Node enterNumericAdd(final Node lhs, final Node rhs, final Type type, final Symbol symbol) { |
2346 private Node enterNumericAdd(final Node lhs, final Node rhs, final Type type, final Symbol symbol) { |
2339 assert lhs.getType().equals(rhs.getType()) && lhs.getType().equals(type) : lhs.getType() + " != " + rhs.getType() + " != " + type + " " + new ASTWriter(lhs) + " " + new ASTWriter(rhs); |
2347 assert lhs.getType().equals(rhs.getType()) && lhs.getType().equals(type) : lhs.getType() + " != " + rhs.getType() + " != " + type + " " + new ASTWriter(lhs) + " " + new ASTWriter(rhs); |
2340 load(lhs); |
2348 load(lhs); |
2341 load(rhs); |
2349 load(rhs); |
2342 method.add(); //if the symbol is optimistic, it always needs to be written, not on the stack? |
2350 method.add(); //if the symbol is optimistic, it always needs to be written, not on the stack? |