public void emit1(CommonTree opAST, short opcode, String s) { int i = defineString(s); emit1(opAST, opcode, i); }
public void emit2(CommonTree opAST, short opcode, int arg, int arg2) { emit(opAST, opcode); ensureCapacity(Bytecode.OPND_SIZE_IN_BYTES * 2); writeShort(impl.instrs, ip, (short)arg); ip += Bytecode.OPND_SIZE_IN_BYTES; writeShort(impl.instrs, ip, (short)arg2); ip += Bytecode.OPND_SIZE_IN_BYTES; }
public void emit2(CommonTree opAST, short opcode, String s, int arg2) { int i = defineString(s); emit2(opAST, opcode, i, arg2); }
public void emit1(CommonTree opAST, short opcode, int arg) { ((template_scope)template_stack.peek()).state.emit1(opAST, opcode, arg); } public void emit1(CommonTree opAST, short opcode, String arg) {
public void emit2(CommonTree opAST, short opcode, int arg, int arg2) { ((template_scope)template_stack.peek()).state.emit2(opAST, opcode, arg, arg2); } public void emit2(CommonTree opAST, short opcode, String s, int arg2) {
public void insert(int addr, short opcode, String s) { ((template_scope)template_stack.peek()).state.insert(addr, opcode, s); } public void setOption(CommonTree id) {
public void refAttr(CommonTree id) { template_stack.peek().state.refAttr(templateToken, id); } public int defineString(String s) { return template_stack.peek().state.defineString(s); }
public void func(CommonTree id) { ((template_scope)template_stack.peek()).state.func(templateToken, id); } public void refAttr(CommonTree id) { ((template_scope)template_stack.peek()).state.refAttr(templateToken, id); }
template_stack.peek().state = new CompilationState(errMgr, name, input.getTokenStream()); impl = template_stack.peek().state.impl; if ( template_stack.size() == 1 ) outermostImpl = impl;
public void emit(CommonTree opAST, short opcode) { ensureCapacity(1); if ( opAST!=null ) { int i = opAST.getTokenStartIndex(); int j = opAST.getTokenStopIndex(); int p = ((CommonToken)tokens.get(i)).getStartIndex(); int q = ((CommonToken)tokens.get(j)).getStopIndex(); if ( !(p<0 || q<0) ) impl.sourceMap[ip] = new Interval(p, q); } impl.instrs[ip++] = (byte)opcode; }
public void emit1(CommonTree opAST, short opcode, String arg) { ((template_scope)template_stack.peek()).state.emit1(opAST, opcode, arg); } public void emit2(CommonTree opAST, short opcode, int arg, int arg2) {
public void emit2(CommonTree opAST, short opcode, int arg, int arg2) { template_stack.peek().state.emit2(opAST, opcode, arg, arg2); } public void emit2(CommonTree opAST, short opcode, String s, int arg2) {
public void insert(int addr, short opcode, String s) { template_stack.peek().state.insert(addr, opcode, s); } public void setOption(CommonTree id) {
public void refAttr(CommonTree id) { ((template_scope)template_stack.peek()).state.refAttr(templateToken, id); } public int defineString(String s) { return ((template_scope)template_stack.peek()).state.defineString(s); }
public void func(CommonTree id) { template_stack.peek().state.func(templateToken, id); } public void refAttr(CommonTree id) { template_stack.peek().state.refAttr(templateToken, id); }
((template_scope)template_stack.peek()).state = new CompilationState(errMgr, name, input.getTokenStream()); impl = ((template_scope)template_stack.peek()).state.impl; if ( template_stack.size() == 1 ) outermostImpl = impl;
public void emit(CommonTree opAST, short opcode) { ensureCapacity(1); if ( opAST!=null ) { int i = opAST.getTokenStartIndex(); int j = opAST.getTokenStopIndex(); int p = ((CommonToken)tokens.get(i)).getStartIndex(); int q = ((CommonToken)tokens.get(j)).getStopIndex(); if ( !(p<0 || q<0) ) impl.sourceMap[ip] = new Interval(p, q); } impl.instrs[ip++] = (byte)opcode; }