(n ast.Node, opcode code.Opcode, operand interface{})
| 49 | } |
| 50 | |
| 51 | func (c *codegen) emit(n ast.Node, opcode code.Opcode, operand interface{}) { |
| 52 | glog.V(2).Infof("emitting `%s %v' from line %d node %#v\n", opcode, operand, n.Pos().Line, n) |
| 53 | c.obj.Program = append(c.obj.Program, code.Instr{opcode, operand, n.Pos().Line}) |
| 54 | } |
| 55 | |
| 56 | // newLabel creates a new label to jump to. |
| 57 | func (c *codegen) newLabel() (l int) { |
no test coverage detected